Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2018 09:14:39 +0000
From:      Marcin Cieslak <saper@saper.info>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: savecore: BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
Message-ID:  <nycvar.OFS.7.76.444.1810250907300.5494@z.fncre.vasb>
In-Reply-To: <65f4cac9-99be-265f-e461-b166d52d226b@FreeBSD.org>
References:  <nycvar.OFS.7.76.444.1810231752110.5494@z.fncre.vasb> <65f4cac9-99be-265f-e461-b166d52d226b@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, 24 Oct 2018, John Baldwin wrote:

> On 10/23/18 10:58 AM, Marcin Cieslak wrote:
> > This GDB was configured as "amd64-marcel-freebsd"...BFD: /boot/kernel/kernel: invalid relocation type 37
> > BFD: BFD 2.17.50 [FreeBSD] 2007-07-03 assertion fail /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/elf64-x86-64.c:276
> > 
> > The kernel has been built on 11.1 with LD=/usr/bin/ld.lld
> > 
> > Is this something that matters at all?
> 
> It is not something that is likely to be fixed.  If you pkg install gdb from
> ports, is the kgdb it includes able to examine the crash dump?

Not really (using 8.2 from ports):

# /usr/local/bin/kgdb82 -n 5 /usr/obj/usr/src/sys/GENERIC/kernel.debug
GNU gdb (GDB) 8.2 [GDB v8.2 for FreeBSD]
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd11.1".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/obj/usr/src/sys/GENERIC/kernel.debug...done.
thread.c:93: internal-error: struct thread_info *inferior_thread(): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 

With regular base kgdb I can open it but I can't get any backtrace or anything:

Cannot access memory at address 0x0
(kgdb) info reg
rax            0x0	0
rbx            0x0	0
rcx            0x0	0
rdx            0x0	0
rsi            0x0	0
rdi            0x0	0
rbp            0x0	0x0
rsp            0x0	0x0
r8             0x0	0
r9             0x0	0
r10            0x0	0
r11            0x0	0
r12            0x0	0
r13            0x0	0
r14            0x0	0
r15            0x0	0
rip            0x0	0
eflags         0x0	0
cs             0x0	0
ss             0x0	0
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0

What should I try next? at what stage is bfd involved in the savecore process?

Marcin

[-- Attachment #2 --]
0K	*H
<0810
	`He0	*H

00HjD\=H
0
	*H
0L1 0UGlobalSign Root CA - R310U

GlobalSign10U
GlobalSign0
160615000000Z
240615000000Z0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G30"0
	*H
0
ʰkM
8}feA};1M<&8d;rT\dEބqNU{ܣx
Ij:+j;P@q3DG>#cj	l1yƆ:43A,DPi\dR0*[x=KtL@Dʢ.(Cu͓(؟PFyxxi26tAYw;>eYM#xd0`0U0'U% 0+++	0U00U'¥zzdco2Ҙ±0U#0K.E$MPc0>+2000.+0"http://ocsp2.globalsign.com/rootr306U/0-0+)'%http://crl.globalsign.com/root-r3.crl0YU R0P0	+2(0A	+2_0402+&https://www.globalsign.com/repository/0
	*H
wF|NR,ȎwبkEoB"s)!YbUy\a،Ğ8wIrۅJmϦPa9
Q_ A Mz%-Mmf!=EL8TfP&G)\`9\(#$v.OlVG׷c ViVC7_)P{YXDHKr˟*˜2:
q4wt\I$
ϱ.jp!?00٠N{a90
	*H
0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G30
170525084416Z
200525084416Z0<10Usaper@saper.info10	*H
	saper@saper.info0"0
	*H
0
÷inYcYuFp\اtyc@/W<lL\@.kWW3Ø٤&55IN15PQdw],(;p..3E }zgAN3̑m\'IR"@{d֘P$'ɹSxi~"5H
dA !ڲQi-̓[73zB&TgˆP?c
V+jAT{'dusѧS]\be3p'	F=xG6_{<8([ݤ2+,+Jr+z!Y%!-
gAJ5*Xoc -!
,xr)b ֆT7w9z͝YIVpNoU`Ale@εL[b-t=lJ)mI#00U0+00M+0Ahttp://secure.globalsign.com/cacert/gspersonalsign1sha2g3ocsp.crt0=+01http://ocsp2.globalsign.com/gspersonalsign1sha2g30LU E0C0A	+2(0402+&https://www.globalsign.com/repository/0	U00DU=0;09753http://crl.globalsign.com/gspersonalsign1sha2g3.crl0U0saper@saper.info0U%0++0U^ZB¬(F0U#0'¥zzdco2Ҙ±0
	*H
EJ2JyN*Wm{*8_fEe`&t4C$Z$Ԅ;׈&nU`s'{0iED,WʍI8LN)-ߓfū,wmmθhWobLfLpIk%,7kdA_
@ֵ@ȇDAW-oj;iړ|̠|HZZw_GX)Fqjsʵ3Ķu埰10{0m0]10	UBE10U
GlobalSign nv-sa1301U*GlobalSign PersonalSign 1 CA - SHA256 - G3N{a90
	`He0	*H
	1	*H
0	*H
	1
181025091440Z0/	*H
	1" 16rQX7ko8<]T2rj#0y	*H
	1l0j0	`He*0	`He0	`He0
*H
0*H
0
*H
@0+0
*H
(0
	*H
ez̭ SNV6#{.Rr_%`&VjJwLMk)WFO&BAVM2RzJ5R<tkvSN 3@FmwjѰng
p"nt.kv*lOꅨ6/Nq%qnTK7<26P\fNj]Q|05D`upVV[<:):
xv^˓fuhW4h/>h:rFwB`@D jbshI;-Pj<ͲZC89؞"Pw}}[xsOP$TBOE_kl[i\'͝Lf	:kK|~'GFS;ٵ;~"ބQr4Wo=xҭ[e|.	J^֪:r*
ZB҉Hv<Ibd焀8U

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nycvar.OFS.7.76.444.1810250907300.5494>