Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2017 21:48:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216132] devel/gdb: at e.g. -r431413: get_core_register_section can get SIGSEGV from NULL regset arguments
Message-ID:  <bug-216132-13-WoT4DAa6vz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216132-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216132-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216132

--- Comment #6 from luca.pizzamiglio@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 f=
ile.

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216132-13-WoT4DAa6vz>