attached is gdb backtrace


On 07/05/2012 20:54, Yves-Alexis Perez wrote:
On lun., 2012-05-07 at 20:48 +0200, lauren wrote:
apologies again

i thought i had sent that already ... what it says is:

** ERROR **: g_thread_init() must be called before dbus_threads_init()
Trace/breakpoint trap

that is all it says with or without --debug added


And then it just returns? Can you get the return code? Can you take a
backtrace from gdb?

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/xfce4-power-manager...(no debugging symbols 
found)...done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop      Print   Pass to program Description
SIG33         No        No      Yes             Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/xfce4-power-manager 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

** ERROR **: g_thread_init() must be called before dbus_threads_init()

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff5e2d888 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) backtrace full
#0  0x00007ffff5e2d888 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1  0x00007ffff5e2dc02 in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007ffff69ac6a6 in dbus_g_thread_init () from 
/usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2
No symbol table info available.
#3  0x000055555555eb8e in main ()
No symbol table info available.
(gdb) info registers
rax            0x0      0
rbx            0x2      2
rcx            0x81     129
rdx            0x1      1
rsi            0x0      0
rdi            0x7ffff51e1e60   140737305779808
rbp            0x2      0x2
rsp            0x7fffffffdab0   0x7fffffffdab0
r8             0x55555577f8b0   93824994506928
r9             0x7ffff51e1eb0   140737305779888
r10            0x1      1
r11            0x246    582
r12            0x4      4
r13            0x0      0
r14            0x7fffffffdf78   140737488347000
r15            0x7ffff60d4b80   140737321454464
rip            0x7ffff5e2d888   0x7ffff5e2d888 <g_logv+536>
eflags         0x246    [ PF ZF IF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
(gdb) x/16i $pc
=> 0x7ffff5e2d888 <g_logv+536>: mov    (%r15),%eax
   0x7ffff5e2d88b <g_logv+539>: test   %eax,%eax
   0x7ffff5e2d88d <g_logv+541>: jne    0x7ffff5e2da28 <g_logv+952>
   0x7ffff5e2d893 <g_logv+547>: mov    %r13,0x2a70c6(%rip)        # 
0x7ffff60d4960
   0x7ffff5e2d89a <g_logv+554>: nopw   0x0(%rax,%rax,1)
   0x7ffff5e2d8a0 <g_logv+560>: test   %ebx,%ebx
   0x7ffff5e2d8a2 <g_logv+562>: je     0x7ffff5e2d8c0 <g_logv+592>
   0x7ffff5e2d8a4 <g_logv+564>: sub    $0x1,%ebx
   0x7ffff5e2d8a7 <g_logv+567>: bt     %rbx,%r12
   0x7ffff5e2d8ab <g_logv+571>: jae    0x7ffff5e2d8a0 <g_logv+560>
   0x7ffff5e2d8ad <g_logv+573>: cmp    $0xffffffff,%ebx
   0x7ffff5e2d8b0 <g_logv+576>: jne    0x7ffff5e2d6e8 <g_logv+120>
   0x7ffff5e2d8b6 <g_logv+582>: nopw   %cs:0x0(%rax,%rax,1)
   0x7ffff5e2d8c0 <g_logv+592>: mov    0x478(%rsp),%rax
   0x7ffff5e2d8c8 <g_logv+600>: xor    %fs:0x28,%rax
   0x7ffff5e2d8d1 <g_logv+609>: jne    0x7ffff5e2db72 <g_logv+1282>
(gdb) thread apply all backtrace

Thread 1 (Thread 0x7ffff7fc6960 (LWP 5040)):
#0  0x00007ffff5e2d888 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff5e2dc02 in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff69ac6a6 in dbus_g_thread_init () from 
/usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2
#3  0x000055555555eb8e in main ()
(gdb) quit
A debugging session is active.

        Inferior 1 [process 5040] will be killed.

Quit anyway? (y or n) 

Reply via email to