https://sourceware.org/bugzilla/show_bug.cgi?id=29006
Roland Schwingel <Roland.Schwingel at onevision dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Roland.Schwingel@onevision. | |com --- Comment #5 from Roland Schwingel <Roland.Schwingel at onevision dot com> --- Hi... I maybe have the same or very similar problem. I already have applied the patch to my binutils 2.38 but it still has the same problem. See here: https://sourceware.org/pipermail/binutils/2022-May/120773.html the most vital part - the valgrind output: ==23381== GNU ld (GNU Binutils) 2.38 ==23381== Invalid read of size 1 ==23381== at 0x508B434: vfprintf (in /lib64/libc-2.17.so) ==23381== by 0x50B3E63: vasprintf (in /lib64/libc-2.17.so) ==23381== by 0x50912F6: asprintf (in /lib64/libc-2.17.so) ==23381== by 0x4432CE: make_runtime_pseudo_reloc (pe-dll.c:2663) ==23381== by 0x443A81: pep_create_import_fixup (pe-dll.c:2838) ==23381== by 0x432CA6: make_import_fixup (ei386pep.c:1129) ==23381== by 0x43F8A5: pe_walk_relocs (pe-dll.c:1349) ==23381== by 0x43FD95: pep_find_data_imports (pe-dll.c:1497) ==23381== by 0x433674: gld_i386pep_after_open (ei386pep.c:1408) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Address 0x95e2500 is 0 bytes inside a block of size 20 free'd ==23381== at 0x4C2E10B: free (vg_replace_malloc.c:871) ==23381== by 0x445199: pep_process_import_defs (pe-dll.c:3324) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Block was alloc'd at ==23381== at 0x4C306F1: malloc (vg_replace_malloc.c:380) ==23381== by 0x51658B: xmalloc (xmalloc.c:149) ==23381== by 0x5166BE: xstrdup (xstrdup.c:34) ==23381== by 0x444ADB: pep_process_import_defs (pe-dll.c:3234) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== ==23381== Invalid read of size 1 ==23381== at 0x50B83A0: _IO_default_xsputn (in /lib64/libc-2.17.so) ==23381== by 0x508B472: vfprintf (in /lib64/libc-2.17.so) ==23381== by 0x50B3E63: vasprintf (in /lib64/libc-2.17.so) ==23381== by 0x50912F6: asprintf (in /lib64/libc-2.17.so) ==23381== by 0x4432CE: make_runtime_pseudo_reloc (pe-dll.c:2663) ==23381== by 0x443A81: pep_create_import_fixup (pe-dll.c:2838) ==23381== by 0x432CA6: make_import_fixup (ei386pep.c:1129) ==23381== by 0x43F8A5: pe_walk_relocs (pe-dll.c:1349) ==23381== by 0x43FD95: pep_find_data_imports (pe-dll.c:1497) ==23381== by 0x433674: gld_i386pep_after_open (ei386pep.c:1408) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== Address 0x95e2500 is 0 bytes inside a block of size 20 free'd ==23381== at 0x4C2E10B: free (vg_replace_malloc.c:871) ==23381== by 0x445199: pep_process_import_defs (pe-dll.c:3324) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Block was alloc'd at ==23381== at 0x4C306F1: malloc (vg_replace_malloc.c:380) ==23381== by 0x51658B: xmalloc (xmalloc.c:149) ==23381== by 0x5166BE: xstrdup (xstrdup.c:34) ==23381== by 0x444ADB: pep_process_import_defs (pe-dll.c:3234) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== ==23381== Invalid read of size 1 ==23381== at 0x50B83AE: _IO_default_xsputn (in /lib64/libc-2.17.so) ==23381== by 0x508B472: vfprintf (in /lib64/libc-2.17.so) ==23381== by 0x50B3E63: vasprintf (in /lib64/libc-2.17.so) ==23381== by 0x50912F6: asprintf (in /lib64/libc-2.17.so) ==23381== by 0x4432CE: make_runtime_pseudo_reloc (pe-dll.c:2663) ==23381== by 0x443A81: pep_create_import_fixup (pe-dll.c:2838) ==23381== by 0x432CA6: make_import_fixup (ei386pep.c:1129) ==23381== by 0x43F8A5: pe_walk_relocs (pe-dll.c:1349) ==23381== by 0x43FD95: pep_find_data_imports (pe-dll.c:1497) ==23381== by 0x433674: gld_i386pep_after_open (ei386pep.c:1408) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== Address 0x95e2502 is 2 bytes inside a block of size 20 free'd ==23381== at 0x4C2E10B: free (vg_replace_malloc.c:871) ==23381== by 0x445199: pep_process_import_defs (pe-dll.c:3324) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Block was alloc'd at ==23381== at 0x4C306F1: malloc (vg_replace_malloc.c:380) ==23381== by 0x51658B: xmalloc (xmalloc.c:149) ==23381== by 0x5166BE: xstrdup (xstrdup.c:34) ==23381== by 0x444ADB: pep_process_import_defs (pe-dll.c:3234) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== ==23381== Invalid read of size 1 ==23381== at 0x508B434: vfprintf (in /lib64/libc-2.17.so) ==23381== by 0x50B3E63: vasprintf (in /lib64/libc-2.17.so) ==23381== by 0x50912F6: asprintf (in /lib64/libc-2.17.so) ==23381== by 0x4436C3: pe_create_runtime_relocator_reference (pe-dll.c:2754) ==23381== by 0x443AD1: pep_create_import_fixup (pe-dll.c:2844) ==23381== by 0x432CA6: make_import_fixup (ei386pep.c:1129) ==23381== by 0x43F8A5: pe_walk_relocs (pe-dll.c:1349) ==23381== by 0x43FD95: pep_find_data_imports (pe-dll.c:1497) ==23381== by 0x433674: gld_i386pep_after_open (ei386pep.c:1408) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Address 0x95e2500 is 0 bytes inside a block of size 20 free'd ==23381== at 0x4C2E10B: free (vg_replace_malloc.c:871) ==23381== by 0x445199: pep_process_import_defs (pe-dll.c:3324) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== Block was alloc'd at ==23381== at 0x4C306F1: malloc (vg_replace_malloc.c:380) ==23381== by 0x51658B: xmalloc (xmalloc.c:149) ==23381== by 0x5166BE: xstrdup (xstrdup.c:34) ==23381== by 0x444ADB: pep_process_import_defs (pe-dll.c:3234) ==23381== by 0x433648: gld_i386pep_after_open (ei386pep.c:1405) ==23381== by 0x428FCB: ldemul_after_open (ldemul.c:65) ==23381== by 0x41D9F2: lang_process (ldlang.c:8162) ==23381== by 0x422440: main (ldmain.c:497) ==23381== ==23381== ==23381== HEAP SUMMARY: ==23381== in use at exit: 83,040,828 bytes in 25,511 blocks ==23381== total heap usage: 96,735 allocs, 71,224 frees, 122,050,867 bytes allocated ==23381== ==23381== LEAK SUMMARY: ==23381== definitely lost: 2,432,172 bytes in 1,940 blocks ==23381== indirectly lost: 194,424 bytes in 1,075 blocks ==23381== possibly lost: 0 bytes in 0 blocks ==23381== still reachable: 80,414,232 bytes in 22,496 blocks ==23381== suppressed: 0 bytes in 0 blocks ==23381== Rerun with --leak-check=full to see details of leaked memory ==23381== ==23381== For lists of detected and suppressed errors, rerun with: -s ==23381== ERROR SUMMARY: 19110 errors from 4 contexts (suppressed: 0 from Thanks for help -- You are receiving this mail because: You are on the CC list for the bug.