public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip
@ 2018-11-20 18:31 kurt at roeckx dot be
  2018-11-20 18:51 ` [Bug general/23901] " mark at klomp dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kurt at roeckx dot be @ 2018-11-20 18:31 UTC (permalink / raw)
  To: elfutils-devel

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

            Bug ID: 23901
           Summary: run-backtrace-native-core returns error isntead of
                    skip
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: kurt at roeckx dot be
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

On MIPS I get:

FAIL: run-backtrace-native-core.sh
==================================

/<<PKGBUILDDIR>>/tests/backtrace: dwfl_pid: Unwinding not supported for this
architecture
backtrace-child-core.9086: arch not supported
rmdir: failed to remove 'test-9078': Directory not empty
FAIL run-backtrace-native-core.sh (exit status: 1)

-- 
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/23901] run-backtrace-native-core returns error isntead of skip
  2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
@ 2018-11-20 18:51 ` mark at klomp dot org
  2018-11-20 19:47 ` kurt at roeckx dot be
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mark at klomp dot org @ 2018-11-20 18:51 UTC (permalink / raw)
  To: elfutils-devel

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

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> ---
That is indeed weird. It should exit 77 on that message.
But it seems there is something left in that test-9078 test subdir.
That would indeed make it fail. What is in that dir?

Note that there is no MIPS backend support, so failures are expected.

It might be that you have local debian patches that provide some MIPS support
which might explain the issue.

It would be nice to have a MIPS arch expert submit these patches upstream to
get official MIPS support for elfutils.

-- 
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/23901] run-backtrace-native-core returns error isntead of skip
  2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
  2018-11-20 18:51 ` [Bug general/23901] " mark at klomp dot org
@ 2018-11-20 19:47 ` kurt at roeckx dot be
  2018-11-21 12:10 ` mark at klomp dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: kurt at roeckx dot be @ 2018-11-20 19:47 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #2 from Kurt Roeckx <kurt at roeckx dot be> ---
Yes, I've had this mips patch written in 2006. But I've been unable to contact
the author of that. It has had various fixes since, but the current version
also has other issues, see:
https://buildd.debian.org/status/fetch.php?pkg=elfutils&arch=mips&ver=0.175-1&stamp=1542667301&raw=0

Anyway, the directory contains:
-rw------- 1 kroeckx kroeckx 8790016 Nov 20 19:23 core.10371
-rw-r--r-- 1 kroeckx kroeckx       0 Nov 20 19:23 core.10371.bt
-rw-r--r-- 1 kroeckx kroeckx     102 Nov 20 19:23 core.10371.err

-- 
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/23901] run-backtrace-native-core returns error isntead of skip
  2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
  2018-11-20 18:51 ` [Bug general/23901] " mark at klomp dot org
  2018-11-20 19:47 ` kurt at roeckx dot be
@ 2018-11-21 12:10 ` mark at klomp dot org
  2018-11-21 19:02 ` kurt at roeckx dot be
  2018-11-21 19:10 ` mark at klomp dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mark at klomp dot org @ 2018-11-21 12:10 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
Odd, the trap on exit really should remove those.
But explicitly cleaning the test files seems to work:

diff --git a/tests/backtrace-subr.sh b/tests/backtrace-subr.sh
index ff42c6f..53c719d 100644
--- a/tests/backtrace-subr.sh
+++ b/tests/backtrace-subr.sh
@@ -85,6 +85,7 @@ check_unsupported()
   testname=$2
   if grep -q ': Unwinding not supported for this architecture$' $err; then
     echo >&2 $testname: arch not supported
+    test_cleanup
     exit 77
   fi
 }

-- 
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/23901] run-backtrace-native-core returns error isntead of skip
  2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
                   ` (2 preceding siblings ...)
  2018-11-21 12:10 ` mark at klomp dot org
@ 2018-11-21 19:02 ` kurt at roeckx dot be
  2018-11-21 19:10 ` mark at klomp dot org
  4 siblings, 0 replies; 6+ messages in thread
From: kurt at roeckx dot be @ 2018-11-21 19:02 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #4 from Kurt Roeckx <kurt at roeckx dot be> ---
I can confirm that the patch fixes the issue for me.

-- 
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/23901] run-backtrace-native-core returns error isntead of skip
  2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
                   ` (3 preceding siblings ...)
  2018-11-21 19:02 ` kurt at roeckx dot be
@ 2018-11-21 19:10 ` mark at klomp dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mark at klomp dot org @ 2018-11-21 19:10 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

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

--- Comment #5 from Mark Wielaard <mark at klomp dot org> ---
commit 628b4a93c6863b9982d817db6acaacbc4e116453
Author: Mark Wielaard <mark@klomp.org>
Date:   Wed Nov 21 20:07:14 2018 +0100

    tests: Call test_cleanup in backtrace-subr.sh check_unsupported.

    We want to make sure all (temporary) test files are cleaned up even when
    we exit 77 to skip the testcase.

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

    Tested-by: Kurt Roeckx <kurt@roeckx.be>
    Signed-off-by: Mark Wielaard <mark@klomp.org>

-- 
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:[~2018-11-21 19:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 18:31 [Bug general/23901] New: run-backtrace-native-core returns error isntead of skip kurt at roeckx dot be
2018-11-20 18:51 ` [Bug general/23901] " mark at klomp dot org
2018-11-20 19:47 ` kurt at roeckx dot be
2018-11-21 12:10 ` mark at klomp dot org
2018-11-21 19:02 ` kurt at roeckx dot be
2018-11-21 19:10 ` mark at klomp dot org

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).