From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A70803858C53; Wed, 18 Oct 2023 13:44:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A70803858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1697636648; bh=a09FXdWKZd5UAbCVYnq6fTXX+B8NoeJgQxcUQKuNKRo=; h=From:To:Subject:Date:From; b=I0/0YBBBMIUU7JZXN/OuI9Om1SnVesS6Vzc3p4O9yx5r2gBtgVWOq6tBSw4lqGLpE DlN9ofDUwYofb8yyU4yYFr14BwAz/vmIq3Nm4wav2cAEzDgiaZMgOkyLx783MhokLW zo1tGvYhCFeK1V5/RWY2JXqmSvYfGEgfXEU3v8IM= From: "cebtenzzre at gmail dot com" To: elfutils-devel@sourceware.org Subject: [Bug libdw/30980] New: offline.c:53: dwfl_offline_section_address: Assertion `mod->e_type == ET_REL' failed. Date: Wed, 18 Oct 2023 13:44:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cebtenzzre at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30980 Bug ID: 30980 Summary: offline.c:53: dwfl_offline_section_address: Assertion `mod->e_type =3D=3D ET_REL' failed. Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: libdw Assignee: unassigned at sourceware dot org Reporter: cebtenzzre at gmail dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- Created attachment 15181 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D15181&action=3Ded= it The file that elfutils crashes on while trying to read debug info. I ran into this crash while systemd-coredump was trying to process a coredu= mp from evolution. evolution backtrace: #0 0x0000000000000000 in () #1 0x00007f8d92ec6ba1 in compute_next_step (assistant=3D0x55a0bfe3ea60) at ../gtk/gtk/gtkassistant.c:1035 #2 gtk_assistant_next_page (assistant=3D0x55a0bfe3ea60) at ../gtk/gtk/gtkassistant.c:1610 #3 0x00007f8d7a34ad5e in () at /usr/lib/evolution/libevolution-mail.so #4 0x00007f8d8e356252 in e_simple_async_result_complete () at /usr/lib/evolution/libevolution-util.so #5 0x00007f8d8e3562b9 in () at /usr/lib/evolution/libevolution-util.so #6 0x00007f8d93834f19 in g_main_dispatch (context=3D0x55a0be1fefc0) at ../glib/glib/gmain.c:3476 #7 0x00007f8d938932b7 in g_main_context_dispatch_unlocked (context=3D0x55a0be1fefc0) at ../glib/glib/gmain.c:4284 #8 g_main_context_iterate_unlocked.isra.0 (context=3D0x55a0be1fefc0, block=3Dblock@entry=3D1, dispatch=3Ddispatch= @entry=3D1, self=3D) at ../glib/glib/gmain.c:4349 #9 0x00007f8d93835b47 in g_main_loop_run (loop=3D0x55a0bed6cde0) at ../glib/glib/gmain.c:4551 #10 0x00007f8d930337ed in gtk_main () at ../gtk/gtk/gtkmain.c:1329 #11 0x000055a0bcea857f in main () elfutils backtrace: #5 0x00007fb1fae54d26 in __assert_fail (assertion=3Dassertion@entry=3D0x7fb1fa4e1c30 "mod->e_type =3D=3D ET_REL", file=3Dfile@entry=3D0x7fb1fa4e1c26 "offline.c", line=3Dline@entry=3D53,=20 function=3Dfunction@entry=3D0x7fb1fa4fded0 <__PRETTY_FUNCTION__.0.lto_p= riv.43> "dwfl_offline_section_address") at assert.c:101 #6 0x00007fb1fa4c3c30 in dwfl_offline_section_address (mod=3D, userdata=3D, modname=3D, base=3D, secname=3D,=20 shndx=3D, shdr=3D0x7fff255196b0, addr=3D0x7fff255196c0) = at ../libdwfl/offline.c:53 #7 0x00007fb1fa4c859c in __libdwfl_relocate_value (mod=3Dmod@entry=3D0x5624c5cd80d0, elf=3Delf@entry=3D0x5624c605dc30, shstrndx=3Dshstrndx@entry=3D0x7fff25519760, shndx=3D4,=20 value=3Dvalue@entry=3D0x7fff25519768) at ../libdwfl/relocate.c:72 #8 0x00007fb1fa4c8772 in find_elf_build_id (mod=3Dmod@entry=3D0x5624c5cd80= d0, e_type=3D1, elf=3Delf@entry=3D0x5624c605dc30, build_id_bits=3Dbuild_id_bits@entry=3D0x7fff25519890,=20 build_id_elfaddr=3Dbuild_id_elfaddr@entry=3D0x7fff25519888, build_id_len=3Dbuild_id_len@entry=3D0x7fff25519884) at ../libdwelf/dwelf_elf_gnu_build_id.c:113 #9 0x00007fb1fa4c88e3 in __libdwfl_find_elf_build_id (mod=3Dmod@entry=3D0x5624c5cd80d0, elf=3D0x5624c605dc30, build_id_bits=3Dbuild_id_bits@entry=3D0x7fff25519890,=20 build_id_elfaddr=3Dbuild_id_elfaddr@entry=3D0x7fff25519888, build_id_len=3Dbuild_id_len@entry=3D0x7fff25519884) at ../libdwelf/dwelf_elf_gnu_build_id.c:142 #10 0x00007fb1fa4c8992 in __libdwfl_find_build_id (mod=3Dmod@entry=3D0x5624c5cd80d0, set=3Dset@entry=3Dfalse, elf=3D) at ../libdwfl/dwfl_module_build_id.c:70 #11 0x00007fb1fa4c939e in validate (debuglink_crc=3D, check=3D, fd=3D, mod=3D0x5624c5cd80d0) at ../libdwfl/find-debuginfo.c:141 #12 find_debuginfo_in_path (mod=3Dmod@entry=3D0x5624c5cd80d0, file_name=3Dfile_name@entry=3D0x5624c5cd82b0 "/usr/lib/libjavascriptcoregtk-4.1.so.0",=20 debuglink_file=3Ddebuglink_file@entry=3D0x7faf25bbedc8 "crti.o.debug", debuglink_crc=3Ddebuglink_crc@entry=3D465747295, debuginfo_file_name=3Ddebuginfo_file_name@entry=3D0x5624c5cd8128) at ../libdwfl/find-debuginfo.c:326 #13 0x00007fb1fa4ccfc0 in dwfl_standard_find_debuginfo (mod=3D0x5624c5cd80d= 0, userdata=3D, modname=3D, base=3D,=20 file_name=3D0x5624c5cd82b0 "/usr/lib/libjavascriptcoregtk-4.1.so.0", debuglink_file=3D0x7faf25bbedc8 "crti.o.debug", debuglink_crc=3D465747295, debuginfo_file_name=3D0x5624c5cd8128) at ../libdwfl/find-debuginfo.c:386 #14 0x00007fb1fa4c5b83 in find_debuginfo (mod=3Dmod@entry=3D0x5624c5cd80d0)= at ../libdwfl/dwfl_module_getdwarf.c:538 #15 0x00007fb1fa4cfa60 in find_dw (mod=3D0x5624c5cd80d0) at ../libdwfl/dwfl_module_getdwarf.c:1412 #16 dwfl_module_getdwarf (mod=3Dmod@entry=3D0x5624c5cd80d0, bias=3D0x7fff25= 519b88) at ../libdwfl/dwfl_module_getdwarf.c:1446 #17 0x00007fb1fa4d8bd8 in dwfl_module_addrdie (mod=3D0x5624c5cd80d0, addr=3D140245923026755, bias=3D) at ../libdwfl/dwfl_module_addrdie.c:38 #18 0x00007fb1fb0ed9e9 in frame_callback (frame=3D, userdata=3D0x7fff25519e50) at ../systemd-stable/src/shared/elf-util.c:203 #19 0x00007fb1fa4de175 in dwfl_thread_getframes (thread=3D0x7fff25519ce0, callback=3D0x7fb1fb0ed920 , arg=3D0x7fff25519e50) at ../libdwfl/dwfl_frame.c:428 #20 0x00007fb1fb0edd08 in thread_callback (thread=3D0x7fff25519ce0, userdata=3D0x7fff25519e50) at ../systemd-stable/src/shared/elf-util.c:262 #21 0x00007fb1fa4d4275 in dwfl_getthreads (dwfl=3D0x5624c5a791b0, callback=3D0x7fb1fb0edc90 , arg=3D0x7fff25519e50) at ../libdwfl/dwfl_frame.c:284 #22 0x00007fb1fb0f3e44 in parse_core (ret_package_metadata=3D, ret=3D, executable=3D, fd=3D) at ../systemd-stable/src/shared/elf-util.c:619 #23 parse_elf (ret_package_metadata=3D0x7fff25519db8, ret=3D, executable=3D, fd=3D) at ../systemd-stable/src/shared/elf-util.c:665 #24 parse_elf_object (fd=3Dfd@entry=3D6, executable=3D0x5624c5a6b41d "/usr/bin/evolution", fork_disable_dump=3D, ret=3Dret@entry=3D0x7fff25519fa8,=20 ret_package_metadata=3Dret_package_metadata@entry=3D0x7fff25519fb0) at ../systemd-stable/src/shared/elf-util.c:810 #25 0x00005624c4125ff4 in submit_coredump (context=3Dcontext@entry=3D0x7fff2551a5e0, iovw=3Diovw@entry=3D0x7fff2551a5= 60, input_fd=3Dinput_fd@entry=3D5) at ../systemd-stable/src/coredump/coredump.c= :897 #26 0x00005624c41285f2 in process_socket (fd=3D3) at ../systemd-stable/src/coredump/coredump.c:1134 #27 0x00005624c411fc31 in run (argv=3D0x7fff2551a838, argc=3D1) at ../systemd-stable/src/coredump/coredump.c:1522 #28 main (argc=3D1, argv=3D0x7fff2551a838) at ../systemd-stable/src/coredump/coredump.c:1528 The crash happens while elfutils tries to call dwfl_offline_section_address= on /usr/lib/libjavascriptcoregtk-4.1.so.0. That function is expecting a relocatable file (ET_REL), but that is a shared object (ET_DYN). A copy of that file is attached. Downstream bug report: https://github.com/systemd/systemd/issues/29585 --=20 You are receiving this mail because: You are on the CC list for the bug.=