problems with dwarf2

Oliver Stieber oliver_stieber at yahoo.co.uk
Sun Nov 13 12:51:20 CST 2005


Hi,
   I've been trying to do some graphical debugging with ddd but the dwarf2 keeps crashing with...

wine-pthread: dwarf.c:1298: dwarf2_parse_udt_members: Assertion `((void *)0) != entry' failed.
wine: Assertion failed at address 0xffffe410 (thread 0009), starting debugger...
WineDbg starting on pid 0x8
Unhandled exception: assertion failed in 32-bit code (0xffffe410).
In 32 bit mode.
Register dump:
 CS:0073 SS:007b DS:007b ES:007b FS:003b GS:0033
 EIP:ffffe410 ESP:7b97e9bc EBP:7b97e9d4 EFLAGS:00200202(   - 00      - - I1)
 EAX:00000000 EBX:0000641c ECX:0000641c EDX:00000006
 ESI:7b97e9e8 EDI:b7f85ff4
Stack dump:
0x7b97e9bc:  7b97e9d4 00000006 0000641c b7e9a3e1
0x7b97e9cc:  b7f85ff4 b7e6d6b0 7b97eb04 b7e9be0d
0x7b97e9dc:  00000006 7b97e9e8 00000000 00000020
0x7b97e9ec:  00000000 00000000 00000000 00000000
0x7b97e9fc:  00000000 00000000 00000000 00000000
0x7b97ea0c:  00000000 00000000 00000000 00000000
Backtrace:
=>1 0xffffe410 (0x7b97e9d4)
  2 0xb7e9be0d abort in libc.so.6 (0x7b97eb04)
  3 0xb7e93c92 __assert_fail in libc.so.6 (0x7b97eb40)
  4 0x7b858aad dwarf2_parse_udt_members(ctx=0x7b97ed34, symt=0x7dcd9d2c)
[wine/dlls/dbghelp/dwarf.c:1205] in dbghelp (0x7b97eba0)
  5 0x7b859ece dwarf2_parse_compiland+0x4ae(ctx=0x7b97ed34) [wine/dlls/dbghelp/dwarf.c:1394] in
dbghelp (0x7b97ec8c)
  6 0x7b85be64 dwarf2_parse(module=0x7b4510d8, load_offset=0x7b82b000, debug=0x7dbab2c6,
debug_size=0x18f0d, abbrev=0x7db741d3, abbrev_size=0x1fd0, str=0x7db38bd8, str_sz=0x1bcd)
[wine/dlls/dbghelp/dwarf.c:2155] in dbghelp (0x7b97ed70)
  7 0x7b85cdd9 elf_load_debug_info_from_map+0x6f9(pool=0x7b97ef94, ht_symtab=0x7b97ef8c)
[wine/dlls/dbghelp/elf_module.c:897] in dbghelp (0x7b97ef64)
  8 0x7b85dcba elf_load_debug_info+0xda(module=0x7b4510d8, fmap=0x7b97f054)
[wine/dlls/dbghelp/elf_module.c:979] in dbghelp (0x7b97eff8)
  9 0x7b85e1b9 elf_load_file+0x459(load_offset=0x7b82b000, elf_info=0x7b97f268)
[wine/dlls/dbghelp/elf_module.c:1109] in dbghelp (0x7b97f0b0)
  10 0x7b85e423 elf_search_and_load_file+0xa3(load_offset=0x7b82b000, elf_info=0x7b97f268)
[wine/dlls/dbghelp/elf_module.c:1183] in dbghelp (0x7b97f0d4)
  11 0x7b85e680 elf_enum_sync_cb+0x20(name=0x7b97f108, addr=0x7b82b000, user=0x7b97f264)
[wine/dlls/dbghelp/elf_module.c:1251] in dbghelp (0x7b97f0e4)
  12 0x7b85e61b elf_enum_modules_internal(cb=0x7b85e660, user=0x7b97f264)
[wine/dlls/dbghelp/elf_module.c:1233] in dbghelp (0x7b97f254)
  13 0x7b85e6f3 elf_synchronize_module_list+0x63(pcs=0x7bae5820)
[wine/dlls/dbghelp/elf_module.c:1274] in dbghelp (0x7b97f28c)
  14 0x7b8611d7 SymLoadModule(hProcess=0x30, hFile=0x0, ImageName=0x7b97f430, ModuleName=0x0,
BaseOfDll=0x7b2b0000, SizeOfDll=0x0) [wine/dlls/dbghelp/module.c:340] in dbghelp (0x7b97f3f4)
  15 0x7b9a8794 handle_debug_event [wine/programs/winedbg/gdbproxy.c:491] in winedbg (0x7b97f53c)
  16 0x7b9acd2e gdb_remote+0x2ce(flags=0x1) [wine/programs/winedbg/gdbproxy.c:2201] in winedbg
(0x7b97fe2c)
  17 0x7b9b8db9 main(argc=0x2, argv=0x7bae04c0) [wine/programs/winedbg/winedbg.c:1318] in winedbg
(0x7b97ff00)
  18 0x7b9bd559 __wine_spec_exe_entry+0x99(peb=0x7bc77d40) [wine/dlls/winecrt0/exe_entry.c:37] in
winedbg (0x7b97ff20)
  19 0x7ba452e0 start_process(arg=0x0) [wine/dlls/kernel/process.c:992] in kernel32 (0x7b97fff4)
  20 0xb7fa2e51 wine_switch_to_stack+0x11 in libwine.so.1 (0x00000000)

=======================================================================

I'm also having problems when I try to add a break point from winedbg
winedbg foo.exe
break foo_bar

fixme:dbghelp_dwarf:dwarf2_parse_const_type need to generate a name
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 31 at 0x10ced
trace:dbghelp_dwarf:dwarf2_parse_struct_type ctx(0x10cee,1), for 31
trace:dbghelp_dwarf:dwarf2_parse_struct_type found name Mapdesc
trace:dbghelp_dwarf:dwarf2_parse_struct_type Unhandled attr at ctx(0x10cf6,1), for
attr(attr:0x3c,form:0xc)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0x3c,form:0xc)
trace:dbghelp_dwarf:dwarf2_parse_attr flag<0x1>
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 6 at 0x10cf7
trace:dbghelp_dwarf:dwarf2_parse_pointer_type ctx(0x10cf8,1), for 6
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10ced>
trace:dbghelp_dwarf:dwarf2_find_symt_by_ref want ref<0x10ced>
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 15 at 0x10cfd
trace:dbghelp_dwarf:dwarf2_parse_reference_type ctx(0x10cfe,1), for 15
trace:dbghelp_dwarf:dwarf2_parse_reference_type Unhandled attr at ctx(0x10cfe,1), for
attr(attr:0xb,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0xb,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr data1<4>
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10c11>
trace:dbghelp_dwarf:dwarf2_find_symt_by_ref want ref<0x10c11>
fixme:dbghelp_dwarf:dwarf2_parse_reference_type need to generate a name
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 15 at 0x10d03
trace:dbghelp_dwarf:dwarf2_parse_reference_type ctx(0x10d04,1), for 15
trace:dbghelp_dwarf:dwarf2_parse_reference_type Unhandled attr at ctx(0x10d04,1), for
attr(attr:0xb,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0xb,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr data1<4>
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10d09>
trace:dbghelp_dwarf:dwarf2_find_symt_by_ref want ref<0x10d09>
fixme:dbghelp_dwarf:dwarf2_parse_reference_type need to generate a name
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 7 at 0x10d09
trace:dbghelp_dwarf:dwarf2_parse_const_type ctx(0x10d0a,1), for 7
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10c11>
trace:dbghelp_dwarf:dwarf2_find_symt_by_ref want ref<0x10c11>
fixme:dbghelp_dwarf:dwarf2_parse_const_type need to generate a name
trace:dbghelp_dwarf:dwarf2_parse_compiland_content found entry_code 32 at 0x10d0e
trace:dbghelp_dwarf:dwarf2_parse_subprogram ctx(0x10d0f,1), for 32
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10d4e>
trace:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled attr at ctx(0x10d13,1), for
attr(attr:0x47,form:0x13)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0x47,form:0x13)
trace:dbghelp_dwarf:dwarf2_parse_attr_as_ref ref4<0x10804>
trace:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled attr at ctx(0x10d17,1), for
attr(attr:0x3a,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0x3a,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr data1<1>
trace:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled attr at ctx(0x10d18,1), for
attr(attr:0x3b,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0x3b,form:0xb)
trace:dbghelp_dwarf:dwarf2_parse_attr data1<67>
trace:dbghelp_dwarf:dwarf2_parse_subprogram Unhandled attr at ctx(0x10d21,1), for
attr(attr:0x40,form:0xa)
trace:dbghelp_dwarf:dwarf2_parse_attr (attr:0x40,form:0xa)

Exception c0000005
Wine-dbg>



is there an easy way to turn of the dwarf2 code?

Thanks,
   Oliver.






	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



More information about the wine-devel mailing list