Re: [dev] slock segfault on rhel7

2014-11-14 Thread Martti Kühne
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

Re: [dev] slock segfault on rhel7

2014-11-14 Thread Martti Kühne
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

Re: [dev] slock segfault on rhel7

2014-11-13 Thread Johan Guldmyr
- 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

Re: [dev] slock segfault on rhel7

2014-11-13 Thread Johan Guldmyr
- 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

Re: [dev] slock segfault on rhel7

2014-11-13 Thread Johan Guldmyr
> 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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Dimitris Papastamos
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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Dimitris Papastamos
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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Dimitris Papastamos
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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Johan Guldmyr
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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Alexander Huemer
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)

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Johan Guldmyr
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

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Dimitris Papastamos
Please provide full steps of what you are doing, from building to running. Does it still crash?

Re: [dev] slock segfault on rhel7

2014-11-10 Thread Johan Guldmyr
- 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

Re: [dev] slock segfault on rhel7

2014-11-07 Thread Dimitris Papastamos
Can you print out `pws' in readpw() on stderr and check the logs?

Re: [dev] slock segfault on rhel7

2014-11-07 Thread Johan Guldmyr
- 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

Re: [dev] slock segfault on rhel7

2014-11-07 Thread Silvan Jegen
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

Re: [dev] slock segfault on rhel7

2014-11-07 Thread Johan Guldmyr
- 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

Re: [dev] slock segfault on rhel7

2014-11-07 Thread Dmitrij D. Czarkoff
Johan Guldmyr said: > Output: https://pastee.org/35jas You should try building it with "-g" in CFLAGS. -- Dmitrij D. Czarkoff

Re: [dev] slock segfault on rhel7

2014-11-06 Thread Johan Guldmyr
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

Re: [dev] slock segfault on rhel7

2014-11-06 Thread Anselm R Garbe
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

[dev] slock segfault on rhel7

2014-11-06 Thread Johan Guldmyr
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