Hi Rodolfo,
* Rodolfo García Peñas (kix) <[email protected]> [19. Jun. 2013]:
> I cannot reproduce the problem :-(
>
> But, I cannot understand the behaviour.
>
> 1. xautolock calls vlock. xautolock waits vlock to unlock the screen.
> 2. vlock (shell script) calls vlock-main
>
> When vlock-main finish (the user enter the right passwd), then, and
> only then, xautolock should unlock the screen.
As far as I understand this it's vlock-main which locks (and
unlocks) the screen, not xautolock, which only calls a locker
programm.
> How can xautolock continue (unlock) if vlock-main is still running?
My understanding is that it's vlock-main which unlocks the screen
but does not exit for some reason.
> This bug should need "+moreinfo". IMO we cannot solve the problem if
> we cannot reproduce it. Could you try to run xautolock in other files?
> (.xinitrc and launch startx,
> run from console,...
I did this 14 times in a row now and the issue did not occour.
> ), download the
> source and add some "printf"?, ...
>
> Probably you can run "gdb" with the "-p" option, to check what code is
> running.
Actually I have almost no clue about programming/debugging C.
Now vlock-main does not exit again:
6014 tty1 S grfz 21:38:25 00:00:15 \_ awesome
6052 tty1 S grfz 21:38:24 00:00:11 \_ xautolock
-secure -detectsleep -time 5 -locker vlock -san -corners -0+0
20027 tty1 S grfz 15:29 00:00:00 \_ /bin/sh
-c vlock -san
20028 tty1 t root 15:29 00:00:00 \_
/usr/sbin/vlock-main nosysrq all new
I did sudo gdb -p 20028:
Attaching to process 20028
Reading symbols from /usr/sbin/vlock-main...(no debugging symbols found)...done.
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libdl.so.2...Reading symbols
from /usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libdl-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libdl.so.2
Reading symbols from /lib/i386-linux-gnu/libpam.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib/i386-linux-gnu/libpam.so.0
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libc.so.6...Reading symbols
from /usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libc-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...Reading symbols from
/usr/lib/debug/lib/i386-linux-gnu/ld-2.17.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libnss_compat.so.2...Reading
symbols from
/usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libnss_compat-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libnsl.so.1...Reading
symbols from /usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libnsl-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libnsl.so.1
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libnss_nis.so.2...Reading
symbols from
/usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libnss_nis-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2...Reading
symbols from
/usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libnss_files-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
Reading symbols from /usr/lib/vlock/modules/nosysrq.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/vlock/modules/nosysrq.so
Reading symbols from /usr/lib/vlock/modules/all.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/vlock/modules/all.so
Reading symbols from /usr/lib/vlock/modules/new.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/vlock/modules/new.so
0xb7784424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7784424 in __kernel_vsyscall ()
#1 0xb768e6f9 in ioctl () at ../sysdeps/unix/syscall-template.S:81
#2 0xb777ca15 in vlock_start () from /usr/lib/vlock/modules/new.so
#3 0x0804ad56 in ?? ()
#4 0x08049d94 in main ()
At the same time sudo gdb -p 6052 (the PID of xautolock) gives:
Attaching to process 6052
Reading symbols from /usr/bin/xautolock...(no debugging symbols found)...done.
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
Reading symbols from /usr/lib/i386-linux-gnu/libXss.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXss.so.1
Reading symbols from /usr/lib/i386-linux-gnu/libXext.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXext.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libX11.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libX11.so.6
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libc.so.6...Reading symbols
from /usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libc-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libc.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libxcb.so.1...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libxcb.so.1
Reading symbols from /lib/i386-linux-gnu/i686/cmov/libdl.so.2...Reading symbols
from /usr/lib/debug/lib/i386-linux-gnu/i686/cmov/libdl-2.17.so...done.
done.
Loaded symbols for /lib/i386-linux-gnu/i686/cmov/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...Reading symbols from
/usr/lib/debug/lib/i386-linux-gnu/ld-2.17.so...done.
done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/i386-linux-gnu/libXau.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXau.so.6
Reading symbols from /usr/lib/i386-linux-gnu/libXdmcp.so.6...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/i386-linux-gnu/libXdmcp.so.6
0xb773f424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb773f424 in __kernel_vsyscall ()
#1 0xb74e2c20 in __nanosleep_nocancel () at
../sysdeps/unix/syscall-template.S:81
#2 0xb74e2a73 in __sleep (seconds=0) at ../sysdeps/unix/sysv/linux/sleep.c:137
#3 0x08049544 in ?? ()
#4 0xb74438f5 in __libc_start_main (main=0x8049300, argc=9, ubp_av=0xbff645e4,
init=0x804c090, fini=0x804c100, rtld_fini=0xb774f0d0 <_Dienstleistung_fini>,
stack_end=0xbff645dc) at libc-start.c:260
#5 0x080495fd in ?? ()
I have no idea what to do now. Is this data helpful?
Ciao, Gregor
P.S.: I did not get the other messages related to this bug report
shouldn't I get all the messages?
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]