On a later note, I'm pretty sure I haven't read the preprocessing
#ifdef/#ifndef stuff correctly. But I'm pretty positive that there's
no LDAP password checking implemented (or a getenv("USER") that
wouldn't work on these functions). So, the question is, are we certain
over what Johan is expecting
http://git.suckless.org/slock/tree/slock.c#n84
from manpage about line 69: getspnam,: "Routines return NULL if no
more entries are available or if an error occurs during processing."
cheers!
mar77i
- Original Message -
> From: "Dimitris Papastamos"
> To: "dev mail list"
> Sent: Monday, November 10, 2014 7:23:07 PM
> Subject: Re: [dev] slock segfault on rhel7
> On Mon, Nov 10, 2014 at 04:49:44PM +0200, Johan Guldmyr wrote:
>> Ah, removing
- Original Message -
> From: "Dimitris Papastamos"
> To: "dev mail list"
> Sent: Monday, November 10, 2014 6:22:43 PM
> Subject: Re: [dev] slock segfault on rhel7
> On Mon, Nov 10, 2014 at 04:49:44PM +0200, Johan Guldmyr wrote:
>> Ah, removing
> Can you try the following too:
>
> chown root:root /usr/local/bin/slock
> chmod 4755 /usr/local/bin/slock
>
> then start slock?
>
> This might work but it really should not segfault
> without these steps.
The make install takes care of that part.
$ stat /usr/local/bin/slock
File: ‘/usr/l
On Mon, Nov 10, 2014 at 04:49:44PM +0200, Johan Guldmyr wrote:
> Ah, removing -s from LDFLAGS helped. Now the "bt full" has more output.
> So to recap I have to run the slock as user root for it to not crash on enter.
> And I don't have root user password but here's the stack:
I just tested this o
On Mon, Nov 10, 2014 at 04:49:44PM +0200, Johan Guldmyr wrote:
> Ah, removing -s from LDFLAGS helped. Now the "bt full" has more output.
> So to recap I have to run the slock as user root for it to not crash on enter.
> And I don't have root user password but here's the stack:
>
> https://pastee.o
On Mon, Nov 10, 2014 at 04:49:44PM +0200, Johan Guldmyr wrote:
> Ah, removing -s from LDFLAGS helped. Now the "bt full" has more output.
> So to recap I have to run the slock as user root for it to not crash on enter.
> And I don't have root user password but here's the stack:
>
> https://pastee.o
Ah, removing -s from LDFLAGS helped. Now the "bt full" has more output.
So to recap I have to run the slock as user root for it to not crash on enter.
And I don't have root user password but here's the stack:
https://pastee.org/dj4hs
// Johan
Hi.
On Mon, Nov 10, 2014 at 03:31:26PM +0200, Johan Guldmyr wrote:
> $ gdb -q slock
> Reading symbols from /usr/local/bin/slock...(no debugging symbols
> found)...done.
There are no symbols in your binary.
Adding '-g' to CFLAGS isn't sufficient.
You have to remove '-s' from LDFLAGS.
>From LD(1)
Steps:
git clone http://git.suckless.org/slock
edit config.mk:
change X11INC and X11LIB to /usr/include/X11
change CFLAGS to include -g
make
sudo make install
/usr/local/bin/slock
Press ENTER
Segmentation fault
End of steps.
-
Running it as sudo it doesn't segfault on enter, but doesn't accep
Please provide full steps of what you are doing, from building
to running.
Does it still crash?
- Original Message -
> From: "Dimitris Papastamos"
> To: "dev mail list"
> Sent: Friday, November 7, 2014 2:56:55 PM
> Subject: Re: [dev] slock segfault on rhel7
> Can you print out `pws' in readpw() on stderr and check the logs?
Couldn't
Can you print out `pws' in readpw() on stderr and check the logs?
- Original Message -
> From: "Silvan Jegen"
> To: "dev mail list"
> Sent: Friday, November 7, 2014 11:34:50 AM
> Subject: Re: [dev] slock segfault on rhel7
> On Fri, Nov 7, 2014 at 9:27 AM, Johan Guldmyr wrote:
>>
>> - Origin
On Fri, Nov 7, 2014 at 9:27 AM, Johan Guldmyr wrote:
>
> - Original Message -
>> From: "Dmitrij D. Czarkoff"
>> To: "dev mail list"
>> Sent: Friday, November 7, 2014 10:13:04 AM
>> Subject: Re: [dev] slock segfault on rhel7
>
>&g
- Original Message -
> From: "Dmitrij D. Czarkoff"
> To: "dev mail list"
> Sent: Friday, November 7, 2014 10:13:04 AM
> Subject: Re: [dev] slock segfault on rhel7
> Johan Guldmyr said:
>> Output: https://pastee.org/35jas
>
> You shou
Johan Guldmyr said:
> Output: https://pastee.org/35jas
You should try building it with "-g" in CFLAGS.
--
Dmitrij D. Czarkoff
Johan
- Original Message -
> From: "Anselm R Garbe"
> To: "dev mail list"
> Sent: Friday, November 7, 2014 8:52:45 AM
> Subject: Re: [dev] slock segfault on rhel7
> Hi,
>
> On 7 November 2014 07:41, Johan Guldmyr wrote:
>> I'm t
Hi,
On 7 November 2014 07:41, Johan Guldmyr wrote:
> I'm trying to use dwm on rhel7+gnome but I need a screenlocker.
>
> Does slock require the password to be in /etc/passwd? I get mine from some
> ldap.
> Anybody got some suggestions?
Please provide a stacktrace following the instructions give
Hi,
I'm trying to use dwm on rhel7+gnome but I need a screenlocker.
Does slock require the password to be in /etc/passwd? I get mine from some ldap.
Anybody got some suggestions?
// Johan
21 matches
Mail list logo