Bug 102565 - u_debug_stack.c:114: undefined reference to `_Ux86_64_getcontext'
Summary: u_debug_stack.c:114: undefined reference to `_Ux86_64_getcontext'
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
Keywords: bisected, regression
Depends on:
Reported: 2017-09-06 16:35 UTC by Vinson Lee
Modified: 2019-02-01 15:37 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Description Vinson Lee 2017-09-06 16:35:17 UTC
u_debug_stack.c:114: undefined reference to `_Ux86_64_getcontext'

5c9af800cbce71f818b5d5e8ce9bfc5b56611360 (master 17.3.0-devel)

$ make check
  CXXLD    st-renumerate-test
../../../../src/gallium/auxiliary/.libs/libgallium.a(u_debug_stack.o): In function `debug_backtrace_capture':
mesa/src/gallium/auxiliary/util/u_debug_stack.c:114: undefined reference to `_Ux86_64_getcontext'
mesa/src/gallium/auxiliary/util/u_debug_stack.c:115: undefined reference to `_ULx86_64_init_local'
mesa/src/gallium/auxiliary/util/u_debug_stack.c:117: undefined reference to `_ULx86_64_step'
mesa/src/gallium/auxiliary/util/u_debug_stack.c:120: undefined reference to `_ULx86_64_step'
mesa/src/gallium/auxiliary/util/u_debug_stack.c:123: undefined reference to `_ULx86_64_get_reg'
mesa/src/gallium/auxiliary/util/u_debug_stack.c:124: undefined reference to `_ULx86_64_get_proc_info'
Comment 1 Vinson Lee 2017-09-06 17:15:41 UTC
7be6d8fe1250f3b1d5fb2347839567049526c5be is the first bad commit
commit 7be6d8fe1250f3b1d5fb2347839567049526c5be
Author: Gert Wollny <gw.fossdev@gmail.com>
Date:   Fri Jun 30 08:37:36 2017 +0200

    mesa/st: glsl_to_tgsi: add tests for the new temporary lifetime tracker
    This patch adds a set of unit tests for the new lifetime tracker.
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>

:100644 100644 fb6037eedc3e2c3919e77532b45b114c151b1cac d0d4c0dfd1dec4e2710448182c6576e16400ffe6 M	configure.ac
:040000 040000 d302f957741f1bf87f1deb49599f26c98418e17f d0219311e0b3c83109bff579fc951559d6769b97 M	src
bisect run success
Comment 2 Gert Wollny 2017-09-06 19:43:16 UTC
A workaround is to compile with --disable-libunwind, a patch to correct the problem has been submitted to mesa-dev.
Comment 3 Nicolai Hähnle 2017-09-07 12:15:33 UTC
Patch is pushed to master, commit c4741bbb6fb98f78551f9e42ae570dcc924e0031.
Comment 4 taiyang_99 2019-02-01 15:01:19 UTC
(In reply to Nicolai Hähnle from comment #3)
> Patch is pushed to master, commit c4741bbb6fb98f78551f9e42ae570dcc924e0031.

How to see the detail changes???

i come across the same problem.
Comment 5 Gert Wollny 2019-02-01 15:37:49 UTC
The change that triggered the problem was that I added a test program that linked against libgallium.a but not against libunwind.so and the fix was to add these link flags directly to the test program link flag (A better solution would have been to add the libunwind linker flags to the common libgallium depends).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.