https://sourceware.org/bugzilla/show_bug.cgi?id=25529
Bug ID: 25529 Summary: [objdump] binutils 2.34 free(): invalid pointer with -x flag Product: binutils Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: law4dmail at gmail dot com Target Milestone: --- Created attachment 12280 --> https://sourceware.org/bugzilla/attachment.cgi?id=12280&action=edit crash test case objdump crashes with the following command: ./objdump -x <file> ================================================================= ==20906==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x61e00000f4e0 in thread T0 #0 0x7fa02645a2ca in __interceptor_free (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x982ca) #1 0x958046 in _bfd_coff_free_symbols /home/ubuntu/xxx/sources/binutils-2.34/bfd/coffgen.c:1782 #2 0x958046 in _bfd_coff_close_and_cleanup /home/ubuntu/xxx/sources/binutils-2.34/bfd/coffgen.c:3180 #3 0x637038 in bfd_close_all_done /home/ubuntu/xxx/sources/binutils-2.34/bfd/opncls.c:789 #4 0x41165e in display_file objdump.c:5016 #5 0x41165e in main objdump.c:5349 #6 0x7fa025e1482f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) #7 0x4153b8 in _start (/home/ubuntu/xxx/proven/binutils/bin/objdump+0x4153b8) 0x61e00000f4e0 is located 1120 bytes inside of 2541-byte region [0x61e00000f080,0x61e00000fa6d) allocated by thread T0 here: #0 0x7fa02645a79a in __interceptor_calloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x9879a) #1 0x62963a in bfd_malloc /home/ubuntu/xxx/sources/binutils-2.34/bfd/libbfd.c:275 #2 0x62963a in bfd_zmalloc /home/ubuntu/xxx/sources/binutils-2.34/bfd/libbfd.c:360 SUMMARY: AddressSanitizer: bad-free ??:0 __interceptor_free ==20906==ABORTING -- You are receiving this mail because: You are on the CC list for the bug.