https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295788
--- Comment #6 from Roger Olofsson <[email protected]> ---
I am trying to remotely debug the old asus laptop to see more in detail what is
happening when xorg server logs the SIGABRT error. The old asus laptop is
running FreeBSD 14.4-RELEASE with drm-515-kmod.
cd /usr/ports/x11-servers/xorg-server && make -DWITH_DEBUG=yes && make
reinstall
cd /usr/ports/graphics/mesa-dri && make -DWITH_DEBUG=yes && make reinstall
On the asus laptop I comment out sddm so it won't autostart
#sddm_enable="YES"
On the other laptop I connect to the asus via ssh and su to root.
Then I start remotely on the asus lldb like so:
# lldb -- /usr/local/libexec/Xorg :1 -keeptty
(lldb) target create "/usr/local/libexec/Xorg"
Current executable set to '/usr/local/libexec/Xorg' (x86_64).
(lldb) settings set -- target.run-args ":1" "-keeptty"
(lldb) target modules search-paths add / /
(lldb) process launch
Xorg starts on the asus and then SIGABRTS with the following:
LoaderOpen(/usr/local/lib/xorg/modules/drivers/vesa_drv.so)
scfb trace: probe start
scfb trace: probe done
LoaderOpen(/usr/local/lib/xorg/modules/libglamoregl.so)
Process 1723 stopped
* thread #1, name = 'Xorg', stop reason = signal SIGABRT
frame #0: 0x0000000826da14ca libc.so.7`__sys_thr_kill at thr_kill.S:4
At this point I can do
(lldb) thread backtrace all
* thread #1, name = 'Xorg', stop reason = signal SIGABRT
* frame #0: 0x0000000826da14ca libc.so.7`__sys_thr_kill at thr_kill.S:4
frame #1: 0x0000000826d19f84 libc.so.7`__raise(s=6) at raise.c:50:10
frame #2: 0x0000000826dcdea9 libc.so.7`abort at abort.c:64:8
frame #3: 0x000000083cec5099 crocus_dri.so`___lldb_unnamed_symbol22123 + 1705
frame #4: 0x000000083cec2e90 crocus_dri.so`___lldb_unnamed_symbol22097 + 96
frame #5: 0x000000083cb98a7f crocus_dri.so`___lldb_unnamed_symbol17364 + 431
frame #6: 0x000000083c82334e crocus_dri.so`___lldb_unnamed_symbol10009 + 46
frame #7: 0x000000083c5c58de crocus_dri.so`___lldb_unnamed_symbol3461 + 222
frame #8: 0x000000083c84d641 crocus_dri.so`___lldb_unnamed_symbol10255 + 161
frame #9: 0x000000083c50bcfd crocus_dri.so`___lldb_unnamed_symbol1071 + 61
frame #10: 0x000000083c50e0fe crocus_dri.so`___lldb_unnamed_symbol1118 + 14
frame #11: 0x000000084aff84e8 libEGL_mesa.so.0`___lldb_unnamed_symbol789 + 312
frame #12: 0x000000084afea000 libEGL_mesa.so.0`___lldb_unnamed_symbol591 + 688
frame #13: 0x000000084ac533f1 libEGL.so.1`eglMakeCurrent + 785
frame #14: 0x0000000839c23c47
libglamoregl.so`glamor_egl_make_current(glamor_ctx=0x000030d7f1f302e8) at
glamor_egl.c:86:5
frame #15: 0x0000000839c25590
libglamoregl.so`glamor_make_current(glamor_priv=0x000030d7f1f2c780) at
glamor_utils.h:673:9
frame #16: 0x0000000839c259e4
libglamoregl.so`glamor_init(screen=0x000030d7f17f4400, flags=1) at
glamor.c:676:5
frame #17: 0x00000008338de73f
modesetting_drv.so`drmmode_init(pScrn=0x000030d7f16e5a00,
drmmode=0x000030d7f16f8558) at drmmode_display.c:3726:14
frame #18: 0x00000008338d8716
modesetting_drv.so`ScreenInit(pScreen=0x000030d7f17f4400, argc=3,
argv=0x0000000820a783f0) at driver.c:1881:9
frame #19: 0x000000000045ec94 Xorg`xf86ScreenInit(pScreen=0x000030d7f17f4400,
argc=3, argv=0x0000000820a783f0) at xf86Init.c:267:12
frame #20: 0x00000000002ec2cf Xorg`AddScreen(pfnInit=(Xorg`xf86ScreenInit at
xf86Init.c:263), argc=3, argv=0x0000000820a783f0) at dispatch.c:3999:10
frame #21: 0x000000000045e3d6 Xorg`InitOutput(pScreenInfo=0x000000000051a6e8,
argc=3, argv=0x0000000820a783f0) at xf86Init.c:637:21
frame #22: 0x00000000002f1c99 Xorg`dix_main(argc=3, argv=0x0000000820a783f0,
envp=0x0000000820a78410) at main.c:190:9
frame #23: 0x00000000004ddd0a Xorg`main(argc=3, argv=0x0000000820a783f0,
envp=0x0000000820a78410) at stubmain.c:34:12
frame #24: 0x0000000826cee2f0 libc.so.7`__libc_start1(argc=3,
argv=0x0000000820a783f0, env=0x0000000820a78410, cleanup=<unavailable>,
mainX=(Xorg`main at stubmain.
c:33)) at libc_start1.c:180:7
frame #25: 0x000000000029d384 Xorg`_start at crt1_s.S:80
thread #2, name = 'Xorg'
frame #0: 0x0000000826da28ea libc.so.7`__sys_poll at _poll.S:4
frame #1: 0x00000008255069a1 libthr.so.3`__thr_poll(fds=0x0000000830863b30,
nfds=2, timeout=-1) at thr_syscalls.c:335:8
frame #2: 0x0000000825f38110 libudev.so.0`___lldb_unnamed_symbol284 + 208
frame #3: 0x00000008254fae22
libthr.so.3`thread_start(curthread=0x000030d7f1242810) at thr_create.c:291:16
thread #3, name = 'Xorg:disk$0'
frame #0: 0x00000008254f80ac libthr.so.3`_umtx_op_err at _umtx_op_err.S:38
frame #1: 0x0000000825508092
libthr.so.3`_thr_umtx_timedwait_uint(mtx=<unavailable>, id=<unavailable>,
clockid=<unavailable>, abstime=<unavailable>, shared=<unavai
lable>) at thr_umtx.c:233:10
frame #2: 0x00000008254fe739 libthr.so.3`_thr_sleep(curthread=<unavailable>,
clockid=<unavailable>, abstime=<unavailable>) at thr_kern.c:197:9 [artificial]
frame #3: 0x00000008254f9cb1 libthr.so.3`cond_wait_common [inlined]
cond_wait_user(cvp=0x000030d7f17cf480, mp=0x000030d7f1243d88,
abstime=0x0000000000000000, cance
l=1) at thr_cond.c:317:11
frame #4: 0x00000008254f9bff libthr.so.3`cond_wait_common(cond=<unavailable>,
mutex=<unavailable>, abstime=0x0000000000000000, cancel=1) at thr_cond.c:377:11
frame #5: 0x000000083c5ac289 crocus_dri.so`___lldb_unnamed_symbol3096 + 9
frame #6: 0x000000083c5833bf crocus_dri.so`___lldb_unnamed_symbol2749 + 559
frame #7: 0x000000083c5ac409 crocus_dri.so`___lldb_unnamed_symbol3102 + 25
frame #8: 0x00000008254fae22
libthr.so.3`thread_start(curthread=0x000030d7f1244010) at thr_create.c:291:16
thread #4, name = 'Xorg:gdrv0'
frame #0: 0x00000008254f80ac libthr.so.3`_umtx_op_err at _umtx_op_err.S:38
frame #1: 0x0000000825508092
libthr.so.3`_thr_umtx_timedwait_uint(mtx=<unavailable>, id=<unavailable>,
clockid=<unavailable>, abstime=<unavailable>, shared=<unavai
lable>) at thr_umtx.c:233:10
frame #2: 0x00000008254fe739 libthr.so.3`_thr_sleep(curthread=<unavailable>,
clockid=<unavailable>, abstime=<unavailable>) at thr_kern.c:197:9 [artificial]
frame #3: 0x00000008254f9cb1 libthr.so.3`cond_wait_common [inlined]
cond_wait_user(cvp=0x000030d7f17cf820, mp=0x000030d7f1245308,
abstime=0x0000000000000000, cance
l=1) at thr_cond.c:317:11
frame #4: 0x00000008254f9bff libthr.so.3`cond_wait_common(cond=<unavailable>,
mutex=<unavailable>, abstime=0x0000000000000000, cancel=1) at thr_cond.c:377:11
frame #5: 0x000000083c5ac289 crocus_dri.so`___lldb_unnamed_symbol3096 + 9
frame #6: 0x000000083c5833bf crocus_dri.so`___lldb_unnamed_symbol2749 + 559
frame #7: 0x000000083c5ac409 crocus_dri.so`___lldb_unnamed_symbol3102 + 25
frame #8: 0x00000008254fae22
libthr.so.3`thread_start(curthread=0x000030d7f1244810) at thr_create.c:291:16
(lldb)
From what I can understand or guess the SIGABRT is caused by something in the
crocus driver and for some reason I am not getting debug symbols to show in the
backtrace.
frame #3: 0x000000083cec5099 crocus_dri.so`___lldb_unnamed_symbol22123 + 1705
The above probably means that somewhere 1705 bytes into a function in
crocus_dri.so the SIGABRT is triggered.
I wonder what I need to do to turn those unnamed symbols into debug symbols?
Roger
--
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.