[Bug 216132] devel/gdb: at e.g. -r431413: get_core_register_section can get SIGSEGV from NULL regset arguments

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 17 21:48:44 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216132

--- Comment #6 from luca.pizzamiglio at gmail.com ---
hi Mark,

thanks for the full explanation.

It's quite strange: I use poudriere to cross build gdb for arm and mips,
without problem.

I used the poudriere jail to create an binary that crash, creating a core file.

The utility file tells me the the binary and the core file are correct:

$ file ccreator.arm
ccreator.arm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD),
dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 11.0
(1100122), FreeBSD-style, not stripped

$ file ccreator.arm.core
ccreator.arm.core: ELF 32-bit LSB core file ARM, version 1 (FreeBSD),
FreeBSD-style, from 'creator.arm'

In gdb I can load the ccreator.arm

(gdb) file ./ccreator.arm
Reading symbols from ./ccreator.arm...done
(gdb) core-file ./ccreator.arm.core
"./ccreator.arm.core" is not a core dump: File format not recognized

I'll post here a patch and you can test it, if it works.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list