Re: [dev] [slock] segfault

From: Arian Kuschki <arian.kuschki_AT_googlemail.com>
Date: Mon, 5 Dec 2011 00:01:22 +0100

On 4 December 2011 23:55, Rob <robpilling_AT_gmail.com> wrote:
> On 4 December 2011 22:19, Arian Kuschki <arian.kuschki_AT_googlemail.com> wrote:
>> I get a segfault when running slock via my acpi handler script:
>>
>> Dec  4 23:15:00 localhost kernel: [26284.789539] slock[13389]:
>> segfault at 0 ip 00007f12b8b57879 sp 00007fff74d6d810 error 4 in
>> libnss_files-2.14.1.so[7f12b8b50000+b000]
>
> Can you get a coredump and give us a stack trace?
>
> In your script:
> ulimit -c unlimited
> Then when slock segfaults, hunt around for a file named "core".
> Probably in $HOME
>
> Then:
> $ gdb path/to/slock path/to/core
> (gdb) bt
>
>
> You might want to compile slock with debug flags too (replace -s with
> -g in config.mk)
> Rob

Thanks for the timely response Rob, but I think I found the reason:
calling slock like so
export DISPLAY=:0 && sudo -u $USER slock
in my acpi handler script fixes the problem. So it seems it is not
slocks fault, but rather some X-specific knowledge I guess I should
have had.

Cheers,
Arian
Received on Mon Dec 05 2011 - 00:01:22 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 05 2011 - 00:12:09 CET