[Bug binutils/26230] New: Invalid free in _bfd_coff_free_symbols

2020-07-12 Thread lxumei8 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26230

Bug ID: 26230
   Summary: Invalid free in _bfd_coff_free_symbols
   Product: binutils
   Version: 2.34
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: lxumei8 at gmail dot com
  Target Milestone: ---

Created attachment 12693
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12693&action=edit
poc_file

Invalid free in _bfd_coff_free_symbols

Reproduce steps:
1.download binutils-2.34 and build
2.run objdump with the following command line:
objdump --dwarf-check -C -g -f --dwarf -x poc_file

stack trace:
#0  __GI_raise (sig=sig@entry=0x6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x778208b1 in __GI_abort () at abort.c:79
#2  0x77869907 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x77996dfa "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x7787097a in malloc_printerr (str=str@entry=0x77994fe8
"free(): invalid pointer") at malloc.c:5350
#4  0x77877e8c in _int_free (have_lock=0x0, p=0x55ea3fb0,
av=0x77bcbc40 ) at malloc.c:4157
#5  __GI___libc_free (mem=0x55ea3fc0) at malloc.c:3124
#6  0x55a09305 in _bfd_coff_free_symbols (abfd=0x55ea0630) at
../../bfd/coffgen.c:1782
#7  _bfd_coff_close_and_cleanup (abfd=0x55ea0630) at
../../bfd/coffgen.c:3180
#8  0x557b6d23 in bfd_close_all_done (abfd=0x55ea0630) at
../../bfd/opncls.c:789
#9  0x555bc9b5 in display_file (last_file=0x1, target=,
filename=0x7fffe65a "id:00,sig:06,src:011281,op:MOpt-core-havoc,rep:8")
at ../../binutils/objdump.c:5016
#10 main (argc=, argc@entry=0x8, argv=,
argv@entry=0x7fffe368) at ../../binutils/objdump.c:5349
#11 0x77801b97 in __libc_start_main (main=0x555bb6d0 ,
argc=0x8, argv=0x7fffe368, init=, fini=,
rtld_fini=, stack_end=0x7fffe358)
at ../csu/libc-start.c:310
#12 0x555bd58a in _start ()

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


[Bug binutils/25447] objcopy : free() invalid pointer in _bfd_coff_free_symbols

2020-07-12 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25447

Alan Modra  changed:

   What|Removed |Added

 CC||lxumei8 at gmail dot com

--- Comment #13 from Alan Modra  ---
*** Bug 26230 has been marked as a duplicate of this bug. ***

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


[Bug binutils/26230] Invalid free in _bfd_coff_free_symbols

2020-07-12 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26230

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #1 from Alan Modra  ---
Yet another dup

*** This bug has been marked as a duplicate of bug 25447 ***

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