Bug 18981 – SIGSEGV during backtrace when debug info is compressed

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-06-14T01:11:26Z
Last change time
2018-06-19T18:24:44Z
Assigned to
No Owner
Creator
Yuxuan Shui

Comments

Comment #0 by yshuiv7 — 2018-06-14T01:11:26Z
To reproduce: 1) sample D code: void main() { throw new Exception("asdf"); } 2) compile it with debug info 3) compress the debug info with objcopy a.out --compress-debug-sections=zlib 4) run it Expected: Stack trace, or at least not crashing Actual: SIGSEGV
Comment #1 by github-bugzilla — 2018-06-19T18:24:43Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/1892da75f33a4dbbd3e0b5a0be1c9903f9272c72 fix issue 18981: SIGSEGV during backtrace when debug info is compressed Detect compressed debug line section, do not try to resolve line numbers if the debug info is compressed. https://github.com/dlang/druntime/commit/69f598df129ac378498c1881b1a34ebe2cf94f28 Merge pull request #2214 from yshui/compressed-debug fix issue 18981: SIGSEGV during backtrace when debug info is compressed