Bug 114694 - /bin/login segfaults when run from in.telnetd
Summary: /bin/login segfaults when run from in.telnetd
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 2
Hardware: Other Linux
: P5 - None : Normal
Target Milestone: ---
Assignee: Thorsten Kukuk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 13:10 UTC by Michal Marek
Modified: 2005-09-02 14:25 UTC (History)
1 user (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Marek 2005-09-01 13:10:56 UTC
When I install telnet-server on SL10.0 Beta2 and enable the telnet
service in /etc/xinetd.d/telnet, I'm unable to login to the machine via
telnet, because the /bin/login process segfaults after entering name and
password. I did not have much time to debug this, I only know:

- The  pwdutils-2.6.96-4 package from SL9.3 works if installed on SL10.0B2,
  pwdutils-3.0.1-2 is broken.
- The segfault seems to occur after at least some pam modules are
  executed, eg. I can read the "You have new mail" message.
- The last file opened is /var/run/utmp, the last lines from strace look
  like this (fd 4 is /var/run/utmp):

20911 execve("/bin/login", ["/bin/login", "-h", "golem.suse.cz", "-p"], ...
...
20911 read(4, "\10\0\0\0002Q\0\0pts/9\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384)
= 384
20911 fcntl(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0
20911 alarm(0)                          = 1
20911 rt_sigaction(SIGALRM, {0x403420, [ALRM], SA_RESTORER|SA_RESTART,
0x2aaaaadfc450}, NULL, 8) = 0
20911 --- SIGSEGV (Segmentation fault) @ 0 (0) ---

- The bug _might_ be in the file pam_login-3.24/src/login.c, because this
  one uses some <utmp.h> functions and was changed quite a bit between
  the versions, but as I said I didn't debug it too much.

BTW we use LDAP here if that matters.
Comment 1 Thorsten Kukuk 2005-09-01 15:59:47 UTC
Thie code which seg.faults wasn't touched since years.
Comment 2 Thorsten Kukuk 2005-09-01 16:54:36 UTC
Works fine if compiled with gcc 3.3, looks like yet another problem with gcc4.
Comment 3 Thorsten Kukuk 2005-09-02 14:25:50 UTC
Fixed old bug from day one.