Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77295 - [dkms] pahole -j causes a crash when building modules

Attached to Project: Arch Linux
Opened by terusus (terusus) - Saturday, 28 January 2023, 09:36 GMT
Last edited by Toolybird (Toolybird) - Monday, 30 January 2023, 05:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When using pahole (1:1.24+r29+g02d67c5-1) with the -j flag the dkms build process crashes with a mysterious "Error 139". No additional information.

Affected linux-headers:
- 6.1.7-arch1-1
- 6.1.8-arch1-1

How to reproduce?
Build and install openrazor-driver-dkms 3.5.1-1

Manual workaround:
Patch /usr/lib/modules/6.1.8-arch1-1/build/scripts/Makefile.modfinal
from
LLVM_OBJCOPY="$(OBJCOPY)" $(PAHOLE) -J $(PAHOLE_FLAGS) --btf_base vmlinux $@; \
to
LLVM_OBJCOPY="$(OBJCOPY)" $(PAHOLE) -J --btf_gen_floats --btf_base vmlinux $@; \

PS: This build is happening in a QEMU VM with hardened_malloc and security focused settings.
This task depends upon

Closed by  Toolybird (Toolybird)
Monday, 30 January 2023, 05:46 GMT
Reason for closing:  None
Additional comments about closing:  See comments
Comment by Toolybird (Toolybird) - Sunday, 29 January 2023, 05:47 GMT
You're building an unsupported AUR pkg in an unsupported environment (QEMU VM with <...>) Is it reproducible in a non-QEMU environment? Error 139 sounds like a sigsegv so is there anything in the journal and/or does coredumpctl report anything?
Comment by terusus (terusus) - Sunday, 29 January 2023, 09:50 GMT
systemd-coredump[84276]: [🡕] Process 84269 (pahole) of user <UID> dumped core.

Stack trace of thread 84271:
#0 0x00007f62103c8b04 pthread_mutex_lock (libc.so.6 + 0x89b04)
#1 0x00007f62105ea73e n/a (libhardened_malloc.so + 0x373e)
#2 0x00007f62105ec0f0 realloc (libhardened_malloc.so + 0x50f0)
#3 0x00007f62102c996b n/a (libdw.so.1 + 0x4196b)
#4 0x00007f62102d0175 n/a (libdw.so.1 + 0x48175)
#5 0x00007f62102d0807 n/a (libdw.so.1 + 0x48807)
#6 0x00007f62102b5a87 dwarf_offdie (libdw.so.1 + 0x2da87)
#7 0x00007f6210585b00 n/a (libdwarves.so.1 + 0x5fb00)
#8 0x00007f62103c58fd n/a (libc.so.6 + 0x868fd)
#9 0x00007f6210447d20 n/a (libc.so.6 + 0x108d20)

Stack trace of thread 84270:
#0 0x00007f62105eacff n/a (libhardened_malloc.so + 0x3cff)
#1 0x00007f62102b6542 n/a (libdw.so.1 + 0x2e542)
#2 0x00007f62102b696c n/a (libdw.so.1 + 0x2e96c)
#3 0x00007f62102b8693 n/a (libdw.so.1 + 0x30693)
#4 0x00007f62102b5b4f dwarf_attr (libdw.so.1 + 0x2db4f)
#5 0x00007f6210579277 n/a (libdwarves.so.1 + 0x53277)
#6 0x00007f6210584b48 n/a (libdwarves.so.1 + 0x5eb48)
#7 0x00007f6210585b2e n/a (libdwarves.so.1 + 0x5fb2e)
#8 0x00007f62103c58fd n/a (libc.so.6 + 0x868fd)
#9 0x00007f6210447d20 n/a (libc.so.6 + 0x108d20)

Stack trace of thread 84273:
#0 0x00007f6210447d0d n/a (libc.so.6 + 0x108d0d)
#1 0x000073dc1d019990 n/a (n/a + 0x0)
ELF object binary architecture: AMD x86-64
Comment by terusus (terusus) - Sunday, 29 January 2023, 09:52 GMT
kernel: Code: c2 01 00 00 48 8d 35 07 f4 10 00 48 8d 3d 15 f4 10 00 e8 4f 79 fa ff 67 e8 19 e1 08 00 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <8b> 47 10 89 c2 81 e2 7f 01 00 00 90 83 e0 7c 0f 85 a7 00 00 00 53
kernel: pahole[84271]: segfault at 7f3c4dae7210 ip 00007f62103c8b04 sp 000072fb4a58bab8 error 4 likely on CPU 0 (core 0, socket 0)
Comment by Toolybird (Toolybird) - Monday, 30 January 2023, 05:45 GMT
libhardened_malloc features prominently which is another AUR pkg. Sorry, but none of this is supportable here. Unless you can repro on a standard Arch system with standard Arch repo pkgs, you'll have to take it elsewhere.

Loading...