bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/20241] plugin lto + archive: invalid read access might cause SIG


From: frederic.germain at gmail dot com
Subject: [Bug ld/20241] plugin lto + archive: invalid read access might cause SIGSEGV
Date: Sun, 12 Jun 2016 06:44:40 +0000

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

--- Comment #5 from Frédéric Germain <frederic.germain at gmail dot com> ---
(In reply to H.J. Lu from comment #3)
> Please try users/hjl/lto-mixed/master branch to see if it works.

Got the same problem on that branch :

==20063== Invalid read of size 8
==20063==    at 0x41F8A0: vfinfo (ldmisc.c:233)
==20063==    by 0x41FEF7: info_msg (ldmisc.c:452)
==20063==    by 0x41A561: add_archive_element (ldmain.c:885)
==20063==    by 0x40A46B5: elf_link_add_archive_symbols (elflink.c:5306)
==20063==    by 0x40A46B5: bfd_elf_link_add_symbols (elflink.c:5362)
==20063==    by 0x4142F6: load_symbols (ldlang.c:2894)
==20063==    by 0x414EFE: open_input_bfds (ldlang.c:3343)
==20063==    by 0x417429: lang_process (ldlang.c:6846)
==20063==    by 0x405879: main (ldmain.c:391)
==20063==  Address 0x54487e8 is 216 bytes inside a block of size 288 free'd
==20063==    at 0x4C29CF0: free (vg_replace_malloc.c:530)
==20063==    by 0x4075116: bfd_close (opncls.c:745)
==20063==    by 0x423674: plugin_maybe_claim (plugin.c:1213)
==20063==    by 0x41A436: add_archive_element (ldmain.c:783)
==20063==    by 0x40A46B5: elf_link_add_archive_symbols (elflink.c:5306)
==20063==    by 0x40A46B5: bfd_elf_link_add_symbols (elflink.c:5362)
==20063==    by 0x4142F6: load_symbols (ldlang.c:2894)
==20063==    by 0x414EFE: open_input_bfds (ldlang.c:3343)
==20063==    by 0x417429: lang_process (ldlang.c:6846)
==20063==    by 0x405879: main (ldmain.c:391)
==20063==  Block was alloc'd at
==20063==    at 0x4C28BF6: malloc (vg_replace_malloc.c:299)
==20063==    by 0x406F3D2: bfd_malloc (libbfd.c:184)
==20063==    by 0x406F57D: bfd_zmalloc (libbfd.c:269)
==20063==    by 0x4074B8A: _bfd_new_bfd (opncls.c:61)
==20063==    by 0x4074D87: bfd_fopen (opncls.c:199)
==20063==    by 0x4066897: open_nested_file (archive.c:390)
==20063==    by 0x406765A: _bfd_get_elt_at_filepos (archive.c:699)
==20063==    by 0x40A4669: elf_link_add_archive_symbols (elflink.c:5297)
==20063==    by 0x40A4669: bfd_elf_link_add_symbols (elflink.c:5362)
==20063==    by 0x4142F6: load_symbols (ldlang.c:2894)
==20063==    by 0x414EFE: open_input_bfds (ldlang.c:3343)
==20063==    by 0x417429: lang_process (ldlang.c:6846)
==20063==    by 0x405879: main (ldmain.c:391)

-- 
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]