Bug 214795 - rescue binaries do not honour WITH_DEBUG_FILES
Summary: rescue binaries do not honour WITH_DEBUG_FILES
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-23 21:28 UTC by Ed Maste
Modified: 2016-11-23 21:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Maste freebsd_committer 2016-11-23 21:28:18 UTC
With WIP changes rescue's "ls -G" is segfaulting for me:

root@:~ # /rescue/ls -G
Segmentation fault (core dumped)

the rescue build forces debug files off:

share/mk/bsd.crunchgen.mk
50:MK_DEBUG_FILES= no

making debugging difficult:

root@:~ # lldb /rescue/ls -c ls.core
(lldb) target create "/rescue/ls" --core "ls.core"
Core file '/root/ls.core' (x86_64) was loaded.
(lldb) bt
* thread #1: tid = 100065, 0x00000000006b4050 ls`??? + 112, name = 'ls', stop reason = signal SIGSEGV
  * frame #0: 0x00000000006b4050 ls`??? + 112
    frame #1: 0x00000000006b1a6b ls`??? + 1595
    frame #2: 0x000000000069917f ls`??? + 383
(lldb)

This is a little awkward to address, as the crunched binaries are built using a Makefile generated by crunchgen(1).