[Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh

2022-05-31 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29206

Bug ID: 29206
   Summary: 0.187: test suite fails with core dumped in
run-backtrace-native*.sh
   Product: elfutils
   Version: unspecified
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: general
  Assignee: unassigned at sourceware dot org
  Reporter: fantasquex at gmail dot com
CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 14125
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14125&action=edit
config.log and test-suite.log

I tried to rebuild elfutils package of ArchLinux and noticed one
test(run-backtrace-native.sh) failed. And I tried to build the package manually
to reproduce the failure and got one more failure run-backtrace-native-core.sh.
After searching previous bug reports, I noticed two related reports(#28190 and
#28263) which are both marked as resolved but their error message are slightly
different from mine. So I decide to file a bug.

CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -g
-ffile-prefix-map=/build/elfutils/src=/usr/src/debug -flto=auto
-ffat-lto-objects
CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions  
  -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g
-ffile-prefix-map=/build/elfutils/src=/usr/src/debug -flto=auto

FAIL: run-backtrace-native.sh
=

case 0: expected symname 'raise' got '(null)'
./test-subr.sh: line 84: 3249284 Aborted (core dumped)
LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
$VALGRIND_CMD "$@"
backtrace-child: no main
FAIL run-backtrace-native.sh (exit status: 1)

Please let me know if you need more details or want me to perform some
diagnostics.
FAIL: run-backtrace-native-core.sh
==

/usr/bin/coredumpctl
Hint: You are currently not seeing messages from other users and the system.
  Users in groups 'adm', 'systemd-journal', 'wheel' can see all messages.
  Pass -q to turn off this notice.
   PID: 3249363 (backtrace-child)
   UID: 1015 (fanta)
   GID: 1015 (fanta)
Signal: 6 (ABRT)
 Timestamp: Tue 2022-05-31 17:50:38 CST (1s ago)
  Command Line: /home/fanta/elfutils-0.187/tests/backtrace-child --gencore
Executable: /home/fanta/elfutils-0.187/tests/backtrace-child
 Control Group: /user.slice/user-1015.slice/session-385.scope
  Unit: session-385.scope
 Slice: user-1015.slice
   Session: 385
 Owner UID: 1015 (fanta)
   Boot ID: e05e3117547d4e7586af9313885930db
Machine ID: d4a40ce966aa4a93ae4df91c3b83aa21
  Hostname: shellder.felixc.at
   Storage:
/var/lib/systemd/coredump/core.backtrace-child.1015.e05e3117547d4e7586af9313885930db.3249363.165399063800.zst
(present)
 Disk Size: 22.9K
   Message: Process 3249363 (backtrace-child) of user 1015 dumped core.

Module /home/fanta/elfutils-0.187/tests/backtrace-child with
build-id 4bf1f1c07341394a7478b89fbd0e69c3eb325dbe
Module linux-vdso.so.1 with build-id
c4fab7a7ee86e62a6272cb22354ad5a06fbf1a5d
Module ld-linux-x86-64.so.2 with build-id
fc93487393eea02b5bc6e76e48976fc325294c24
Module libc.so.6 with build-id
388993b6ef62f964bc7bf473c069fbfe957b9e44
Stack trace of thread 3249364:
#0  0x7f93ac9a336c n/a (libc.so.6 + 0x8e36c)
#1  0x7f93ac953838 raise (libc.so.6 + 0x3e838)
#2  0x55b9f1ab3352 n/a
(/home/fanta/elfutils-0.187/tests/backtrace-child + 0x1352)
ELF object binary architecture: AMD x86-64
case 0: expected symname 'raise' got '(null)'
./test-subr.sh: line 84: 3249383 Aborted (core dumped)
LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
$VALGRIND_CMD "$@"
backtrace-child-core.3249363: no main
rmdir: failed to remove 'test-3249355': Directory not empty
FAIL run-backtrace-native-core.sh (exit status: 1)

Some important logs are listed above, and full logs(config.log test-suite.log)
are attached as attachment.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh

2022-05-31 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29206

--- Comment #2 from Letu Ren  ---
Created attachment 14126
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14126&action=edit
new test-suite.log

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh

2022-05-31 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29206

--- Comment #3 from Letu Ren  ---
I just installed glibc-debug package as the debug symbol in ArchLinux and
rebuilt the package. Tests of run-backtrace-native*.sh are successful but
several new tests are failed. I attached the new test-suite.log as the
attachment. Are these failure intended? If so, I would like to report to
ArchLinux to just skip run-backtrace-native*.sh and wait for new version of
elfutils to fix.

Sorry for reporting duplicate issues. It's my first time to report a bug on
sourceware bugzilla.

Last question, how can I know the patch for this issue has been applied? Just
wait for a new release note or somehow to be added to a CC list?

Many thanks for your reply!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh

2022-05-31 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29206

Letu Ren  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #5 from Letu Ren  ---
I just rebuilt elfutils again from a newly decompressed release tarball with
glibc-debug installed and all tests passed. Great! Don't know why last build
and check failed. Maybe I didn't clean up my local environment after installing
glibc-debug. Now we can draw the conclusion this issue can be fixed by
installing glibc-debug package. And I'll send a patch to ArchLinux to skip
those tests temporarily. Thanks again for your reply. Looking forward to the
ultimate solution to this issue.

*** This bug has been marked as a duplicate of bug 29176 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug general/29176] run-backtrace-native-biarch.sh seems to fail on Ubuntu Jammy

2022-05-31 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29176

--- Comment #7 from Letu Ren  ---
*** Bug 29206 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

[Bug tools/29073] program header entry 2: unknown program header entry type 0x70000003

2022-06-01 Thread fantasquex at gmail dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=29073

--- Comment #3 from Letu Ren  ---
Hi! I encountered this issue when building packages for ArchLinux RISC-V. I
wonder whether there is a patch which can be backported to 0.187 to make tests
pass.

-- 
You are receiving this mail because:
You are on the CC list for the bug.