bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x8


From: luca.bacci at outlook dot com
Subject: [Bug binutils/29389] Failed assertions in bfd/cofflink.c and bfd/coff-x86_64.c during the linking stage (MSYS2 MinGW64)
Date: Sat, 30 Jul 2022 14:54:12 +0000

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

--- Comment #11 from Luca Bacci <luca.bacci at outlook dot com> ---
Ok, I can now reproduce the issue on Linux

1. Download the binutils-issue.zip archive:
https://drive.google.com/file/d/17vAIVbxtBsubC0yjYiZClYejEwDTqJkA/view?usp=sharing
2. Extract the archive
3. Open a terminal and cd into the extracted folder
4. Launch the following command:

x86_64-w64-mingw32-ld.bfd -o compose-parse
subprojects/gtk/gtk/compose/compose-parse.exe.p/compose-parse.c.obj
--allow-shlib-undefined --start-group
subprojects/{gtk/gtk/libgtk.a,gtk/gtk/css/libgtk_css.a,glib/glib/libglib-2.0.dll.a,glib/gobject/libgobject-2.0.dll.a,glib/gio/libgio-2.0.dll.a,glib/gmodule/libgmodule-2.0.dll.a,gtk/gdk/libgdk.a,gtk/gdk/win32/libgdk-win32.a,gtk/gsk/libgsk.a,gtk/gsk/libgsk_f16c.a}
-Bsymbolic d/msys64/mingw64/lib/libintl.a
d/msys64/mingw64/lib/{libpangocairo-1.0.dll.a,libpango-1.0.dll.a,libgobject-2.0.dll.a,libglib-2.0.dll.a,libintl.dll.a,libharfbuzz.dll.a,libcairo.dll.a,libfribidi.dll.a,libcairo-gobject.dll.a,libgdk_pixbuf-2.0.dll.a,libepoxy.dll.a}
d/msys64/mingw64/lib/libm.a
d/msys64/mingw64/lib/{libgraphene-1.0.dll.a,libpangowin32-1.0.dll.a}
d/msys64/mingw64/lib/{libadvapi32.a,libcomctl32.a,libcrypt32.a,libdwmapi.a,libimm32.a,libsetupapi.a,libwinmm.a}
d/msys64/mingw64/lib/{libpangoft2-1.0.dll.a,/libfontconfig.dll.a,libfreetype.dll.a}
d/msys64/mingw64/lib/libintl.a
d/msys64/mingw64/lib/{libpng16.dll.a,libz.dll.a,libtiff.dll.a,libjpeg.dll.a}
d/msys64/mingw64/lib/libhid.a
d/msys64/mingw64/lib/libcairo-script-interpreter.dll.a
d/msys64/mingw64/lib/{libintl.a,libadvapi32.a,libcomctl32.a,libcrypt32.a,libdwmapi.a,libimm32.a,libsetupapi.a,libwinmm.a,libintl.a,libhid.a,libkernel32.a,libuser32.a,libgdi32.a,libwinspool.a,libshell32.a,libole32.a,liboleaut32.a,libuuid.a,libcomdlg32.a}
"--end-group"
d/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/12.1.0/{crtbegin.o,libgcc.a,libgcc_eh.a}
d/msys64/mingw64/lib/{crt2.o,default-manifest.o,libmingw32.a,libmingwex.a,libmoldname.a,libmsvcrt.a}
--subsystem=console

It doesn' complete due to a bunch of missing symbols, but that's not relevant.
Now, with the help of gdb, break into _bfd_coff_link_input_bfd() when
input_bfd->filename == "libgobject_2_0_0_dll_d000431.o". That will happen two
times: the first time it happens everything is normal, the second time you will
see that flaginfo points to invalid memory (print *flaginfo)

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