Author Topic: The 07 January 2012 build (7678) is out.  (Read 115397 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: The 07 January 2012 build (7678) is out.
« Reply #45 on: January 27, 2012, 06:24:52 pm »
I have already committed a fix for this in rev 7727. Just noticed it during compilation and immediately I committed that fix.
Well done! :-) Strange it doesn't occur on Windows though.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

stefanos_

  • Guest
Re: The 07 January 2012 build (7678) is out.
« Reply #46 on: January 27, 2012, 07:19:34 pm »
Thanks guys, both of you.

svn-7727 has been compiled , cheers.

UPDATE:

To test that everything is OK, I opened codeblocks within terminal to get a debug-like behavior and I got this interesting message upon closing it:

Code
*** glibc detected *** codeblocks: corrupted double-linked list: 0x09be10a8 ***
======= Backtrace: =========
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6aa81)[0xb5d95a81]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6aeda)[0xb5d95eda]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6c265)[0xb5d97265]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(cfree+0x6d)[0xb5d9a39d]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x1ff24)[0xb5d4af24]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x18bb7)[0xb5d43bb7]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x18857)[0xb5d43857]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(iconv_close+0x1c)[0xb5d42dbc]
/usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0(_ZN14wxMBConv_iconvD1Ev+0x3f)[0xb6abc70f]
/usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0(+0x52854)[0xb6a6e854]
/usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0(+0xf5820)[0xb6b11820]
/lib/ld-linux.so.2(+0xe4e6)[0xb786f4e6]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x2f4bf)[0xb5d5a4bf]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x2f52f)[0xb5d5a52f]
/lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xee)[0xb5d41e4e]
codeblocks[0x807850d]
======= Memory map: ========
08048000-080e6000 r-xp 00000000 fe:00 754079     /usr/local/bin/codeblocks
080e6000-080ee000 rw-p 0009e000 fe:00 754079     /usr/local/bin/codeblocks
080ee000-080f0000 rw-p 00000000 00:00 0
08792000-09cdd000 rw-p 00000000 00:00 0          [heap]
aaf01000-aaf02000 ---p 00000000 00:00 0
aaf02000-ab702000 rw-p 00000000 00:00 0
ab702000-ab74f000 r--p 00000000 fe:00 11493576   /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
ab74f000-ab789000 r-xp 00000000 fe:00 876719     /usr/lib/i386-linux-gnu/libcroco-0.6.so.3.0.1
ab789000-ab78c000 rw-p 00039000 fe:00 876719     /usr/lib/i386-linux-gnu/libcroco-0.6.so.3.0.1
ab78c000-ab7c3000 r-xp 00000000 fe:00 877338     /usr/lib/i386-linux-gnu/librsvg-2.so.2.34.2
ab7c3000-ab7c4000 rw-p 00037000 fe:00 877338     /usr/lib/i386-linux-gnu/librsvg-2.so.2.34.2
ab7e6000-ab7e7000 ---p 00000000 00:00 0
ab7e7000-abfe7000 rw-p 00000000 00:00 0
abfe7000-abfe8000 ---p 00000000 00:00 0
abfe8000-ac7e8000 rw-p 00000000 00:00 0
ac7e8000-ac7fb000 r-xp 00000000 fe:00 1278452    /usr/local/lib/codeblocks/plugins/libIncrementalSearch.so
ac7fb000-ac7fc000 rw-p 00013000 fe:00 1278452    /usr/local/lib/codeblocks/plugins/libIncrementalSearch.so
ac7fc000-ac869000 r-xp 00000000 fe:00 1278447    /usr/local/lib/codeblocks/plugins/libHexEditor.so
ac869000-ac86d000 rw-p 0006c000 fe:00 1278447    /usr/local/lib/codeblocks/plugins/libHexEditor.so
ac86d000-ac8c5000 r-xp 00000000 fe:00 1278424    /usr/local/lib/codeblocks/plugins/libDoxyBlocks.so
ac8c5000-ac8c7000 rw-p 00058000 fe:00 1278424    /usr/local/lib/codeblocks/plugins/libDoxyBlocks.so
ac8c7000-ac8dc000 r-xp 00000000 fe:00 1278369    /usr/local/lib/codeblocks/plugins/libdefaultmimehandler.so
ac8dc000-ac8de000 rw-p 00014000 fe:00 1278369    /usr/local/lib/codeblocks/plugins/libdefaultmimehandler.so
ac8de000-ac996000 r-xp 00000000 fe:00 1278440    /usr/local/lib/codeblocks/plugins/libheaderfixup.so
ac996000-ac999000 rw-p 000b7000 fe:00 1278440    /usr/local/lib/codeblocks/plugins/libheaderfixup.so
ac999000-ac9a4000 r-xp 00000000 fe:00 1278414    /usr/local/lib/codeblocks/plugins/libCppCheck.so
ac9a4000-ac9a5000 rw-p 0000b000 fe:00 1278414    /usr/local/lib/codeblocks/plugins/libCppCheck.so
ac9a5000-ac9cb000 r-xp 00000000 fe:00 1278382    /usr/local/lib/codeblocks/plugins/libtodo.so
ac9cb000-ac9cd000 rw-p 00026000 fe:00 1278382    /usr/local/lib/codeblocks/plugins/libtodo.so
ac9cd000-aca04000 r-xp 00000000 fe:00 1278455    /usr/local/lib/codeblocks/plugins/libkeybinder.so
aca04000-aca07000 rw-p 00036000 fe:00 1278455    /usr/local/lib/codeblocks/plugins/libkeybinder.so
aca07000-aca78000 r-xp 00000000 fe:00 1278465    /usr/local/lib/codeblocks/plugins/liblib_finder.so
aca78000-aca7c000 rw-p 00070000 fe:00 1278465    /usr/local/lib/codeblocks/plugins/liblib_finder.so
aca7c000-acab7000 r-xp 00000000 fe:00 1278388    /usr/local/lib/codeblocks/plugins/libAutoVersioning.so
acab7000-acab9000 rw-p 0003b000 fe:00 1278388    /usr/local/lib/codeblocks/plugins/libAutoVersioning.so
acab9000-acad3000 r-xp 00000000 fe:00 1278482    /usr/local/lib/codeblocks/plugins/libSymTab.so
acad3000-acad5000 rw-p 00019000 fe:00 1278482    /usr/local/lib/codeblocks/plugins/libSymTab.so
acad5000-acadc000 r-xp 00000000 fe:00 1278400    /usr/local/lib/codeblocks/plugins/libCccc.so
acadc000-acadd000 rw-p 00006000 fe:00 1278400    /usr/local/lib/codeblocks/plugins/libCccc.so
acadd000-acb04000 r-xp 00000000 fe:00 1278394    /usr/local/lib/codeblocks/plugins/libbyogames.so
acb04000-acb07000 rw-p 00027000 fe:00 1278394    /usr/local/lib/codeblocks/plugins/libbyogames.so
acb07000-acb23000 r-xp 00000000 fe:00 1278433    /usr/local/lib/codeblocks/plugins/libenvvars.so
acb23000-acb25000 rw-p 0001b000 fe:00 1278433    /usr/local/lib/codeblocks/plugins/libenvvars.so
acb25000-acbbf000 r-xp 00000000 fe:00 1278366    /usr/local/lib/codeblocks/plugins/libdebugger.so
acbbf000-acbc5000 rw-p 0009a000 fe:00 1278366    /usr/local/lib/codeblocks/plugins/libdebugger.so
acbc5000-acbc6000 rw-p 00000000 00:00 0
acbc6000-acbdb000 r-xp 00000000 fe:00 1278417    /usr/local/lib/codeblocks/plugins/libCscope.so
acbdb000-acbdc000 rw-p 00015000 fe:00 1278417    /usr/local/lib/codeblocks/plugins/libCscope.so
acbdc000-acc05000 r-xp 00000000 fe:00 1278375    /usr/local/lib/codeblocks/plugins/libprojectsimporter.so
acc05000-acc06000 rw-p 00029000 fe:00 1278375    /usr/local/lib/codeblocks/plugins/libprojectsimporter.so
acc06000-acc3d000 r-xp 00000000 fe:00 1278499    /usr/local/lib/codeblocks/plugins/libToolsPlus.so
acc3d000-acc40000 rw-p 00036000 fe:00 1278499    /usr/local/lib/codeblocks/plugins/libToolsPlus.so
acc40000-acc76000 r-xp 00000000 fe:00 1278391    /usr/local/lib/codeblocks/plugins/libBrowseTracker.so
acc76000-acc79000 rw-p 00036000 fe:00 1278391    /usr/local/lib/codeblocks/plugins/libBrowseTracker.so
acc79000-accca000 r-xp 00000000 fe:00 876788     /usr/lib/i386-linux-gnu/libhunspell-1.3.so.0.0.0
accca000-accce000 rw-p 00051000 fe:00 876788     /usr/lib/i386-linux-gnu/libhunspell-1.3.so.0.0.0
accd5000-acce1000 r-xp 00000000 fe:00 1278502    /usr/local/lib/codeblocks/plugins/libValgrind.so
acce1000-acce2000 rw-p 0000c000 fe:00 1278502    /usr/local/lib/codeblocks/plugins/libValgrind.so
acce2000-accef000 r-xp 00000000 fe:00 1278290    /usr/local/lib/codeblocks/plugins/libautosave.so
accef000-accf0000 rw-p 0000c000 fe:00 1278290    /usr/local/lib/codeblocks/plugins/libautosave.so
accf0000-acd4a000 r-xp 00000000 fe:00 1278664    /usr/local/lib/codeblocks/plugins/libSpellChecker.so
acd4a000-acd4f000 rw-p 00059000 fe:00 1278664    /usr/local/lib/codeblocks/plugins/libSpellChecker.so
acd4f000-acd62000 r-xp 00000000 fe:00 1278408    /usr/local/lib/codeblocks/plugins/libcodestat.so
acd62000-acd63000 rw-p 00013000 fe:00 1278408    /usr/local/lib/codeblocks/plugins/libcodestat.so
acd63000-acd75000 r-xp 00000000 fe:00 1278397    /usr/local/lib/codeblocks/plugins/libcb_koders.so
acd75000-acd76000 rw-p 00012000 fe:00 1278397    /usr/local/lib/codeblocks/plugins/libcb_koders.so
acd76000-acdc0000 r-xp 00000000 fe:00 1278505    /usr/local/lib/codeblocks/plugins/libwxSmithAui.so
acdc0000-acdc4000 rw-p 00049000 fe:00 1278505    /usr/local/lib/codeblocks/plugins/libwxSmithAui.so
acdc4000-acdc5000 rw-p 00000000 00:00 0
acdc5000-acdda000 r-xp 00000000 fe:00 1278385    /usr/local/lib/codeblocks/plugins/libabbreviations.so
acdda000-acddb000 rw-p 00014000 fe:00 1278385    /usr/local/lib/codeblocks/plugins/libabbreviations.so
acddb000-acde5000 r-xp 00000000 fe:00 1278468    /usr/local/lib/codeblocks/plugins/libMouseSap.so
acde5000-acde6000 rw-p 00009000 fe:00 1278468    /usr/local/lib/codeblocks/plugins/libMouseSap.so
acde6000-acdf3000 r-xp 00000000 fe:00 1278485    /usr/local/lib/codeblocks/plugins/libRegExTestbed.so
acdf3000-acdf4000 rw-p 0000c000 fe:00 1278485    /usr/local/lib/codeblocks/plugins/libRegExTestbed.so
acdf4000-ace10000 r-xp 00000000 fe:00 1278427    /usr/local/lib/codeblocks/plugins/libdragscroll.so
ace10000-ace12000 rw-p 0001c000 fe:00 1278427    /usr/local/lib/codeblocks/plugins/libdragscroll.so
ace12000-acef9000 r-xp 00000000 fe:00 1278345    /usr/local/lib/codeblocks/plugins/libcodecompletion.so
acef9000-acefe000 rw-p 000e6000 fe:00 1278345    /usr/local/lib/codeblocks/plugins/libcodecompletion.so
acefe000-aceff000 rw-p 00000000 00:00 0
aceff000-acf19000 r-xp 00000000 fe:00 1278475    /usr/local/lib/codeblocks/plugins/libProfiler.so
acf19000-acf1b000 rw-p 00019000 fe:00 1278475    /usr/local/lib/codeblocks/plugins/libProfiler.so
acf1b000-ad108000 r-xp 00000000 fe:00 1278479    /usr/local/lib/codeblocks/plugins/libexporter.so
ad108000-ad123000 rw-p 001ed000 fe:00 1278479    /usr/local/lib/codeblocks/plugins/libexporter.so
ad123000-ad124000 rw-p 00000000 00:00 0
ad124000-ad171000 r-xp 00000000 fe:00 1278372    /usr/local/lib/codeblocks/plugins/libscriptedwizard.so
ad171000-ad176000 rw-p 0004c000 fe:00 1278372    /usr/local/lib/codeblocks/plugins/libscriptedwizard.so
ad176000-ad189000 r-xp 00000000 fe:00 1278430    /usr/local/lib/codeblocks/plugins/libEditorTweaks.so
ad189000-ad18a000 rw-p 00013000 fe:00 1278430    /usr/local/lib/codeblocks/plugins/libEditorTweaks.so
ad18a000-ad1d0000 r-xp 00000000 fe:00 1278648    /usr/local/lib/codeblocks/plugins/libastyle.so
ad1d0000-ad1d2000 rw-p 00045000 fe:00 1278648    /usr/local/lib/codeblocks/plugins/libastyle.so
ad1d2000-ad2db000 r-xp 00000000 fe:00 1278405    /usr/local/lib/codeblocks/plugins/libcodesnippets.so
ad2db000-ad2e4000 rw-p 00109000 fe:00 1278405    /usr/local/lib/codeblocks/plugins/libcodesnippets.so
ad2e4000-ad2e6000 rw-p 00000000 00:00 0
ad2e6000-ad334000 r-xp 00000000 fe:00 1278494    /usr/local/lib/codeblocks/plugins/libThreadSearch.so
ad334000-ad337000 rw-p 0004d000 fe:00 1278494    /usr/local/lib/codeblocks/plugins/libThreadSearch.so
ad337000-ad338000 rw-p 00000000 00:00 0
ad338000-ad33f000 r-xp 00000000 fe:00 746225     /usr/lib/libgamin-1.so.0.1.10
ad33f000-ad340000 rw-p 00006000 fe:00 746225     /usr/lib/libgamin-1.so.0.1.10
ad340000-ad37e000 r-xp 00000000 fe:00 1278437    /usr/local/lib/codeblocks/plugins/libFileManager.so
ad37e000-ad380000 rw-p 0003e000 fe:00 1278437    /usr/local/lib/codeblocks/plugins/libFileManager.so
ad380000-ad381000 rw-p 00000000 00:00 0
ad381000-ad410000 r-xp 00000000 fe:00 1278472    /usr/local/lib/codeblocks/plugins/libNassiShneiderman.so
ad410000-ad416000 rw-p 0008e000 fe:00 1278472    /usr/local/lib/codeblocks/plugins/libNassiShneiderman.so
ad416000-ad455000 r-xp 00000000 fe:00 1286342    /usr/local/lib/wxSmithContribItems/libwxflatnotebook.so.0.0.1
ad455000-ad459000 rw-p 0003e000 fe:00 1286342    /usr/local/lib/wxSmithContribItems/libwxflatnotebook.so.0.0.1
ad459000-ad481000 r-xp 00000000 fe:00 1286328    /usr/local/lib/wxSmithContribItems/libwxchartctrl.so.0.0.1
ad481000-ad484000 rw-p 00027000 fe:00 1286328    /usr/local/lib/wxSmithContribItems/libwxchartctrl.so.0.0.1
ad484000-ad718000 r-xp 00000000 fe:00 754140     /usr/local/lib/libwxsmithlib.so.0.0.1
ad718000-ad72d000 rw-p 00293000 fe:00 754140     /usr/local/lib/libwxsmithlib.so.0.0.1
ad72d000-ad73a000 rw-p 00000000 00:00 0
ad73d000-ad743000 r-xp 00000000 fe:00 1278411    /usr/local/lib/codeblocks/plugins/libcopystrings.so
ad743000-ad744000 rw-p 00005000 fe:00 1278411    /usr/local/lib/codeblocks/plugins/libcopystrings.so
ad744000-ad75b000 r-xp 00000000 fe:00 1278294    /usr/local/lib/codeblocks/plugins/libclasswizard.so
ad75b000-ad75c000 rw-p 00017000 fe:00 1278294    /usr/local/lib/codeblocks/plugins/libclasswizard.so
ad75c000-ad783000 r-xp 00000000 fe:00 1278462    /usr/local/lib/codeblocks/plugins/libwxsmithcontribitems.so
ad783000-ad785000 rw-p 00027000 fe:00 1278462    /usr/local/lib/codeblocks/plugins/libwxsmithcontribitems.so
ad785000-ad786000 rw-p 00000000 00:00 0
ad786000-ad8a5000 r-xp 00000000 fe:00 1278443    /usr/local/lib/codeblocks/plugins/libhelp_plugin.so
ad8a5000-ad8ac000 rw-p 0011f000 fe:00 1278443    /usr/local/lib/codeblocks/plugins/libhelp_plugin.so
ad8ac000-ad8af000 rw-p 00000000 00:00 0
ad8af000-ad9fb000 r-xp 00000000 fe:00 1278348    /usr/local/lib/codeblocks/plugins/libcompiler.so
ad9fb000-ad9ff000 rw-p 0014c000 fe:00 1278348    /usr/local/lib/codeblocks/plugins/libcompiler.so
ad9ff000-ada00000 rw-p 00000000 00:00 0
ada00000-adae2000 rw-p 00000000 00:00 0
adae2000-adb00000 ---p 00000000 00:00 0
adb00000-adb02000 r-xp 00000000 fe:00 1278458    /usr/local/lib/codeblocks/plugins/libwxsmith.so
adb02000-adb03000 rw-p 00001000 fe:00 1278458    /usr/local/lib/codeblocks/plugins/libwxsmith.so
adb03000-adb0d000 r-xp 00000000 fe:00 1286559    /usr/local/lib/wxSmithContribItems/libwxcustombutton.so.0.0.1
adb0d000-adb0e000 rw-p 0000a000 fe:00 1286559    /usr/local/lib/wxSmithContribItems/libwxcustombutton.so.0.0.1
adb0e000-adb17000 r-xp 00000000 fe:00 1278378    /usr/local/lib/codeblocks/plugins/libopenfileslist.so
adb17000-adb18000 rw-p 00009000 fe:00 1278378    /usr/local/lib/codeblocks/plugins/libopenfileslist.so
adb18000-adb2c000 r-xp 00000000 fe:00 1278488    /usr/local/lib/codeblocks/plugins/libReopenEditor.so
adb2c000-adb2e000 rw-p 00013000 fe:00 1278488    /usr/local/lib/codeblocks/plugins/libReopenEditor.so
adb2e000-adb8e000 rw-s 00000000 00:04 17203228   /SYSV00000000 (deleted)
adb8e000-adb94000 r-xp 00000000 fe:00 895181     /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
adb94000-adb95000 rw-p 00005000 fe:00 895181     /usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-xpm.so
adb95000-adbe7000 r--p 00000000 fe:00 11493578   /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
adbe7000-adbe8000 ---p 00000000 00:00 0
adbe8000-ae3e8000 rw-p 00000000 00:00 0
ae3e8000-ae3e9000 ---p 00000000 00:00 0
ae3e9000-aebe9000 rw-p 00000000 00:00 0
aebe9000-aebea000 ---p 00000000 00:00 0
aebea000-af3ea000 rw-p 00000000 00:00 0
af3ea000-af3eb000 ---p 00000000 00:00 0
af3eb000-afbeb000 rw-p 00000000 00:00 0
afbeb000-afc1a000 r-xp 00000000 fe:00 876793     /usr/lib/i386-linux-gnu/libbluray.so.1.1.0
afc1a000-afc1b000 r--p 0002e000 fe:00 876793     /usr/lib/i386-linux-gnu/libbluray.so.1.1.0
afc1b000-afc1c000 rw-p 0002f000 fe:00 876793     /usr/lib/i386-linux-gnu/libbluray.so.1.1.0
afc1c000-afc2a000 r-xp 00000000 fe:00 13543765   /lib/i386-linux-gnu/libudev.so.0.13.0
afc2a000-afc2b000 r--p 0000d000 fe:00 13543765   /lib/i386-linux-gnu/libudev.so.0.13.0
afc2b000-afc2c000 rw-p 0000e000 fe:00 13543765   /lib/i386-linux-gnu/libudev.so.0.13.0
afc2c000-afc74000 r-xp 00000000 fe:00 13543698   /lib/i386-linux-gnu/libdbus-1.so.3.5.8
afc74000-afc75000 r--p 00048000 fe:00 13543698   /lib/i386-linux-gnu/libdbus-1.so.3.5.8Aborted

I hope it's the normal killing process and not something to worry about. I know under Windows it would create an RPT file; now, under GNU / Linux I don't know.

Maybe jens could help or explain this to me, it would help a lot.
« Last Edit: January 27, 2012, 07:42:32 pm by stefanos_ »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: The 07 January 2012 build (7678) is out.
« Reply #47 on: January 27, 2012, 08:51:18 pm »
Maybe jens could help or explain this to me, it would help a lot.
I know this error, you can ignore it.
Everything is saved, even if it should not occur.

I still try to investigate, what cause it.
It happens during unload of the plugins, but it does not happen always, it does not always happen at the same place, and it does not happen with all builds.

I inserted some debug-output and since then it does not happen at all.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: The 07 January 2012 build (7678) is out.
« Reply #48 on: January 27, 2012, 10:34:01 pm »
Maybe jens could help or explain this to me, it would help a lot.
I know this error, you can ignore it.
BTW: Another error that drives me nuts you can see if you do the following:
- start C::B with --debug-log and --verbose
- open a "Hello World" project
- close C::B
You'll see:
22:28:27: Can not wait for thread termination (error 6: the handle is invalid.)
22:28:27: Couldn't terminate thread (error 6: the handle is invalid.)

It disappears if you disable the CC plugins (BTW: disabling/enabling CC makes it appear, too). I tried to debug into it but I didn't manage to find the actual cause. I did a lot of debug outputs in the destructors of the threads created by CC that are not based on cdThreadedTask - these seem to be fine. I don't know what to do... but I believe this is also the cause for crash on exit for the 64 bit build of C::b.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 07 January 2012 build (7678) is out.
« Reply #49 on: January 28, 2012, 05:52:01 am »
Maybe jens could help or explain this to me, it would help a lot.
I know this error, you can ignore it.
BTW: Another error that drives me nuts you can see if you do the following:
- start C::B with --debug-log and --verbose
- open a "Hello World" project
- close C::B
You'll see:
22:28:27: Can not wait for thread termination (error 6: the handle is invalid.)
22:28:27: Couldn't terminate thread (error 6: the handle is invalid.)

It disappears if you disable the CC plugins (BTW: disabling/enabling CC makes it appear, too). I tried to debug into it but I didn't manage to find the actual cause. I did a lot of debug outputs in the destructors of the threads created by CC that are not based on cdThreadedTask - these seem to be fine. I don't know what to do... but I believe this is also the cause for crash on exit for the 64 bit build of C::b.
I do no even to open a "hello world" project, I just start c::b, and close c::b, then I will receive these two errors when c::b exits.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 07 January 2012 build (7678) is out.
« Reply #50 on: January 28, 2012, 07:16:10 am »
I do no even to open a "hello world" project, I just start c::b, and close c::b, then I will receive these two errors when c::b exits.
It looks like the thread: ClassBrowserBuilderThread cause this issue.

I just add the test code:

Code
void ClassBrowser::BuildTree()
{
    if (Manager::IsAppShuttingDown() || !m_Parser)
        return;

    // tree shall only be  created in case of a new builder thread
    bool create_tree = false;

    // create the thread if needed
    if (!m_BuilderThread)
    {
        return; //***************
        m_BuilderThread = new ClassBrowserBuilderThread(m_Semaphore, &m_BuilderThread);
        m_BuilderThread->Create();
        m_BuilderThread->Run();
        create_tree = true; // new builder thread - need to create new tree
    }
...

You see, I forbid to create an ClassBrowserBuilderThread instance, then I have no error report on c::b exit.

Looks like writing GUI related code in a worker thread cause this issue.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: The 07 January 2012 build (7678) is out.
« Reply #51 on: January 28, 2012, 09:32:49 am »
Looks like writing GUI related code in a worker thread cause this issue.
Not only this one, but some random crashes, too.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 07 January 2012 build (7678) is out.
« Reply #52 on: January 28, 2012, 11:01:27 am »
I just debug further, I change the BuildTree function like below:
Code
void ClassBrowserBuilderThread::BuildTree()
{
    return;
   ...
}

Thus, no UI related operation here, but c::b still report 2 errors. That's too strange. It looks like this thread can't safely be destroyed.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 07 January 2012 build (7678) is out.
« Reply #53 on: January 28, 2012, 11:19:14 am »
Ok, I find the reason, we only need Wait(). (We don't need Delete()), otherwise, we try to delete the thread twice.

Code
// class destructor
ClassBrowser::~ClassBrowser()
{
    int pos = XRCCTRL(*this, "splitterWin", wxSplitterWindow)->GetSashPosition();
    Manager::Get()->GetConfigManager(_T("code_completion"))->Write(_T("/splitter_pos"), pos);

    SetParser(NULL);

    if (m_BuilderThread)
    {
        m_Semaphore.Post();
        //m_BuilderThread->Delete();
        m_BuilderThread->Wait();
        delete m_BuilderThread;
        m_BuilderThread=0;
    }
}

It works OK.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: The 07 January 2012 build (7678) is out.
« Reply #54 on: January 28, 2012, 11:42:22 am »
Code
        //m_BuilderThread->Delete();
        m_BuilderThread->Wait();
Good catch! This would explain the error indeed and also, why I couldn't catch it - I was looking into the parser stuff, not the classbrowser. I'll try and give feedback (also for the wx2.9.x/64bit builds...).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

stefanos_

  • Guest
Re: The 07 January 2012 build (7678) is out.
« Reply #55 on: January 28, 2012, 10:10:31 pm »
ollydbg, since you mentioned wx2.9.x, does it compile now this project? Because I remember having issues compiling it both GNU / Linux and Windows. If yes, can you provide more feedback please because I want to try it :D

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6034
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: The 07 January 2012 build (7678) is out.
« Reply #56 on: January 29, 2012, 02:30:34 am »
ollydbg, since you mentioned wx2.9.x, does it compile now this project? Because I remember having issues compiling it both GNU / Linux and Windows. If yes, can you provide more feedback please because I want to try it :D
Me? I have not mentioned wx2.9.x, I guess you ask such question on Morten. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9693
Re: The 07 January 2012 build (7678) is out.
« Reply #57 on: January 29, 2012, 07:26:08 am »
does it compile now this project?
Yes, it compiles fine, there is even a C::B project in SVN for you to try.
However, it doesn't run stable atm.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: The 07 January 2012 build (7678) is out.
« Reply #58 on: January 31, 2012, 01:13:04 pm »
Maybe jens could help or explain this to me, it would help a lot.
I know this error, you can ignore it.
Everything is saved, even if it should not occur.

I still try to investigate, what cause it.
It happens during unload of the plugins, but it does not happen always, it does not always happen at the same place, and it does not happen with all builds.

I inserted some debug-output and since then it does not happen at all.

I think I found the issue:
the help-plugin was linked against libcodeblocks.so and agaist the static scripting libs, that are already linked into libcodeblocks.

Should be fixed in svn r7746 .

Offline xawari

  • Multiple posting newcomer
  • *
  • Posts: 36
  • programming, usability ctrl
    • welcome to reality
Re: The 07 January 2012 build (7678) is out.
« Reply #59 on: January 31, 2012, 07:22:43 pm »
I hate to say it, but...
I pressed ENTER in file browser tree on a file, "How do we open" dialog appeared, I've chosen "open inside cb editor" and... nothing happens. Moreover, pressing ENTER stops working at this moment. Forever. Double-clicking works.

Which version of C::B (this nightly ?), which OS ?
Works fine here on linux.

Does not make sense for me and I think this usage of the ESC key would not be obvious to anyone (except you).

this build, "svn build rev 7671 (2012/01/06 10:23:21) gcc 4.5.2 Windows/unicode - 32 bit" windows 2003 (NT 5.2) 32-bit

I'll clarify all other questions as soon as it'll be possible for me, sorry, in a hurry.
┌──────────────────────────────────────────────────────╖
in another thousand years we'll be machines or gods█
╘══════════════════════════════════════════════════════╝