-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Describe the issue
When generating native image with -g it's impossible to debug it with gdb as debuginfo section is corrupted.
When running gdb following message is showing:
Reading symbols from App...
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /tmp/native-image/App]
(No debugging symbols found in App)
Also objdump show the following warning:
objdump: Warning: Debug info is corrupted, .debug_info header at 0xce has length 6c0000
Steps to reproduce the issue
native-image -g --no-fallback -H:DebugInfoSourceSearchPath=/tmp/graal-src.zip -jar App.jar
Describe GraalVM and your environment:
GraalVM version: 21.1.0
JDK major version: 11
OS: Linux Suse 12
Architecture: amd64
More details
objdump output: https://pastebin.com/AmLEWu1R
-H:Log=DebugTypeInfo:3,DebugCodeInfo:3,dwarf:3 output: https://mega.nz/file/vIwTzIDB#k9NRGt5enSyb6hyzBfvvQ-o89MUepMHPuJ4hVc0Y2JQ (160MB)
Compiled file from my machine: https://mega.nz/file/qYo3QSbQ#X4Nz7szNDo1nKmny1EoULT3ZOadSDiO-z06Sgub-Mlk