Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

core.internal.backtrace.dwarf: Fix segfault regression in case executable cannot be opened #3382

Merged
merged 1 commit into from
Feb 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/internal/backtrace/dwarf.d
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ int traceHandlerOpApplyImpl(size_t numFrames,


if (!image.isValid())
return locations[startIdx .. $].processCallstack(null, image.baseAddress, dg);
return locations[startIdx .. $].processCallstack(null, 0, dg);

// find address -> file, line mapping using dwarf debug_line
return image.processDebugLineSectionData(
Expand Down