Author Topic: Help reading codeblocks.RPT  (Read 32266 times)

daniloz

  • Guest
Help reading codeblocks.RPT
« on: June 12, 2012, 10:47:12 am »
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

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
----------------------------------------

Any ideas?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Help reading codeblocks.RPT
« Reply #1 on: June 12, 2012, 11:49:45 am »
Have you tried to use a debugger?
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help reading codeblocks.RPT
« Reply #2 on: June 12, 2012, 01:30:15 pm »
Any ideas?
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
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

daniloz

  • Guest
Re: Help reading codeblocks.RPT
« Reply #3 on: June 12, 2012, 02:35:29 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.
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?

@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
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... :-(

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help reading codeblocks.RPT
« Reply #4 on: June 12, 2012, 02:53:18 pm »
Should it be a killer pointer somewhere?
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?
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

daniloz

  • Guest
Re: Help reading codeblocks.RPT
« Reply #5 on: June 12, 2012, 02:59:52 pm »
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?
No "-s" switch here, neither in the global compiler options, nor in ThreadSearch build options...

To be honest, I don't remember if I compiled wxWidgets with the same compiler. Is this relevant? If so, why?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Help reading codeblocks.RPT
« Reply #6 on: June 12, 2012, 03:08:35 pm »
I had it happen when using DW2 version of MinGW GCC; that is why I built my own exchndl dll.
I never confirmed that using an SJLJ exchndl.dll caused the problem; but, the problem went away for a time.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help reading codeblocks.RPT
« Reply #7 on: June 12, 2012, 03:57:25 pm »
I had it happen when using DW2 version of MinGW GCC; that is why I built my own exchndl dll.
Indeed, another option. Just use the project provided with C::B svn.
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

daniloz

  • Guest
Re: Help reading codeblocks.RPT
« Reply #8 on: June 12, 2012, 04:04:24 pm »
I had it happen when using DW2 version of MinGW GCC; that is why I built my own exchndl dll.
Indeed, another option. Just use the project provided with C::B svn.
@stahta01, thanks for the tip.
I've just rebuild everything again (including exchndl.dll), but I think I have a SJLJ version anyway... Is there a way to know after MINGW tdm is installed?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help reading codeblocks.RPT
« Reply #9 on: June 12, 2012, 04:47:57 pm »
I've just rebuild everything again (including exchndl.dll), but I think I have a SJLJ version anyway... Is there a way to know after MINGW tdm is installed?
IMHO in the TDM DWARF version the executables are called differently, like mingw32-gcc-dw2 or alike... but don't count on it. If unsure, just download both packages of TDM and compare with your version. One has to match... ;-)
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 stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Help reading codeblocks.RPT
« Reply #10 on: June 12, 2012, 05:02:03 pm »
Quote
Dwarf Error: mangled line number section.

The above implies you are using DW2 version of MinGW GCC or objects compiled with DW2 compiler.
Or, you compiler is NOT a good build.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

daniloz

  • Guest
Re: Help reading codeblocks.RPT
« Reply #11 on: June 13, 2012, 08:40:04 am »
Quote
Dwarf Error: mangled line number section.

The above implies you are using DW2 version of MinGW GCC or objects compiled with DW2 compiler.
Or, you compiler is NOT a good build.

Tim S.
That's what I thought as well when seeing this error. However, I checked and I have the SJLJ version (by comparing then with both packages from TDM - thanks for the hint Morten!).

Sorry for the questions, but I'm pretty new to this DW2/SJLJ issue...

Could it be that my exchdl.dll was compiled with a different version, meaning either DW2/SJLJ mismatch or really version number mismatch 4.5.2 x something else?

Another thing I'm not sure is what version I used to compile wxWidgets, could it be an issue?

Last question: Any one has any experience in using the 4.6.1 tdm version to compile both wxWidgets and C::B? I'm considering a fully new compile using the latest version (4.6.1).

Thanks again!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Help reading codeblocks.RPT
« Reply #12 on: June 13, 2012, 10:46:41 am »
Could it be that my exchdl.dll was compiled with a different version, meaning either DW2/SJLJ mismatch or really version number mismatch 4.5.2 x something else?
Definitely.

Another thing I'm not sure is what version I used to compile wxWidgets, could it be an issue?
IMHO it shouldn't link - but never tried...

Last question: Any one has any experience in using the 4.6.1 tdm version to compile both wxWidgets and C::B? I'm considering a fully new compile using the latest version (4.6.1).
I am working only with this since release and I can recommend using this compiler. Just make sure you compile wxWidgets w/ -fno-keep-inline-dllexport.
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

daniloz

  • Guest
Re: Help reading codeblocks.RPT
« Reply #13 on: June 13, 2012, 11:12:00 am »
Sorry to hijack my own topic, but in Wiki, I've found two different ways of compiling wxWidgets:

1- Installing Code::Blocks from source on Windows says to use mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

2- Nightly Cookbook says to use mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

So, the question: is USE_XRC=1 required or not?

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: Help reading codeblocks.RPT
« Reply #14 on: June 13, 2012, 11:53:35 am »
Sorry to hijack my own topic, but in Wiki, I've found two different ways of compiling wxWidgets:

1- Installing Code::Blocks from source on Windows says to use mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

2- Nightly Cookbook says to use mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

So, the question: is USE_XRC=1 required or not?
You can see your config.gcc

USE_XRC=1 is the default option.
Regards,
xunxun