http://bugs.winehq.org/show_bug.cgi?id=25920
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #2 from Eric Pouech eric.pouech@orange.fr 2011-03-19 10:57:36 CDT --- 1/ confirming crash 2/ however, clang generates bogus dwarf information:
(compilation with -O2, clang version 2.8) ----8<--- [eric:~/work/output-wine/wine-clang]$ dwarfdump dlls/kernel32/kernel32.dll.so <<....>> .debug_line: line number info for a single cu dwarfdump ERROR: dwarf_srclines: DW_DLE_ATTR_FORM_BAD (114) <<....>> --------- 3/ seems confirmed by some web searches (on clang 2.8) see for example: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20110221/117178....
4/ looking at the hexdump of the section show that the .debug_line section doesn't even contain its header
5/ I'll send a patch to protect dbghelp against bogus .debug_line sections in dwarf files. winedbg now generates the correct backtrace (even if they are a tons of duplicate symbols info. some of them are harmless, some others may require some more care. that would require another bug report.
6/ I didn't test for the yet to come 2.9 version (or its RC), but definitively a clang bug.
A+