Menu

#359 CodeBlocks crash when applying environment variable

Undefined
fixed
nobody
Bug_Report
2021-12-18
2016-05-23
No

To reproduce :

  1. Extract codeblocks-16.01mingw-nosetup.zip to c:\CodeBlocks1601\
  2. Delete CodeBlocks folder in %APPDATA% if exists
  3. Run c:\CodeBlocks1601\codeblocks.exe
    CB pops up Compiler auto-detection and Fileassociations dialogs. (I click OK)
    Close CB.
  4. Run c:\CodeBlocks1601\codeblocks.exe again
  5. Clik Settings - Environment - Environment Variables
    Using default environment variables set, i added new variable
    key : MYPROJECT
    value : C:\MY_PROJECT
    then click OK.
    Then i click "Set Now", Confirmation dialog pop up, i click "OK" then CodeBlocks crash.

Starting CB with CbLauncher.exe (which creates default.conf c:\CodeBlocks1601\AppData\codeblocks) and repeat step 5, same result.
I've tried with Administrator user, same result.

This is the recorded screen

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-05-23
    • labels: --> crash, envvar
     
  • Teodor Petrov

    Teodor Petrov - 2016-05-23

    http://forums.codeblocks.org/index.php/topic,21192.msg144673.html#msg144673

     
  • ollydbg

    ollydbg - 2016-08-31

    I have this crash issue for a very long time.

     
    • Teodor Petrov

      Teodor Petrov - 2016-08-31

      Then just use a debugger and fix it. ;)

       
  • ollydbg

    ollydbg - 2016-09-03

    I just tested and debug this issue, but this won't happens on my wx3.1 based C::B. This looks like a bug happens in wx2.8.12 version.
    @jefrisibarani
    Can you open the file "codeblocks.RPT", which is in the same folder of "codeblocks.exe", and see what is the crash call stack. I guess this is an issue related to this problem:

    SVN build crashes when trying to editing/adding new compiler flags

     

    Last edit: ollydbg 2016-09-03
    • jefrisibarani

      jefrisibarani - 2016-09-06

      not much info there

       

      Last edit: jefrisibarani 2016-09-06
      • ollydbg

        ollydbg - 2016-09-08

        The two RPT files does not contains any call stack information.

         
  • bluehazzard

    bluehazzard - 2016-09-25

    Can confirm this bug does not happen with wx3.1 on windows 7

     
    • Teodor Petrov

      Teodor Petrov - 2017-08-30

      Does it happen with the latest night build?

       
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-18
    • status: open --> fixed
     
  • Miguel Gimenez

    Miguel Gimenez - 2021-12-18

    The envvars plugin has been rewritten recently, it had some issues but I never got a crash.

     

Log in to post a comment.