User forums > Help
corrupted double-linked list
darksquall57:
Thanks for the answers :
It's totally random (I can compile with no problem during 3 months and then get it everyday 10 times with the same version of Codeblocks ), but it seems to happen only when using codeblocks with a command-line.
My command line is basic :
--- Code: ---codeblocks --rebuild --target="Release" project.cbp
--- End code ---
beemaster:
I have the same problem. Sometimes when I run codeblocks from command line in a script, it fails with this error. Is it possible to make a workaround in a script, so when this happens, kill process and run build command again? Something like:
--- Code: ---startPoint:
exec('codeblocks --build --target="release" project.cbp >> output')
if (output.contains("codeblocks: corrupted double linked list..."))
{
killProcess();
goto startPoint;
}
--- End code ---
The problem is that codeblocks is still running when the error occures, and never exits...
paavo512:
I see this bug often. Seems to be a multithreading bug in C::B, we are currently trying to get our build working on a new 48-core Linux box and the "corrupted double-linked list" crash seems to appear almost at each run. There are also some new problems like hanging, but I'm not yet 100% sure yet what component to blame here.
darksquall57:
Hi,
I've some news about this bug. I just ran codeblocks (svn 9296 ) in Fedora 19 64bits and for the first time I have a backtrace :
--- Code: ---*** Error in `codeblocks': corrupted double-linked list: 0x0000000004e0b140 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3cf727c839]
/lib64/libc.so.6[0x3cf727d749]
/lib64/libc.so.6[0x3cf727f04c]
/lib64/libc.so.6(realloc+0xd2)[0x3cf72805d2]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxStringBase16AllocBeforeWriteEm+0x68)[0x3cf6eb40d8]
/lib64/libwx_baseu-2.8.so.0(_ZN8wxString11GetWriteBufEm+0x9)[0x3cf6eb5da9]
/lib64/libwx_baseu-2.8.so.0(_ZN8wxString7PrintfVEPKwP13__va_list_tag+0x57)[0x3cf6eb72a7]
/lib64/libwx_baseu-2.8.so.0(_ZN8wxString6PrintfEPKwz+0x87)[0x3cf6eb74f7]
codeblocks[0x49525f]
codeblocks[0x49ab99]
/usr/local/lib/libcodeblocks.so.0(_ZN7Manager12ProcessEventER15CodeBlocksEvent+0x80)[0x7f5f43973a60]
/usr/local/lib/libcodeblocks.so.0(_ZN13EditorManager13OnPageChangedER18wxAuiNotebookEvent+0x178)[0x7f5f43942b88]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x56)[0x3cf6eea676]
/lib64/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x6b)[0x3cf6eea71b]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x3cf6eeaa87]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_gtk2u_core-2.8.so.0(_ZN12wxWindowBase9TryParentER7wxEvent+0x39)[0x7f5f42435f49]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_gtk2u_aui-2.8.so.0(_ZN13wxAuiNotebook12SetSelectionEm+0xe0)[0x7f5f43205060]
/lib64/libwx_gtk2u_aui-2.8.so.0(_ZN13wxAuiNotebook10RemovePageEm+0x107)[0x7f5f43205ee7]
/lib64/libwx_gtk2u_aui-2.8.so.0(_ZN13wxAuiNotebook10DeletePageEm+0x52)[0x7f5f43206032]
/usr/local/lib/libcodeblocks.so.0(_ZN13cbAuiNotebook10DeletePageEm+0xe)[0x7f5f438cba0e]
/usr/local/lib/libcodeblocks.so.0(_ZN13EditorManager5CloseEP10EditorBaseb+0x36)[0x7f5f43947df6]
/usr/local/lib/libcodeblocks.so.0(_ZN9cbProject13CloseAllFilesEb+0x116)[0x7f5f438eae46]
/usr/local/lib/libcodeblocks.so.0(_ZN14ProjectManager12CloseProjectEP9cbProjectbb+0x18a)[0x7f5f439a614a]
/usr/local/lib/libcodeblocks.so.0(_ZN14ProjectManager16CloseAllProjectsEb+0x46)[0x7f5f439a6386]
/usr/local/lib/libcodeblocks.so.0(_ZN14ProjectManager14CloseWorkspaceEv+0x4a)[0x7f5f439a646a]
codeblocks[0x49f090]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x56)[0x3cf6eea676]
/lib64/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x6b)[0x3cf6eea71b]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x3cf6eeaa87]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x3cf6eeaa10]
/lib64/libwx_gtk2u_core-2.8.so.0(_ZN12wxWindowBase5CloseEb+0x5c)[0x7f5f42436f9c]
codeblocks[0x445bc5]
/lib64/libwx_baseu-2.8.so.0(_Z7wxEntryRiPPw+0x4c)[0x3cf6e9721c]
codeblocks[0x434f02]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x3cf7221b75]
codeblocks[0x44128d]
======= Memory map: ========
00400000-0052c000 r-xp 00000000 fd:01 2887899 /usr/local/bin/codeblocks
0072b000-0073b000 r--p 0012b000 fd:01 2887899 /usr/local/bin/codeblocks
0073b000-00741000 rw-p 0013b000 fd:01 2887899 /usr/local/bin/codeblocks
00741000-00748000 rw-p 00000000 00:00 0
01b29000-05e4f000 rw-p 00000000 00:00 0 [heap]
3cf6a00000-3cf6a21000 r-xp 00000000 fd:01 2768235 /usr/lib64/ld-2.17.so
3cf6c20000-3cf6c21000 r--p 00020000 fd:01 2768235 /usr/lib64/ld-2.17.so
3cf6c21000-3cf6c22000 rw-p 00021000 fd:01 2768235 /usr/lib64/ld-2.17.so
3cf6c22000-3cf6c23000 rw-p 00000000 00:00 0
3cf6e00000-3cf6f4a000 r-xp 00000000 fd:01 2754185 /usr/lib64/libwx_baseu-2.8.so.0.8.0
3cf6f4a000-3cf7149000 ---p 0014a000 fd:01 2754185 /usr/lib64/libwx_baseu-2.8.so.0.8.0
3cf7149000-3cf7151000 r--p 00149000 fd:01 2754185 /usr/lib64/libwx_baseu-2.8.so.0.8.0
3cf7151000-3cf7156000 rw-p 00151000 fd:01 2754185 /usr/lib64/libwx_baseu-2.8.so.0.8.0
3cf7156000-3cf7160000 rw-p 00000000 00:00 0
3cf7200000-3cf73b6000 r-xp 00000000 fd:01 2768236 /usr/lib64/libc-2.17.so
3cf73b6000-3cf75b6000 ---p 001b6000 fd:01 2768236 /usr/lib64/libc-2.17.so
3cf75b6000-3cf75ba000 r--p 001b6000 fd:01 2768236 /usr/lib64/libc-2.17.so
3cf75ba000-3cf75bc000 rw-p 001ba000 fd:01 2768236 /usr/lib64/libc-2.17.so
3cf75bc000-3cf75c1000 rw-p 00000000 00:00 0
3cf7600000-3cf7616000 r-xp 00000000 fd:01 2754054 /usr/lib64/libpthread-2.17.so
3cf7616000-3cf7816000 ---p 00016000 fd:01 2754054 /usr/lib64/libpthread-2.17.so
3cf7816000-3cf7817000 r--p 00016000 fd:01 2754054 /usr/lib64/libpthread-2.17.so
3cf7817000-3cf7818000 rw-p 00017000 fd:01 2754054 /usr/lib64/libpthread-2.17.so
3cf7818000-3cf781c000 rw-p 00000000 00:00 0
3cf7a00000-3cf7a03000 r-xp 00000000 fd:01 2768241 /usr/lib64/libdl-2.17.so
3cf7a03000-3cf7c02000 ---p 00003000 fd:01 2768241 /usr/lib64/libdl-2.17.so
3cf7c02000-3cf7c03000 r--p 00002000 fd:01 2768241 /usr/lib64/libdl-2.17.so
3cf7c03000-3cf7c04000 rw-p 00003000 fd:01 2768241 /usr/lib64/libdl-2.17.so
3cf7e00000-3cf7e15000 r-xp 00000000 fd:01 2768248 /usr/lib64/libz.so.1.2.7
3cf7e15000-3cf8014000 ---p 00015000 fd:01 2768248 /usr/lib64/libz.so.1.2.7
3cf8014000-3cf8015000 r--p 00014000 fd:01 2768248 /usr/lib64/libz.so.1.2.7
3cf8015000-3cf8016000 rw-p 00015000 fd:01 2768248 /usr/lib64/libz.so.1.2.7
3cf8200000-3cf8301000 r-xp 00000000 fd:01 2754123 /usr/lib64/libm-2.17.so
3cf8301000-3cf8500000 ---p 00101000 fd:01 2754123 /usr/lib64/libm-2.17.so
3cf8500000-3cf8501000 r--p 00100000 fd:01 2754123 /usr/lib64/libm-2.17.so
3cf8501000-3cf8502000 rw-p 00101000 fd:01 2754123 /usr/lib64/libm-2.17.so/bin/sh : ligne 1 : 3288 Abandon (core dumped)codeblocks --rebuild --target="MyTarget" MyProject.cbp
--- End code ---
I hope it will help you to eradicate this bug :D.
BlueHazzard:
possibly a temporary workaround:
http://stackoverflow.com/questions/6636829/perl-process-gets-stuck-with-glibc-detected-perl-corrupted-double-link#6636881
is there a possibility that someone of u2 can run a Valgrind check? or a exact step by step guide to reproduce the bug? also version and os would be helpful.
thanks and greetings
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version