w32 gdb crash on loading dll

Martin lazarus@mfriebe.de
Fri Jun 29 10:39:00 GMT 2012


Hi,

I have a gdb crash on win32 (xp, Vista). It is triggered by loading a 
library.

Before I go into the details, the library is part of someone else's 
project. (I only got involved because the person uses several languages 
and IDE, including fpc/lazarus, where I happen to look at gdb integration)

*** I have this persons ok, to forward it to gdb developer(s). But I do 
not want to upload it somewhere public on the internet.

The dll was created with visual studio.
running a project using that dll, the following output is given before 
the crash

* mingw gdb 7.4
Reading symbols from b:\tmp\dll_crash\proffofconcept\vbr32.dll...

* cygwin gdb 7.3
Reading symbols from 
/cygdrive/b/tmp/dll_crash/proffofconcept/vbr32.dll...      1 [main] gdb 
11536 exception::handle: Exception: STATUS_ACCESS_VIOLATION
   38396 [main] gdb 11536 open_stackdumpfile: Dumping stack trace to 
gdb.exe.stackdump

trace is at end of file, but has no symbol info (I do not build gdb myself)

The error can be caused without the need of a project by loading gdb as
   gdb.exe  vbr32.dll

It affects all versions of gdb since at least (and including) 6.7.5. It 
does not affect 6.6 and before (presumingly loading dll info was added 
then ?)

It also does not happen if
      set auto-solib-add off
is used.

That is all the info I have so far. Please contact me if there is 
anything else.

I can put it in the bug tracker, but due to the need of sending the dll 
in private, I wanted to check here first.

Thank you
Martin





Exception: STATUS_ACCESS_VIOLATION at eip=0050D10E
eax=00000000 ebx=00000001 ecx=00000002 edx=00000000 esi=00000001 
edi=00000000
ebp=0149CAC8 esp=0149C9B0 program=c:\FPC\GDB\7.3.50_cygwin\gdb.exe, pid 
11536, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame     Function  Args
0149CAC8  0050D10E  (01CCB478, 00000006, 00000002, 611289CB)
0149CB08  0040D47B  (01CCB478, 00000000, 00000000, 00000000)
0149CB48  0040D736  (00000000, 00000000, 00000000, 00000000)
0149CB68  0040D9A6  (0149CD23, 00000006, 00000000, 00000000)
0149CB88  0040DD49  (0149CD23, 00000001, 01CC72A0, 61073F40)
0149CBB8  0041CE32  (0040DE60, 0149CD23, 00000001, 00000006)
0149CC48  00401F73  (0149CCAC, 00000000, 01C61EB0, 00686100)
0149CC78  0041CEEB  (00401450, 0149CCAC, 0068F8A8, 00000006)
0149CC98  00401211  (0149CCAC, 00000002, 49435341, 00000002)
0149CCC8  004011C2  (01C61DCF, 00000000, 0149CD68, 61007038)
0149CD68  61007038  (00000000, 0149CDA4, 61006980, 7FFD9000)
End of stack trace



More information about the Gdb mailing list