bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/23061] New: objcopy segfault in coff_mangle_symbols


From: tom at ritter dot vg
Subject: [Bug binutils/23061] New: objcopy segfault in coff_mangle_symbols
Date: Fri, 13 Apr 2018 16:53:11 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23061

            Bug ID: 23061
           Summary: objcopy segfault in coff_mangle_symbols
           Product: binutils
           Version: 2.31 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: tom at ritter dot vg
  Target Milestone: ---

Using commit:

commit 4a4495d62d185bdae17ed6aae6ea8249ad07c799 (HEAD -> master, origin/master,
origin/HEAD)
Author: Markus Metzger <address@hidden>
Date:   Fri Feb 2 12:29:48 2018 +0100



(gdb) run -v --only-keep-debug xul.dll .debug/xul.dll.debug
Starting program: /home/tom/Documents/moz/mingw-tools/objcopy-trunk -v
--only-keep-debug xul.dll .debug/xul.dll.debug
copy from `xul.dll' [pei-x86-64] to `.debug/xul.dll.debug' [pei-x86-64]

Program received signal SIGSEGV, Segmentation fault.
0x0000555555625c50 in coff_mangle_symbols
(address@hidden) at coffgen.c:849
849                        
a->u.auxent.x_sym.x_fcnary.x_fcn.x_endndx.p->offset;
(gdb) bt
#0  0x0000555555625c50 in coff_mangle_symbols
(address@hidden) at coffgen.c:849
#1  0x000055555562ec9d in coff_write_object_contents (abfd=<optimized out>) at
coffcode.h:4083
#2  0x00005555555b57da in bfd_close (abfd=0x5555558c4510) at opncls.c:731
#3  0x0000555555590306 in copy_file (input_filename=0x7fffffffeb1a "xul.dll",
output_filename=0x7fffffffeb22 ".debug/xul.dll.debug", input_target=<optimized
out>,
    output_target=<optimized out>, input_arch=0x0) at objcopy.c:3539
#4  0x000055555558a21f in copy_main (argv=<optimized out>, argc=<optimized
out>) at objcopy.c:5487
#5  main (argc=<optimized out>, argv=<optimized out>) at objcopy.c:5591


This is not a fuzzed input or anything; it is a real file generated from a
MinGW build of Firefox. 

Repro file (xul.dll) is in 
https://queue.taskcluster.net/v1/task/eo3S-KOCTee1NmzZZTDsMA/runs/0/artifacts/public/build/target.zip

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]