Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279691 - pam_ssh: can't su - postgres.
Summary: pam_ssh: can't su - postgres.
Status: RESOLVED DUPLICATE of bug 279538
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-30 14:35 UTC by hubertstar
Modified: 2009-07-31 13:27 UTC (History)
0 users

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 hubertstar 2009-07-30 14:35:09 UTC
i have installed pam_ssh. it's as a dep installed by pambase. i enabled ssh in make.conf USE var.

today, i notice postgresql-8.3 init script report a lot of "su" error infomation.

then, i try login into postgres user env. login is ok. but logout give me same error infomation.

so i find in my /etc/pam.d/system-auth has this line:

session		optional	pam_ssh.so

after comment out this line, this error disappeared.



Reproducible: Always

Steps to Reproduce:
1.install pam_ssh and reinstall pambase with "ssh" USE.
2.login into postgres
3.logout, will report error infomation:


Actual Results:  

logout
*** glibc detected *** su: double free or corruption (fasttop): 0x000000000061a1c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f29c3c916c5]
/lib/libc.so.6(cfree+0x6c)[0x7f29c3c9600c]
/lib/libpam.so.0[0x7f29c417a76c]
/lib/libpam.so.0(pam_end+0x22)[0x7f29c417b262]
su[0x402c7e]
su[0x403b27]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f29c3c3ea3d]
su[0x4025e9]
======= Memory map: ========
00400000-00408000 r-xp 00000000 08:05 1328886                            /bin/su
00607000-00608000 r--p 00007000 08:05 1328886                            /bin/su
00608000-00609000 rw-p 00008000 08:05 1328886                            /bin/su
00609000-0062e000 rw-p 00000000 00:00 0                                  [heap]
7f29bc000000-7f29bc021000 rw-p 00000000 00:00 0 
7f29bc021000-7f29c0000000 ---p 00000000 00:00 0 
7f29c119f000-7f29c11b5000 r-xp 00000000 08:05 1312659                    /lib64/libgcc_s.so.1
7f29c11b5000-7f29c13b4000 ---p 00016000 08:05 1312659                    /lib64/libgcc_s.so.1
7f29c13b4000-7f29c13b5000 r--p 00015000 08:05 1312659                    /lib64/libgcc_s.so.1
7f29c13b5000-7f29c13b6000 rw-p 00016000 08:05 1312659                    /lib64/libgcc_s.so.1
7f29c13b6000-7f29c13b7000 r-xp 00000000 08:05 1330404                    /lib64/security/pam_deny.so
7f29c13b7000-7f29c15b6000 ---p 00001000 08:05 1330404                    /lib64/security/pam_deny.so
7f29c15b6000-7f29c15b7000 r--p 00000000 08:05 1330404                    /lib64/security/pam_deny.so
7f29c15b7000-7f29c15b8000 rw-p 00001000 08:05 1330404                    /lib64/security/pam_deny.so
7f29c15b8000-7f29c15bc000 r-xp 00000000 08:05 1330407                    /lib64/security/pam_xauth.so
7f29c15bc000-7f29c17bb000 ---p 00004000 08:05 1330407                    /lib64/security/pam_xauth.so
7f29c17bb000-7f29c17bc000 r--p 00003000 08:05 1330407                    /lib64/security/pam_xauth.so
7f29c17bc000-7f29c17bd000 rw-p 00004000 08:05 1330407                    /lib64/security/pam_xauth.so
7f29c17bd000-7f29c17be000 r-xp 00000000 08:05 1330423                    /lib64/security/pam_permit.so
7f29c17be000-7f29c19bd000 ---p 00001000 08:05 1330423                    /lib64/security/pam_permit.so
7f29c19bd000-7f29c19be000 r--p 00000000 08:05 1330423                    /lib64/security/pam_permit.so
7f29c19be000-7f29c19bf000 rw-p 00001000 08:05 1330423                    /lib64/security/pam_permit.so
7f29c19bf000-7f29c19c2000 r-xp 00000000 08:05 1330410                    /lib64/security/pam_limits.so
7f29c19c2000-7f29c1bc1000 ---p 00003000 08:05 1330410                    /lib64/security/pam_limits.so
7f29c1bc1000-7f29c1bc2000 r--p 00002000 08:05 1330410                    /lib64/security/pam_limits.so
7f29c1bc2000-7f29c1bc3000 rw-p 00003000 08:05 1330410                    /lib64/security/pam_limits.so
7f29c1bc3000-7f29c1bcc000 r-xp 00000000 08:05 1313647                    /lib64/libcrack.so.2.8.0
7f29c1bcc000-7f29c1dcb000 ---p 00009000 08:05 1313647                    /lib64/libcrack.so.2.8.0
7f29c1dcb000-7f29c1dcc000 r--p 00008000 08:05 1313647                    /lib64/libcrack.so.2.8.0
7f29c1dcc000-7f29c1dcd000 rw-p 00009000 08:05 1313647                    /lib64/libcrack.so.2.8.0
7f29c1dcd000-7f29c1dd0000 rw-p 00000000 00:00 0 
7f29c1dd0000-7f29c1dd3000 r-xp 00000000 08:05 1330397                    /lib64/security/pam_cracklib.so
7f29c1dd3000-7f29c1fd2000 ---p 00003000 08:05 1330397                    /lib64/security/pam_cracklib.so
7f29c1fd2000-7f29c1fd3000 r--p 00002000 08:05 1330397                    /lib64/security/pam_cracklib.so
7f29c1fd3000-7f29c1fd4000 rw-p 00003000 08:05 1330397                    /lib64/security/pam_cracklib.so
7f29c1fd4000-7f29c1fdc000 r-xp 00000000 08:05 1754250                    /lib64/libcrypt-2.10.1.so
7f29c1fdc000-7f29c21db000 ---p 00008000 08:05 1754250                    /lib64/libcrypt-2.10.1.so
7f29c21db000-7f29c21dc000 r--p 00007000 08:05 1754250                    /lib64/libcrypt-2.10.1.so
7f29c21dc000-7f29c21dd000 rw-p 00008000 08:05 1754250 Aborted



Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9500_@_2.60GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 30 Jul 2009 11:30:19 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=core2 -O2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mtune=core2 -O2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.kernel.org/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh en zh_TW af ar be bg bn bn_IN ca cs da de el en_GB en_US eo es  es_AR  es_ES et eu fa fi fr fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hu it ja kn ko ku lt lv mk mn mr nb nb_NO nl oc pa pa_IN pl pt pt_BR pt_PT ro ru sl sq sr sv_SE te tr vi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/devnull /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/gnome /usr/local/portage/layman/java-overlay /usr/local/portage/layman/games /usr/local/portage/layman/sunrise /usr/local/portage/layman/rion /usr/local/portage/layman/THE /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/enlightenment /usr/local/portage/hubert"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aalib accessibility acl acpi afs alsa amd64 amr apache2 applet archive artworkextra aspell asyncns autoipd automount avahi bash-completion beagle berkdb bluetooth branding bzip2 cairo caps cdda cdr cdrkit cjk cli consolekit cracklib crypt cups custom-optimization dbus deskbar device-mapper dga dirac djvu doc dri dvb dvd dvdr dvdread elisp esd evo examples exif extras faac faad fbcondecor festival ffmpeg firefox flac fontconfig foomaticdb fortran fpx freetts fuse gd gdbm gif glade gnome gnome-keyring gnomecd gnutls gpg gphoto2 gpm graphviz gs gsf gsm gstreamer gtk guile hal hdri iconv ieee1394 ipv6 isdnlog jack java java6 jbig jpeg jpeg2k kde kerberos lame lasi latex lcms ldap libnotify libsamplerate lua lzo mad mailwrapper midi mikmod mmx mono mp3 mp3rtp mpeg mudflap multilib mysql mysqli nautilus ncurses network networking networkmanager nls nptl nptlonly nsplugin ogg openexr opengl openmp oracle oss pam pango pch pcre pdf perl pg-intdatetime plugins png policykit postgres ppds pppd pulseaudio python q32 q8 qt qt3 qt3support qt4 quicktime raw readline reflection ruby samba sasl schroedinger sdl session sndfile snmp sound source speex spell spl sqlite sse sse2 sse3 ssh ssl startup-notification suexec svg sysfs taglib tcl tcpd theora threads tiff tk tracker truetype unicode urandom usb utils v4l v4l2 vhook vim-syntax vorbis wmf x264 xattr xcb xcomposite xine xinerama xml xmp xorg xpm xscreensaver xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias asis auth_digest authn_dbd cern_meta dbd dumpio ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http substitute version" APACHE2_MPMS="event" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template topfield toshiba_pdrm11" ELIBC="glibc" FOO2ZJS_DEVICES="hp1000 hp1005 hp1018 hp1020 hp1215 hp1500 hp1600 hp2600n hpp1005 hpp1006 hpp1007 hpp1008 hpp1505 km2200 km2300 km2430 km2480 km2490 km2530 kmcpwl lm500 oki3200 oki3300 oki3400 oki3530 oki5100 oki5200 oki5500 oki5600 oki5800 sa2160 sa300 sa315 sa3160 xp6110 xp6115" INPUT_DEVICES="keyboard mouse evdev synaptics tslib void wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh en zh_TW af ar be bg bn bn_IN ca cs da de el en_GB en_US eo es  es_AR  es_ES et eu fa fi fr fy fy_NL ga ga_IE gl gu gu_IN he hi hi_IN hu it ja kn ko ku lt lv mk mn mr nb nb_NO nl oc pa pa_IN pl pt pt_BR pt_PT ro ru sl sq sr sv_SE te tr vi" LIRC_DEVICES="all" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd dlight enterprise ergonomics groovy identity mobility php profiler ruby webcommon" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau nv intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 hubertstar 2009-07-30 14:42:17 UTC
sys-auth/pam_ssh-1.97

dev-db/postgresql-server-8.3.7
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-31 13:27:12 UTC

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