control: severity -1 serious Hello, according to the Ubuntu bug [1]
This happens to be caused by the patch add_cmake_libbpf_enabled_option.patch. If you remove that patch and rebuild everything works fine. [1] https://bugs.launchpad.net/ubuntu/+source/dwarves/+bug/1958959 On Mon, 24 Jan 2022 10:06:44 -0800 Andres Freund <and...@anarazel.de> wrote:
Package: pahole Version: 1.22-2 Severity: normal Dear Maintainer, Building an upstream kernel reliably segfaults in pahole, starting with 1.22-2. I just downgraded to 1.22-1 (from snapshot.do) and that does *not* have this problem. I don't immediately see a changelog entry that could explain this problem. Greetings, Andres Backtrace from core file: #0 type__compare_members (b=0x55a9260432b0, a=0x55a925f8ce70) at ./pahole.c:216 216 ./pahole.c: No such file or directory. (gdb) bt #0 type__compare_members (b=0x55a9260432b0, a=0x55a925f8ce70) at ./pahole.c:216 #1 type__compare (cu_a=<optimized out>, cu_b=0x55a925f4b880, b=0x55a9260432b0, a=0x55a925f8ce70) at ./pahole.c:310 #2 __structures__add (class=class@entry=0x55a9260432b0, cu=cu@entry=0x55a925f4b880, id=id@entry=26, existing_entry=existing_entry@entry=0x7ffce1053090) at ./pahole.c:326 #3 0x000055a9258f4491 in structures__add (existing_entry=0x7ffce1053090, id=26, cu=0x55a925f4b880, class=0x55a9260432b0) at ./pahole.c:357 #4 print_classes (cu=<optimized out>) at ./pahole.c:524 #5 pahole_stealer (cu=0x55a925f4b880, conf_load=<optimized out>) at ./pahole.c:2859 #6 0x000055a925901613 in cu__finalize (conf=0x55a925914100 <conf_load>, cu=0x55a925f4b880) at ./dwarf_loader.c:2477 #7 cus__finalize (cus=0x55a925f47610, cu=cu@entry=0x55a925f4b880, conf=0x55a925914100 <conf_load>) at ./dwarf_loader.c:2484 #8 0x000055a925903ba7 in dwarf_cus__create_and_process_cu (dcus=dcus@entry=0x7ffce10532a0, cu_die=0x7ffce1053250, pointer_size=<optimized out>) at ./dwarf_loader.c:2675 #9 0x000055a92590462c in __dwarf_cus__process_cus (dcus=<optimized out>) at ./dwarf_loader.c:2764 #10 dwarf_cus__process_cus (dcus=0x7ffce10532a0) at ./dwarf_loader.c:2778 #11 cus__load_module (cus=cus@entry=0x55a925f47610, conf=<optimized out>, mod=mod@entry=0x55a925f49f00, dw=<optimized out>, elf=elf@entry=0x55a925f476f0, filename=0x7ffce1054a6e ".tmp_vmlinux.btf") at ./dwarf_loader.c:2913 #12 0x000055a9259048b1 in cus__process_dwflmod (dwflmod=0x55a925f49f00, userdata=<optimized out>, name=<optimized out>, base=<optimized out>, arg=0x7ffce1053400) at ./dwarf_loader.c:2957 #13 0x00007fdc64fe3471 in dwfl_getmodules () from /lib/x86_64-linux-gnu/libdw.so.1 #14 0x000055a925900880 in cus__process_file (filename=0x7ffce1054a6e ".tmp_vmlinux.btf", fd=5, conf=0x55a925914100 <conf_load>, cus=0x55a925f47610) at ./dwarf_loader.c:3023 #15 dwarf__load_file (cus=0x55a925f47610, conf=0x55a925914100 <conf_load>, filename=0x7ffce1054a6e ".tmp_vmlinux.btf") at ./dwarf_loader.c:3058 #16 0x000055a9258f905f in cus__load_file (cus=cus@entry=0x55a925f47610, conf=conf@entry=0x55a925914100 <conf_load>, filename=0x7ffce1054a6e ".tmp_vmlinux.btf") at ./dwarves.c:2043 #17 0x000055a9258f92d8 in cus__load_files (cus=cus@entry=0x55a925f47610, conf=conf@entry=0x55a925914100 <conf_load>, filenames=filenames@entry=0x7ffce10537c0) at ./dwarves.c:2396 #18 0x000055a9258f0ba9 in main (argc=4, argv=0x7ffce10537a8) at ./pahole.c:3224 (gdb) Using a pahole built from source I do not see this. -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.16.0-rc5-andres-00225-g5e9874628080 (SMP w/40 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set