Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62008 - OpenSSH 3.9_p1 segfaults
Summary: OpenSSH 3.9_p1 segfaults
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-28 00:18 UTC by Sandino Araico Sanchez
Modified: 2004-09-29 02:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sanchez 2004-08-28 00:18:01 UTC
OpenSSH can not start and the system log shows grsec sending signal 11 to the sshd process

Aug 28 03:09:07 charanda kernel: grsec: From 148.246.115.48: signal 11 sent to /vservers/hijo/usr/sbin/sshd[sshd:5111] uid/euid:0/0 gid/egid:0/0, parent /vservers/hijo/bin/bash[bash:14469] uid/euid:0/0 gid/egid:0/0


Reproducible: Always
Steps to Reproduce:
1. emerge -u sshd
2. /usr/sbin/sshd
3.

Actual Results:  
/usr/sbin/sshd
Segmentation fault


Expected Results:  
no segmentation fault

Portage 2.0.50-r10 (hardened-x86-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.4.27-grsec2.0.1-vs1.28)
=================================================================
System uname: 2.4.27-grsec2.0.1-vs1.28 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.5.3
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages nostrip sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/src"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="apache2 berkdb chroot crypt curl debug erandom gd gif gmp hardened imap
innodb jpeg libwww mbox mcal md5sum memlimit mmx mpeg mysql ncurses neural nls
nptl pam pdflib perl pg-intdatetime pg-vacuumdelay pic pie png postgres python
readline ruby sftplogging shaper slang softquota spell ssl tcpd threads tiff
truetype unicode vhosts x86 xml xml2 zlib"
Comment 1 solar (RETIRED) gentoo-dev 2004-09-05 00:05:10 UTC
Something is wrong your ssh then. It's not a bug with hardened
Comment 2 Sandino Araico Sanchez 2004-09-06 12:00:55 UTC
Since this bug was rejected by hardened then this bug should belong to either Core system or Base layout.

I am reopening the bug because it has got no solution...

OpenSSH 3.8.1_p1-r2 and before run with no problems. The one that gets killed is 3.9_p1.
Comment 3 Sandino Araico Sanchez 2004-09-22 23:50:52 UTC
Can somebody please reassign this bug to the correct OpenSSH mainteiners?

Sorry for reopening the bug, but it doesn't seem to be resolved.
Comment 4 solar (RETIRED) gentoo-dev 2004-09-23 06:16:51 UTC
Sandino

Simply because you see grsec "logging" that your sshd is segfaulting does not mean that grsec is killing your sshd. In fact grsec does not really kill processes.
Please read the read the grsec docs for more info.

I know of one other person that something like this happened to but it was his fault as he failed to run etc-update after upgrading.
Comment 5 Sandino Araico Sanchez 2004-09-23 13:46:15 UTC
I have changed the summary to indicate that sshd segfaults for some reason.

Now I dont't see the reason why not reassigning the bug to the OpenSSH mainteiners.

The sshd just dies and I don't know how to fix it.
Comment 6 Guillaume Destuynder (RETIRED) gentoo-dev 2004-09-23 13:52:13 UTC
As solar pointed out:
try updating your config files in /etc  (with etc-update or dispatch-conf)
if you have done so already and still using and old cfg, ry re-emerging openssh and do use the stock openssh config file.

then check your cflags
finally you can run (emerge strace first) strace sshd to get an idea
or compile ssh without stripping the binary and (emerge gdb first) gdb /usr/sbin/sshd
r (<= in gdb)

after segfault type "bt" (<= means backtrace)
see man gdb for more info

hope this helps
Comment 7 Sandino Araico Sanchez 2004-09-23 21:16:42 UTC
Using the stock openssh config file fixed the problem....
Comment 8 solar (RETIRED) gentoo-dev 2004-09-24 00:23:55 UTC
changing resolution to INVALID
Comment 9 Mihai Limbasan 2004-09-29 01:21:51 UTC
See this bug: http://bugs.gentoo.org/show_bug.cgi?id=65776
Comment 10 Sandino Araico Sanchez 2004-09-29 02:26:38 UTC
I looked at bug 65776 but I can't reproduce the segfault anymore.