Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28899 - ssh segmentation fault with openssh-3.7_p1 and pam errors with sshd
Summary: ssh segmentation fault with openssh-3.7_p1 and pam errors with sshd
Status: RESOLVED DUPLICATE of bug 28875
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-16 11:46 UTC by Haroon Rafique
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge_info.txt,1.60 KB, text/plain)
2003-09-16 11:47 UTC, Haroon Rafique
Details
ssh strace output (strace_output.txt,10.31 KB, text/plain)
2003-09-16 11:50 UTC, Haroon Rafique
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Haroon Rafique 2003-09-16 11:46:08 UTC
Its been a very wierd day, so far, so bear with me.

First of all, I was attempting to apply the fix for the buffer vuln in openssh
by applying 3.7p1 (bug 28873 discusses that problem). After upgrading to new
version (seems like its unrelated), ssh'ing to any host (including localhost)
results in a Segmentation fault. I will attach the strace output shortly.
Reverting back to the older net-misc/openssh-3.6.1_p2-r3 results in exactly the
same behavior. So, something else is broken and not openssh itself.

Secondly, incoming connections are totally buggered as well. Following appears
in /var/log/sshd/current (I use metalog for my logging):

Sep 16 14:43:13 [sshd] PAM unable to dlopen(/lib/security/pam_stack.so)
Sep 16 14:43:13 [sshd] PAM [dlerror: /lib/security/pam_stack.so: undefined symbo
l: _pam_make_env]
Sep 16 14:43:13 [sshd] PAM adding faulty module: /lib/security/pam_stack.so
Sep 16 14:43:13 [sshd] PAM unable to dlopen(/lib/security/pam_shells.so)
Sep 16 14:43:13 [sshd] PAM [dlerror: /lib/security/pam_shells.so: undefined symb
ol: pam_get_user]
Sep 16 14:43:13 [sshd] PAM adding faulty module: /lib/security/pam_shells.so
Sep 16 14:43:13 [sshd] PAM unable to dlopen(/lib/security/pam_nologin.so)
Sep 16 14:43:13 [sshd] PAM [dlerror: /lib/security/pam_nologin.so: undefined sym
bol: pam_get_item]
Sep 16 14:43:13 [sshd] PAM adding faulty module: /lib/security/pam_nologin.so
Sep 16 14:43:13 [sshd] error: PAM: Module is unknown

So, now we've got pam into the mix as well. I have re-emerged by tuning down my
CFLAGS optimizations to no avail. Any ideas?
Comment 1 Haroon Rafique 2003-09-16 11:47:25 UTC
Created attachment 17818 [details]
emerge --info output
Comment 2 Haroon Rafique 2003-09-16 11:50:03 UTC
Created attachment 17819 [details]
ssh strace output
Comment 3 Par Winzell 2003-09-16 13:13:49 UTC
Mine seg-faulted too. A co-worker of mine had no such trouble. Noting that he was using ICC rather than GCC, I tried re-emerging with ICC, and now 'ssh' no longer segfaults.

I can't guarantee that's the cause-and-effect, of course, and I don't have time to investigate more closely at the moment, but there you have it.

My first emerge was with gcc-3.3.1-r2.

Zell
Comment 4 Janne Johansson 2003-09-16 14:08:52 UTC
I'm seeing the same behaviour. In my desktop machine (gcc 3.3.1-r2) openssh segfaults, but in my server (gcc 3.2.3) it works fine.
Comment 5 Haroon Rafique 2003-09-16 14:13:36 UTC
My initial report was made with ACCEPT_KEYWORDS="~x86" (unstable). I am in the process of building stable versions of:

sys-devel/binutils-2.14.90.0.6-r2
sys-devel/gcc-3.2.3-r1

Will let you know how I fare with the new gcc.
Comment 6 Brian Friday 2003-09-16 14:29:17 UTC
Just a FYI, this is a GCC 3.3.1-r2 issue got the same errors and going back to gcc-3.3.1 (had to download a binary package in order to go back). Please check out bug http://bugs.gentoo.org/show_bug.cgi?id=28875

You will likely need to rebuild all packages which were built with GCC 3.3.1-r2 check the forums or -dev mailing list for more information.
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-16 14:30:37 UTC

*** This bug has been marked as a duplicate of 28875 ***