trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: January 2015

Re: [trinity-users] desktop crashing

From: Michele Calgaro <michele.calgaro@...>
Date: Tue, 13 Jan 2015 11:13:48 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

<snip>
> 
> (gdb) info thread
>   Id   Target Id         Frame
>   2    Thread 0x7f5c62de7700 (LWP 30339) "kdesktop" 0x00007f5c6801689c in 
> __lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
> * 1    Thread 0x7f5c6d413780 (LWP 30334) "kdesktop" 0x00007f5c6cca1feb 
> in ?? ()
>    from /lib/x86_64-linux-gnu/libc.so.6
> 
> | 2) thread 2
> | Expect something like "switching to thread 2 blah blah blah"
> 
> (gdb) thread 2
> [Switching to thread 2 (Thread 0x7f5c62de7700 (LWP 30339))]
> #0  0x00007f5c6801689c in __lll_lock_wait ()
>    from /lib/x86_64-linux-gnu/libpthread.so.0
> 
> |    frame 2
> | Expect something like "#2  hex-adress in pthread_mutex_lock()"
> 
> (gdb) frame 2
> #2  0x00007f5c68011eba in pthread_mutex_lock ()
>    from /lib/x86_64-linux-gnu/libpthread.so.0
> 
> |    info reg
> | This will print the registers' contents.
> 
> (gdb) info reg
<snip>
> rsp            0x7f5c62de6c40   0x7f5c62de6c40
> r8             0xda51f8 14307832
> r9             0x7683   30339
<snip>

> many thanks. i should note that the above began from gdb --pid=30334 
> without the additional command(s) done yesterday. should i go back and 
> redo it? forgive me, but this is several levels beyond my understanding!

Thanks for the info, no need to rerun the previous commands since the
thread IDs are the same. Register r8 should contain the address of the
locked mutex. Please try this in the open gdb console.

(gdb) p *(pthread_mutex_t*)0xda51f8
Expect something like:

  __data = {
    __lock = xxx,
    __count = yyy,
    __owner = thread_ID,
  ....

This should give the id of the thread which has locked the mutex. Please
report back, then we take the next step.
If gdb complains about pthread_mutex_t, please try this:
print *((int*)(0xda51f8)+2)


Cheers
  Michele
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJUtH9cAAoJECp1t8qK3tXP9LEP/27rN+l1haNqsfimC8PiAHOs
+EuVpCaGFnm8wjJnObuTer/X3W74YHmuMd8z/UfXXLb80tyEYLAxIerq0APck+U2
DAMrPI0b9bh+tW9DGTQ6fm23f6IXoH4/BGn7hgLpyossJInD6OOo3bOkOJsDMkVE
sklsxQzBU+D0NkGfp0M8o6PaoIAF1lej9ckXvY+A9C5rup0KliSrGUdvcyQLlwyj
/u2AHSVhXxmNR8UGaP9KzCsSwnlYY8qhkFEhFRQKeNh1Sas2MOI41r1ciMW1jD4H
x9//UEJfi38g6+dQq5VVdLfwqIpcERQTO7sITt43BMRJqLbnHKMijZmAv6uRCDIa
I4ea4b/o3lqcfPq8GTwO6i0WKpUqq5TIOyDfKE7mmnRHrvzwqpv4fXuWTwy1HNem
pJJZicGQOY/AF7EjK/RLbZm7/oC97CxpJA/6ppQeJV2wyZGAVzBKcw1Pugj84xuJ
cuz5elT0mrnGCJGa4DtjeZ9h0kLyiUcrttMa7CyFstZIjdYP3cKu3vww4laEojsD
0zvDXa7VsrNHmK7/P8G1wRRf8vkEju7NhNLmeJIQcnGC1gbr1AHT0LUbFPfoDJtt
svPWPn7OZCPWBwxuqE4D3wQjsFXk7yRIao94f0jW8hnt1oXWr6YCAC0hb+Ns0s6Y
BScAdpSPfdeVTngVi5aG
=5+8w
-----END PGP SIGNATURE-----