Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Help reading codeblocks.RPT

(1/7) > >>

daniloz:
Hi All,

I have from time to time a crash in ThreadSearch plugin and I'm trying to debug it looking at the codeblocks.RPT crash file. I'm using the latest SVN version and compiling WITH debug information using gcc version 4.5.2 (tdm-1).
However, I have two issues:
1- the addresses are not found in the ThreadSearch.dll
2- I have the following error: "Dwarf Error: mangled line number section."

Here is my codeblocks.RPT file:

--- Code: ---Error occured on Wednesday, May 30, 2012 at 16:45:19.

C:\Work\codeblocks_trunk\src\output\codeblocks.exe caused an Access Violation at location 7741e3be in module C:\Windows\SysWOW64\ntdll.dll Reading from location 6eb10d08.

Registers:
eax=00000001 ebx=109bcba8 ecx=002f0000 edx=109bcba8 esi=6eb10d04 edi=109bcba0
eip=7741e3be esp=1d0af9b0 ebp=1d0af9e4 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202

Call stack:
7741E3BE  C:\Windows\SysWOW64\ntdll.dll:7741E3BE  RtlInitUnicodeString
7741E023  C:\Windows\SysWOW64\ntdll.dll:7741E023  RtlFreeHeap
750A98CD  C:\Windows\syswow64\msvcrt.dll:750A98CD  free
6274C8F5  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6274C8F5  _ZNK12wxStringBase4findEPKwjj
6274F36C  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6274F36C  _ZNK8wxString4FindEPKw
0ABA1415  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0ABA1415Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.
0ABA85E4  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0ABA85E4
0AB923D1  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0AB923D1
0AB92106  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0AB92106
627810D8  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627810D8  _ZN11wxCondition6SignalEv
62781218  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62781218  _ZN11wxCondition6SignalEv
750B1287  C:\Windows\syswow64\msvcrt.dll:750B1287  _itow_s
750B1328  C:\Windows\syswow64\msvcrt.dll:750B1328  _endthreadex
759D339A  C:\Windows\syswow64\kernel32.dll:759D339A  BaseThreadInitThunk
77429EF2  C:\Windows\SysWOW64\ntdll.dll:77429EF2  RtlInitializeExceptionChain
77429EC5  C:\Windows\SysWOW64\ntdll.dll:77429EC5  RtlInitializeExceptionChain


-------------------

Error occured on Tuesday, June 12, 2012 at 10:24:03.

C:\Work\codeblocks_trunk\src\output\codeblocks.exe caused an Access Violation at location 76ebe3be in module C:\Windows\SysWOW64\ntdll.dll Reading from location 05e9ae6b.

Registers:
eax=00000011 ebx=1636e538 ecx=00020000 edx=1636e538 esi=05e9ae67 edi=1636e530
eip=76ebe3be esp=13dbf9b0 ebp=13dbf9e4 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010202

Call stack:
76EBE3BE  C:\Windows\SysWOW64\ntdll.dll:76EBE3BE  RtlInitUnicodeString
76EBE023  C:\Windows\SysWOW64\ntdll.dll:76EBE023  RtlFreeHeap
749098CD  C:\Windows\syswow64\msvcrt.dll:749098CD  free
6274C8F5  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6274C8F5  _ZNK12wxStringBase4findEPKwjj
6274F36C  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:6274F36C  _ZNK8wxString4FindEPKw
0B44878D  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B44878DDwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.
0B44F348  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B44F348
0B45E3BD  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B45E3BD
0B45E0F2  C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B45E0F2
627810D8  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:627810D8  _ZN11wxCondition6SignalEv
62781218  C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll:62781218  _ZN11wxCondition6SignalEv
74911287  C:\Windows\syswow64\msvcrt.dll:74911287  _itow_s
74911328  C:\Windows\syswow64\msvcrt.dll:74911328  _endthreadex
75A5339A  C:\Windows\syswow64\kernel32.dll:75A5339A  BaseThreadInitThunk
76EC9EF2  C:\Windows\SysWOW64\ntdll.dll:76EC9EF2  RtlInitializeExceptionChain
76EC9EC5  C:\Windows\SysWOW64\ntdll.dll:76EC9EC5  RtlInitializeExceptionChain

--- End code ---

And my tentative of having some info from it using Addr2LineUI:

--- Code: ---******************************
* Found (another) call stack *
******************************
addr2line -e C:\Windows\SysWOW64\ntdll.dll 7741E3BE:
C:\Windows\SysWOW64\ntdll.dll[7741E3BE]:
??:0
----------------------------------------
addr2line -e C:\Windows\SysWOW64\ntdll.dll 7741E023:
C:\Windows\SysWOW64\ntdll.dll[7741E023]:
??:0
----------------------------------------
addr2line -e C:\Windows\syswow64\msvcrt.dll 750A98CD:
C:\Windows\syswow64\msvcrt.dll[750A98CD]:
??:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 6274C8F5:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[6274C8F5]:
string.cpp:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 6274F36C:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[6274F36C]:
string.cpp:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll 0ABA1415:
C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll[0ABA1415]:
??:0
----------------------------------------
Stopping addr2line operations for line:
Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.
----------------------------------------
******************************
* Found (another) call stack *
******************************
addr2line -e C:\Windows\SysWOW64\ntdll.dll 76EBE3BE:
C:\Windows\SysWOW64\ntdll.dll[76EBE3BE]:
??:0
----------------------------------------
addr2line -e C:\Windows\SysWOW64\ntdll.dll 76EBE023:
C:\Windows\SysWOW64\ntdll.dll[76EBE023]:
??:0
----------------------------------------
addr2line -e C:\Windows\syswow64\msvcrt.dll 749098CD:
C:\Windows\syswow64\msvcrt.dll[749098CD]:
??:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 6274C8F5:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[6274C8F5]:
string.cpp:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 6274F36C:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[6274F36C]:
string.cpp:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B44878DDwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error 0B44878D:
Error for: addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B44878DDwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error: mangled line number section.Dwarf Error 0B44878D
:addr2line: 'C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll:0B44878DDwarf': No such file
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll 0B44F348:
C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll[0B44F348]:
??:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll 0B45E3BD:
C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll[0B45E3BD]:
??:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll 0B45E0F2:
C:\Work\codeblocks_trunk\src\output\share\codeblocks\plugins\ThreadSearch.dll[0B45E0F2]:
??:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 627810D8:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[627810D8]:
thread.cpp:0
----------------------------------------
addr2line -e C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll 62781218:
C:\Work\codeblocks_trunk\src\output\wxmsw28u_gcc_custom.dll[62781218]:
thread.cpp:0
----------------------------------------
addr2line -e C:\Windows\syswow64\msvcrt.dll 74911287:
C:\Windows\syswow64\msvcrt.dll[74911287]:
??:0
----------------------------------------
addr2line -e C:\Windows\syswow64\msvcrt.dll 74911328:
C:\Windows\syswow64\msvcrt.dll[74911328]:
??:0
----------------------------------------
addr2line -e C:\Windows\syswow64\kernel32.dll 75A5339A:
C:\Windows\syswow64\kernel32.dll[75A5339A]:
??:0
----------------------------------------
addr2line -e C:\Windows\SysWOW64\ntdll.dll 76EC9EF2:
C:\Windows\SysWOW64\ntdll.dll[76EC9EF2]:
??:0
----------------------------------------
addr2line -e C:\Windows\SysWOW64\ntdll.dll 76EC9EC5:
C:\Windows\SysWOW64\ntdll.dll[76EC9EC5]:
??:0
----------------------------------------

--- End code ---

Any ideas?

oBFusCATed:
Have you tried to use a debugger?

MortenMacFly:

--- Quote from: daniloz on June 12, 2012, 10:47:12 am ---Any ideas?

--- End quote ---
Please don't strip the threadsearch DLL when working with it. This may help to see the line already in the log.

Alternatively try to work with a fully un-stripped version of Code::Blocks until the error happens (so the devel, not the output folder). This is what I do at least. As we usually compile/work without optimisation anyways, this shouldn't do any serious slow-down.

@oBFusCATed: At the time you get that file its too late for a debugger. And if it happens from time to time only not reproducible, I guess its not a good idea to always work inside a debugger when you want to work with C::B, isn't it?!  :P

daniloz:

--- Quote from: MortenMacFly on June 12, 2012, 01:30:15 pm ---Please don't strip the threadsearch DLL when working with it. This may help to see the line already in the log.

Alternatively try to work with a fully un-stripped version of Code::Blocks until the error happens (so the devel, not the output folder). This is what I do at least. As we usually compile/work without optimisation anyways, this shouldn't do any serious slow-down.

--- End quote ---
I always use a fully un-stripped version of C::B, i.e. a copy from devel. Btw, that's what I meant with compiling WITH debug information.

That's what I found most strange. I have a fully un-stripped version of everything and still I cannot see the line and the address if completely wrong. Should it be a killer pointer somewhere?


--- Quote from: MortenMacFly on June 12, 2012, 01:30:15 pm ---@oBFusCATed: At the time you get that file its too late for a debugger. And if it happens from time to time only not reproducible, I guess its not a good idea to always work inside a debugger when you want to work with C::B, isn't it?!  :P

--- End quote ---
Yeap, don't want to have to run C::B from inside a debugger to catch a crash that happens only every two or three months... :-(

MortenMacFly:

--- Quote from: daniloz on June 12, 2012, 02:35:29 pm ---Should it be a killer pointer somewhere?

--- End quote ---
Well the only thing I can imagine is that there is a "-s" switch either in the global compiler options, or probably in the ThreadSearch plugin project file? Did you ensure you compiled everything with the same compiler, including wxWidgets and alike?

Navigation

[0] Message Index

[#] Next page

Go to full version