public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh
@ 2022-05-31 11:27 fantasquex at gmail dot com
  2022-05-31 12:11 ` [Bug general/29206] " mark at klomp dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: fantasquex at gmail dot com @ 2022-05-31 11:27 UTC (permalink / raw)
  To: 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.1653990638000000.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  0x00007f93ac9a336c n/a (libc.so.6 + 0x8e36c)
                #1  0x00007f93ac953838 raise (libc.so.6 + 0x3e838)
                #2  0x000055b9f1ab3352 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh
  2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
@ 2022-05-31 12:11 ` mark at klomp dot org
  2022-05-31 12:37 ` fantasquex at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mark at klomp dot org @ 2022-05-31 12:11 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Thanks for the report, I think this is a duplicate of bug #29176
The workaround would be to install libc6-dbgsym.

Does that "fix" the issue for you?

In that case it is a duplicate of bug #29176 and we should fix the testcase to
not require debug symbols.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh
  2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
  2022-05-31 12:11 ` [Bug general/29206] " mark at klomp dot org
@ 2022-05-31 12:37 ` fantasquex at gmail dot com
  2022-05-31 12:44 ` fantasquex at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: fantasquex at gmail dot com @ 2022-05-31 12:37 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #2 from Letu Ren <fantasquex at gmail dot com> ---
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh
  2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
  2022-05-31 12:11 ` [Bug general/29206] " mark at klomp dot org
  2022-05-31 12:37 ` fantasquex at gmail dot com
@ 2022-05-31 12:44 ` fantasquex at gmail dot com
  2022-05-31 13:54 ` mark at klomp dot org
  2022-05-31 14:14 ` fantasquex at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fantasquex at gmail dot com @ 2022-05-31 12:44 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #3 from Letu Ren <fantasquex at gmail dot com> ---
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh
  2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
                   ` (2 preceding siblings ...)
  2022-05-31 12:44 ` fantasquex at gmail dot com
@ 2022-05-31 13:54 ` mark at klomp dot org
  2022-05-31 14:14 ` fantasquex at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mark at klomp dot org @ 2022-05-31 13:54 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #4 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Letu Ren from comment #3)
> I just installed glibc-debug package as the debug symbol in ArchLinux and
> rebuilt the package. Tests of run-backtrace-native*.sh are successful

Great. Then this part is a duplicate of bug #29176

> but
> several new tests are failed. I attached the new test-suite.log as the
> attachment. Are these failure intended?

No, in theory the testsuite is all PASS.
I am not sure what is going wrong with these other tests.
It looks like the testcases themselves are not compiled with -g. So they don't
contain debuginfo. Might that be the case?

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

No worries. Thanks for the report.

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

Best to add yourself to the CC list of the relevant bug(s). Then you'll get a
notification when a patch is proposed and/or committed.

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug general/29206] 0.187: test suite fails with core dumped in run-backtrace-native*.sh
  2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
                   ` (3 preceding siblings ...)
  2022-05-31 13:54 ` mark at klomp dot org
@ 2022-05-31 14:14 ` fantasquex at gmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: fantasquex at gmail dot com @ 2022-05-31 14:14 UTC (permalink / raw)
  To: elfutils-devel

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

Letu Ren <fantasquex at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #5 from Letu Ren <fantasquex at gmail dot com> ---
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-31 14:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 11:27 [Bug general/29206] New: 0.187: test suite fails with core dumped in run-backtrace-native*.sh fantasquex at gmail dot com
2022-05-31 12:11 ` [Bug general/29206] " mark at klomp dot org
2022-05-31 12:37 ` fantasquex at gmail dot com
2022-05-31 12:44 ` fantasquex at gmail dot com
2022-05-31 13:54 ` mark at klomp dot org
2022-05-31 14:14 ` fantasquex at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).