https://sourceware.org/bugzilla/show_bug.cgi?id=25530
Bug ID: 25530 Summary: [nm] Aborted (core dumped) crash Product: binutils Version: 2.34 Status: UNCONFIRMED Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: tsiming1907 at 163 dot com Target Milestone: --- Created attachment 12281 --> https://sourceware.org/bugzilla/attachment.cgi?id=12281&action=edit testcase that caused the crash binutils 2.34 nm Aborted (core dumped) crash. Detailed crash information: ==2722== Memcheck, a memory error detector ==2722== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==2722== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==2722== Command: /home/tsiming/Documents/binutils-2.34/bin/nm testcase ==2722== Parent PID: 2622 ==2722== ==2722== Invalid free() / delete / delete[] / realloc() ==2722== at 0x4C2EF90: free (vg_replace_malloc.c:540) ==2722== by 0x47AB8C: _bfd_coff_free_symbols (coffgen.c:1782) ==2722== by 0x47D030: _bfd_coff_close_and_cleanup (coffgen.c:3180) ==2722== by 0x410FBA: bfd_close_all_done (opncls.c:789) ==2722== by 0x40472A: display_file (nm.c:1392) ==2722== by 0x402F62: main (nm.c:1860) ==2722== Address 0x54218f0 is 1,120 bytes inside a block of size 2,505 alloc'd ==2722== at 0x4C2DE96: malloc (vg_replace_malloc.c:309) ==2722== by 0x40F762: bfd_malloc (libbfd.c:275) ==2722== by 0x40F8FD: bfd_zmalloc (libbfd.c:360) ==2722== by 0x46B3C5: pe_ILF_build_a_bfd (peicode.h:834) ==2722== by 0x46B3C5: pe_ILF_object_p (peicode.h:1302) ==2722== by 0x46B3C5: pe_bfd_object_p (peicode.h:1428) ==2722== by 0x40E415: bfd_check_format_matches (format.c:328) ==2722== by 0x4046F7: display_file (nm.c:1375) ==2722== by 0x402F62: main (nm.c:1860) ==2722== ==2722== Invalid free() / delete / delete[] / realloc() ==2722== at 0x4C2EF90: free (vg_replace_malloc.c:540) ==2722== by 0x47AB60: _bfd_coff_free_symbols (coffgen.c:1789) ==2722== by 0x47D030: _bfd_coff_close_and_cleanup (coffgen.c:3180) ==2722== by 0x410FBA: bfd_close_all_done (opncls.c:789) ==2722== by 0x40472A: display_file (nm.c:1392) ==2722== by 0x402F62: main (nm.c:1860) ==2722== Address 0x5421b80 is 1,776 bytes inside a block of size 2,505 alloc'd ==2722== at 0x4C2DE96: malloc (vg_replace_malloc.c:309) ==2722== by 0x40F762: bfd_malloc (libbfd.c:275) ==2722== by 0x40F8FD: bfd_zmalloc (libbfd.c:360) ==2722== by 0x46B3C5: pe_ILF_build_a_bfd (peicode.h:834) ==2722== by 0x46B3C5: pe_ILF_object_p (peicode.h:1302) ==2722== by 0x46B3C5: pe_bfd_object_p (peicode.h:1428) ==2722== by 0x40E415: bfd_check_format_matches (format.c:328) ==2722== by 0x4046F7: display_file (nm.c:1375) ==2722== by 0x402F62: main (nm.c:1860) ==2722== ==2722== ==2722== HEAP SUMMARY: ==2722== in use at exit: 6 bytes in 1 blocks ==2722== total heap usage: 108 allocs, 109 frees, 132,346 bytes allocated ==2722== ==2722== LEAK SUMMARY: ==2722== definitely lost: 0 bytes in 0 blocks ==2722== indirectly lost: 0 bytes in 0 blocks ==2722== possibly lost: 0 bytes in 0 blocks ==2722== still reachable: 6 bytes in 1 blocks ==2722== suppressed: 0 bytes in 0 blocks ==2722== Rerun with --leak-check=full to see details of leaked memory ==2722== ==2722== For lists of detected and suppressed errors, rerun with: -s ==2722== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) -- You are receiving this mail because: You are on the CC list for the bug.