[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/22741] New: objcopy segfault
From: |
kanglictf at gmail dot com |
Subject: |
[Bug binutils/22741] New: objcopy segfault |
Date: |
Wed, 24 Jan 2018 06:11:49 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22741
Bug ID: 22741
Summary: objcopy segfault
Product: binutils
Version: 2.31 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: kanglictf at gmail dot com
Target Milestone: ---
Created attachment 10758
--> https://sourceware.org/bugzilla/attachment.cgi?id=10758&action=edit
input that cause objcopy to segfault
objcopy segfault on the given input files.
# ------------
# Cmdline:
$ objcopy /tmp/objcopy_crash.input
Segmentation fault
# ------------
# gdb output
Program received signal SIGSEGV, Segmentation fault.
0x00000000004ea2f9 in coff_mangle_symbols (bfd_ptr=0x7a92f0) at
../../bfd/coffgen.c:843
843 a->u.auxent.x_sym.x_tagndx.p->offset;
(gdb) where
#0 0x00000000004ea2f9 in coff_mangle_symbols (bfd_ptr=0x7a92f0) at
../../bfd/coffgen.c:843
#1 0x00000000004d3c7d in coff_write_object_contents (abfd=0x7a92f0) at
../../bfd/coffcode.h:4231
#2 0x0000000000441c80 in bfd_close (abfd=0x7a92f0) at ../../bfd/opncls.c:731
#3 0x00000000004091cb in copy_file (input_filename=0x7fffffffe82a
"/tmp/objcopy_crash.input", output_filename=0x7a5f00 "/tmp/st2DszA7",
input_target=0x0, output_target=0x55aad7 "pei-i386", input_arch=0x0)
at ../../binutils/objcopy.c:3530
#4 0x000000000040d017 in copy_main (argc=2, argv=0x7fffffffe5b8) at
../../binutils/objcopy.c:5478
#5 0x000000000040d363 in main (argc=2, argv=0x7fffffffe5b8) at
../../binutils/objcopy.c:5582
# ------------------------------
# Tested on the following two objcopy versions
# 1.
>From git://sourceware.org/git/binutils-gdb.git
cloned on Jan 24, 2018
commit 0984958bd1d20245e4d42888a697b6015dc6172f
Ubuntu 14.04.5 LTS,
$ uname -a
Linux 3.19.0-74-generic #82~14.04.1-Ubuntu SMP Fri Oct 21 15:43:47 UTC 2016
x86_64 x86_64 x86_64 GNU/Linux
# 2
GNU objcopy (GNU Binutils for Ubuntu) 2.26.1
Ubuntu 16.04.3 LTS
Linux 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/22741] New: objcopy segfault,
kanglictf at gmail dot com <=