public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug libdw/24158] New: run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host.
@ 2019-02-02 21:33 slyfox at inbox dot ru
  2019-02-14 11:56 ` [Bug libdw/24158] " mark at klomp dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: slyfox at inbox dot ru @ 2019-02-02 21:33 UTC (permalink / raw)
  To: elfutils-devel

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

            Bug ID: 24158
           Summary: run-backtrace-native-biarch.sh test fails on CC='gcc
                    -m32' CXX='g++ -m32' x86_64 host.
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libdw
          Assignee: unassigned at sourceware dot org
          Reporter: slyfox at inbox dot ru
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

The test failure happens on x86_64-pc-linux-gnu multi-lib system.

How to reproduce:
    $ ./configure --enable-maintainer-mode CC='gcc -m32' CXX='g++ -m32'
CFLAGS=-g CXXFLAGS=-g LDFLAGS=-g
    $ make && make check VERBOSE=1

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

0x5652d6481000  0x5652d6486000 
/home/slyfox/dev/git/elfutils/tests/backtrace-child-biarch
0x7fe2f83e9000  0x7fe2f85b5000  /lib64/libc-2.29.so
0x7fe2f85b9000  0x7fe2f85d8000  /lib64/libpthread-2.29.so
0x7fe2f8657000  0x7fe2f8681000  /lib64/ld-2.29.so
0x7fff099fc000  0x7fff099fe000  [vdso: 26219]
TID 26219:
/home/slyfox/dev/git/elfutils/tests/backtrace: dwfl_thread_getframes: no error
backtrace: linux-pid-attach.c:318: pid_set_initial_registers: Assertion
`pid_arg->tid_attached == 0' failed.
./test-subr.sh: line 84: 26218 Aborted                 (core dumped)
LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
$VALGRIND_CMD "$@"
backtrace-child-biarch: no main
rmdir: failed to remove 'test-26212': Directory not empty
FAIL run-backtrace-native-biarch.sh (exit status: 1)

============================================================================
Testsuite summary for elfutils 0.175
============================================================================
# TOTAL: 205
# PASS:  203
# SKIP:  1
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

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

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

* [Bug libdw/24158] run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host.
  2019-02-02 21:33 [Bug libdw/24158] New: run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host slyfox at inbox dot ru
@ 2019-02-14 11:56 ` mark at klomp dot org
  2019-02-16 10:39 ` mark at klomp dot org
  2022-03-24 11:38 ` mark at klomp dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mark at klomp dot org @ 2019-02-14 11:56 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-02-14
                 CC|                            |mark at klomp dot org
     Ever confirmed|0                           |1

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
I have replicated this, but don't fully understand it yet.

But this is kind of a weird issue. If you are building with -m32 on an 64bit
system you don't want/cannot have the run-backtrace-native-biarch.sh test.
Since that tests 32-bit-on-64-bit. So this is really a configure issue that
should notice that -m32 has already been added, so the test should be skipped.

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

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

* [Bug libdw/24158] run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host.
  2019-02-02 21:33 [Bug libdw/24158] New: run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host slyfox at inbox dot ru
  2019-02-14 11:56 ` [Bug libdw/24158] " mark at klomp dot org
@ 2019-02-16 10:39 ` mark at klomp dot org
  2022-03-24 11:38 ` mark at klomp dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mark at klomp dot org @ 2019-02-16 10:39 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugzilla.redhat.com
                   |                            |/show_bug.cgi?id=1201486

--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
https://bugzilla.redhat.com/show_bug.cgi?id=1201486
Describes the same issue.
There is some more discussion on what it would take to make 32bit processes
handle 64bit processes on the same host. There is a WIP patch for
ppc32-on-ppc64, but it is unclear if this can be extended to other arches.

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

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

* [Bug libdw/24158] run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host.
  2019-02-02 21:33 [Bug libdw/24158] New: run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host slyfox at inbox dot ru
  2019-02-14 11:56 ` [Bug libdw/24158] " mark at klomp dot org
  2019-02-16 10:39 ` mark at klomp dot org
@ 2022-03-24 11:38 ` mark at klomp dot org
  2 siblings, 0 replies; 4+ messages in thread
From: mark at klomp dot org @ 2022-03-24 11:38 UTC (permalink / raw)
  To: elfutils-devel

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

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
This disables the "biarch" tests in the case of a 32bit build.

commit d85945f1056641180e03fb48ab770b893125786e
Author: Mark Wielaard <mark@klomp.org>
Date:   Mon Mar 21 00:34:24 2022 +0100

    configure: Don't check whether -m64 works for 32bit host biarch check

    Running a 32bit backtrace test against a 64bit binary doesn't work.
    Only a 64bit binary can backtrace a 32bit binary. So disable the
    biarch check that inserts -m64 for a 32bit host.

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

    Signed-off-by: Mark Wielaard <mark@klomp.org>

But lets keep this bug open. It would in theory be good if this worked.

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

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

end of thread, other threads:[~2022-03-24 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-02 21:33 [Bug libdw/24158] New: run-backtrace-native-biarch.sh test fails on CC='gcc -m32' CXX='g++ -m32' x86_64 host slyfox at inbox dot ru
2019-02-14 11:56 ` [Bug libdw/24158] " mark at klomp dot org
2019-02-16 10:39 ` mark at klomp dot org
2022-03-24 11:38 ` 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).