User forums > Help

corrupted double-linked list

<< < (3/4) > >>

darksquall57:
I can't do a step by step guide because it's completely random, but like paavo512 said, it seems to appear more frequently when using many threads to compile.
In my case it appears also more frequently when I'm using a virtual machine (Virtualbox).
For example:

Host Machine : 6 core
Virtual Machine : 4 cores
Run a compilation on both machine at the same time.

That's the only "guide" I can give right now.

paavo512:
Another backtrace (seems to be from a codeblocks child process launched by codeblocks master process when building a workspace from command-line, as the workspace build continued after this crash and even appeared to succeed). The crash seems to come from the process shutdown, so maybe it indeed had already completed all its work.

This is from an older codeblocks build (2010), so this place might be already fixed, but if not, the stacktrace should give a good idea where it goes wrong. I have a feeling there are a lot of multithreading bugs in codeblocks code.

     [exec] Using built-in specs.
     [exec] Target: x86_64-suse-linux
     [exec] Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
     [exec] Thread model: posix
     [exec] gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
     [exec] COMPILER_PATH=/usr/lib64/gcc/x86_64-suse-linux/4.3/:/usr/lib64/gcc/x86_64-suse-linux/4.3/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/4.3/:/usr/lib64/gcc/x86_64-suse-linux/:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/
     [exec] LIBRARY_PATH=/usr/lib64/gcc/x86_64-suse-linux/4.3/:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/lib/:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../:/lib/:/usr/lib/
     [exec] COLLECT_GCC_OPTIONS='-L../../BuildProducts/Linux/Release/lib' '-o' '../../BuildProducts/Linux/Release/bin/acapella' '-v' '-shared-libgcc' '-mtune=generic'
     [exec]  /usr/lib64/gcc/x86_64-suse-linux/4.3/collect2 --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ../../BuildProducts/Linux/Release/bin/acapella /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/4.3/crtbegin.o -L../../BuildProducts/Linux/Release/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../.. ../../Intermediates/Release/Acapella/Version.o ../../Intermediates/Release/Acapella/autotest.o ../../Intermediates/Release/Acapella/mainstate_posix.o ../../Intermediates/Release/Acapella/options.o ../../Intermediates/Release/Acapella/problem.*** glibc detected *** codeblocks: corrupted double-linked list: 0x0000000001260c70 ***
     [exec] ======= Backtrace: =========
     [exec] /lib64/libc.so.6(+0x75018)[0x7f153e3f8018]
     [exec] /lib64/libc.so.6(+0x755ff)[0x7f153e3f85ff]
     [exec] /lib64/libc.so.6(+0x76b80)[0x7f153e3f9b80]
     [exec] /lib64/libc.so.6(cfree+0x6c)[0x7f153e3fcf6c]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN9pfDetailsD1Ev+0x205)[0x7f15413a3055]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN11ProjectFileD1Ev+0x2aa)[0x7f15413a28ba]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN9cbProject13CloseAllFilesEb+0xaa)[0x7f15412d4e3a]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN14ProjectManager12CloseProjectEP9cbProjectbb+0x155)[0x7f15413be4f5]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN14ProjectManager16CloseAllProjectsEb+0x4c)[0x7f15413be77c]
     [exec] /usr/lib64/libcodeblocks.so.0(_ZN14ProjectManager14CloseWorkspaceEv+0x62)[0x7f15413c2ee2]
     [exec] codeblocks(_ZN9MainFrame18OnApplicationCloseER12wxCloseEvent+0x268)[0x46ab68]
     [exec] /usr/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x89)[0x7f153f3723e9]
     [exec] /usr/lib64/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f153f3735c4]
     [exec] /usr/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f153f3736b7]
     [exec] /usr/lib64/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x7f153f373640]

ToApolytoXaos:
Out of curiosity, I have tested this under Windows 7 Enterprise [64-bit] with TDM's GCC 4.8.1 [32-bit] and seems the issue remains the same:


--- Code: ---C:\Users\stefanos\GENERAL\Projects\ANSI C\C_GeneralCode>gdb C:\codeblocks\codeblocks.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\codeblocks\codeblocks.exe...(no debugging symbols found)
...done.
(gdb) run --build --target="Debug" C_GeneralCode.cbp
Starting program: C:\codeblocks\codeblocks.exe --build --target="Debug" C_GeneralCode.cbp
[New Thread 3724.0x9b0]
[New Thread 3724.0x8d4]
[New Thread 3724.0xef4]
[New Thread 3724.0x584]
[New Thread 3724.0x484]
[New Thread 3724.0xb20]
[New Thread 3724.0x5f4]
[New Thread 3724.0x294]
[New Thread 3724.0xf2c]
[New Thread 3724.0xfd0]
[New Thread 3724.0xc10]
[New Thread 3724.0xe34]
[New Thread 3724.0xe98]
[New Thread 3724.0x9a4]
[New Thread 3724.0xaf4]
[New Thread 3724.0xe1c]
[New Thread 3724.0xc6c]
[New Thread 3724.0xca4]
[New Thread 3724.0xcbc]
[New Thread 3724.0x784]
[New Thread 3724.0xe74]
[New Thread 3724.0xdc]
[New Thread 3724.0xe50]
[New Thread 3724.0x73c]
[New Thread 3724.0xb9c]
[New Thread 3724.0x33c]
[New Thread 3724.0xe40]

Program received signal SIGSEGV, Segmentation fault.
0x0040666c in ?? ()
(gdb) backtrace
#0  0x0040666c in ?? ()
#1  0x00404779 in ?? ()
#2  0x004df986 in codeblocks!_ZN12cbToolPlugin9BuildMenuEP9wxMenuBar ()
#3  0x67b31e85 in wxmsw28u_gcc!_Z14wxUninitializev () from C:\codeblocks\wxmsw28u_gcc.dll
#4  0x67b89010 in wxmsw28u_gcc!_Z7wxEntryP11HINSTANCE__S0_Pci () from C:\codeblocks\wxmsw28u_gcc.dll
#5  0x00401dd3 in ?? ()
#6  0x0051426b in codeblocks!_ZNK8cbPlugin9CanDetachEv ()
#7  0x004010fd in ?? ()
#8  0x004012b5 in ?? ()
#9  0x75be336a in KERNEL32!BaseThreadInitThunk () from C:\Windows\syswow64\kernel32.dll
#10 0x77069f72 in ntdll!RtlInitializeExceptionChain () from C:\Windows\system32\ntdll.dll
#11 0x77069f45 in ntdll!RtlInitializeExceptionChain () from C:\Windows\system32\ntdll.dll
#12 0x00000000 in ?? ()
(gdb)

--- End code ---

thomas:

--- Quote ---#2  0x004df986 in codeblocks!_ZN12cbToolPlugin9BuildMenuEP9wxMenuBar ()
--- End quote ---
Interestingly, the only cbToolPlugins are AStyle, XPManifest, and ScritpedWizard, none of which uses several threads or is ever possibly called in a multi-threaded context.

Some contrib plugin maybe?

OxOOO5cO77:
FWIW, as of today, running the latest + contrib, the FileManager plugin causes this to occur upon both shutdown and disabling the plugin via the Plugins interface. (64-bit multilib Gentoo, wxWidgets 3.0)

Removing FileManager.zip from /usr/share/codeblocks allows Code::Blocks to exit properly.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version