[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25714] New: objcopy : SIGABRT in stab_enum_type ( wrstabs.
From: |
fdgkhdkgh at gmail dot com |
Subject: |
[Bug binutils/25714] New: objcopy : SIGABRT in stab_enum_type ( wrstabs.c:791 ) |
Date: |
Mon, 23 Mar 2020 12:36:28 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25714
Bug ID: 25714
Summary: objcopy : SIGABRT in stab_enum_type ( wrstabs.c:791 )
Product: binutils
Version: 2.35 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: fdgkhdkgh at gmail dot com
Target Milestone: ---
Created attachment 12400
--> https://sourceware.org/bugzilla/attachment.cgi?id=12400&action=edit
file that reproduces this problem
OS : ubuntu 18.04.3
kernel : gnu/linux 5.0.0-32-generic
processor : Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
compiler : gcc 7.4.0
Steps to Reproduce :
download the sample from attachment
objcopy --debugging ./sample
gdb backtrace :
gdb-peda$ bt
#0 __GI_raise (sig=sig@entry=0x6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff7820801 in __GI_abort () at abort.c:79
#2 0x00007ffff781039a in __assert_fail_base (fmt=0x7ffff79977d8 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n",
assertion=assertion@entry=0x5555559e57cd "tag != NULL",
file=file@entry=0x5555559e5678 "wrstabs.c", line=line@entry=0x317,
function=function@entry=0x5555559e5a60 <__PRETTY_FUNCTION__.10856>
"stab_enum_type") at assert.c:92
#3 0x00007ffff7810412 in __GI___assert_fail
(assertion=assertion@entry=0x5555559e57cd "tag != NULL",
file=file@entry=0x5555559e5678 "wrstabs.c",
line=line@entry=0x317, function=function@entry=0x5555559e5a60
<__PRETTY_FUNCTION__.10856> "stab_enum_type") at assert.c:101
#4 0x00005555555f610f in stab_enum_type (p=0x7fffffff1c90, tag=0x0,
names=<optimized out>, vals=<optimized out>) at wrstabs.c:791
#5 0x00005555555b8d78 in debug_write_type (info=0x555555c431b0,
fns=0x555555c22d40 <stab_fns>, fhandle=0x7fffffff1c90, type=<optimized out>,
name=<optimized out>) at debug.c:2587
#6 0x00005555555b8f45 in debug_write_type (info=0x555555c431b0,
fns=0x555555c22d40 <stab_fns>, fhandle=0x7fffffff1c90, type=<optimized out>,
name=<optimized out>) at debug.c:2554
#7 0x00005555555c3921 in debug_write_name (n=0x555555c469e0,
fhandle=<optimized out>, fns=<optimized out>, info=<optimized out>) at
debug.c:2382
#8 debug_write (handle=handle@entry=0x555555c431b0,
fns=fns@entry=0x555555c22d40 <stab_fns>, fhandle=fhandle@entry=0x7fffffff1c90)
at debug.c:2350
#9 0x00005555555fe56a in write_stabs_in_sections_debugging_info
(abfd=0x555555c42560, dhandle=0x555555c431b0, psyms=0x7fffffff1f98,
psymsize=0x7fffffff1fa8, pstrings=0x7fffffff1fa0,
pstringsize=0x7fffffff1fb0) at wrstabs.c:511
#10 0x00005555555aa805 in write_debugging_info (symcountp=<synthetic pointer>,
symppp=0x555555c39b20 <osympp>, dhandle=0x555555c431b0,
obfd=<optimized out>) at objcopy.c:4585
#11 copy_object (ibfd=<optimized out>, obfd=<optimized out>,
input_arch=<optimized out>) at objcopy.c:3247
#12 0x00005555555b0b8e in copy_object (input_arch=0x0, obfd=0x555555c42560,
ibfd=0x555555c41400) at objcopy.c:2611
#13 copy_file (input_filename=0x7fffffff26d0 "./sample",
output_filename=0x555555c40470 "./stoHIz82", input_target=<optimized out>,
output_target=<optimized out>, input_arch=0x0) at objcopy.c:3830
#14 0x0000555555589619 in copy_main (argv=<optimized out>, argc=<optimized
out>) at objcopy.c:5889
#15 main (argc=<optimized out>, argc@entry=0x3, argv=<optimized out>,
argv@entry=0x7fffffff22d8) at objcopy.c:6015
#16 0x00007ffff7801b97 in __libc_start_main (main=0x555555588920 <main>,
argc=0x3, argv=0x7fffffff22d8, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffff22c8) at
../csu/libc-start.c:310
#17 0x0000555555594e3a in _start ()
==============
gdb report :
objcopy: wrstabs.c:791: stab_enum_type: Assertion `tag != NULL' failed.
Program received signal SIGABRT, Aborted.
[----------------------------------registers-----------------------------------]
RAX: 0x0
RBX: 0x0
RCX: 0x7ffff781ee97 (<__GI_raise+199>: mov rcx,QWORD PTR [rsp+0x108])
RDX: 0x0
RSI: 0x7fffffff1820 --> 0x0
RDI: 0x2
RBP: 0x7ffff79977d8 ("%s%s%s:%u: %s%sAssertion `%s' failed.\n%n")
RSP: 0x7fffffff1820 --> 0x0
RIP: 0x7ffff781ee97 (<__GI_raise+199>: mov rcx,QWORD PTR [rsp+0x108])
R8 : 0x0
R9 : 0x7fffffff1820 --> 0x0
R10: 0x8
R11: 0x246
R12: 0x5555559e5678 ("wrstabs.c")
R13: 0x5555559e57cd ("tag != NULL")
R14: 0x317
R15: 0x7fffffff1c90 --> 0x555555c42560 --> 0x555555c42690 ("./stoHIz82")
EFLAGS: 0x246 (carry PARITY adjust ZERO sign trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
0x7ffff781ee8b <__GI_raise+187>: mov edi,0x2
0x7ffff781ee90 <__GI_raise+192>: mov eax,0xe
0x7ffff781ee95 <__GI_raise+197>: syscall
=> 0x7ffff781ee97 <__GI_raise+199>: mov rcx,QWORD PTR [rsp+0x108]
0x7ffff781ee9f <__GI_raise+207>: xor rcx,QWORD PTR fs:0x28
0x7ffff781eea8 <__GI_raise+216>: mov eax,r8d
0x7ffff781eeab <__GI_raise+219>: jne 0x7ffff781eecc <__GI_raise+252>
0x7ffff781eead <__GI_raise+221>: add rsp,0x118
[------------------------------------stack-------------------------------------]
0000| 0x7fffffff1820 --> 0x0
0008| 0x7fffffff1828 --> 0x555555c48db0 --> 0x0
0016| 0x7fffffff1830 --> 0x7fffffff1c90 --> 0x555555c42560 --> 0x555555c42690
("./stoHIz82")
0024| 0x7fffffff1838 --> 0x7ffff78685e0 (<_IO_vasprintf+240>: test rax,rax)
0032| 0x7fffffff1840 --> 0xfbad8000
0040| 0x7fffffff1848 --> 0x555555c48db0 --> 0x0
0048| 0x7fffffff1850 --> 0x555555c48db0 --> 0x0
0056| 0x7fffffff1858 --> 0x555555c48db0 --> 0x0
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
Stopped reason: SIGABRT
__GI_raise (sig=sig@entry=0x6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/25714] New: objcopy : SIGABRT in stab_enum_type ( wrstabs.c:791 ),
fdgkhdkgh at gmail dot com <=