I don't know what's information is needed to help to find the reason of this segfault...
So I give a first "pack" of info... If you need any precision, ask me ;)
I use gentoo and rssh-2.3.2
sd-4708 ~ # uname -a
Linux sd-4708 2.6.17-gentoo-r8_dedibox_r0 #1 Mon Jul 17 20:06:08 CEST 2006 i686 VIA Esther processor 2000MHz CentaurHauls GNU/Linux
System compilation flag :
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
What's happend on test :
Nov 5 04:08:18 sd-4708 sshd(pam_unix)[960]: session opened for user testuser by (uid=0)
Nov 5 04:08:18 sd-4708 sshd[960]: subsystem request for sftp
Nov 5 04:08:18 sd-4708 rssh[961]: setting log facility to LOG_USER
Nov 5 04:08:18 sd-4708 rssh[961]: allowing scp to all users
Nov 5 04:08:18 sd-4708 rssh[961]: allowing sftp to all users
Nov 5 04:08:18 sd-4708 rssh[961]: setting umask to 022
Nov 5 04:08:18 sd-4708 rssh[961]: chrooting all users to /home/ftp
Nov 5 04:08:18 sd-4708 rssh[961]: chroot cmd line: /usr/lib/misc/rssh_chroot_helper 2 "/usr/lib/misc/sftp-server"
Nov 5 04:08:18 sd-4708 sshd(pam_unix)[960]: session closed for user testuser
Test on no-chroot environnement seem ok :
sd-4708 ~ # /usr/lib/misc/rssh_chroot_helper 2 "/usr/lib/misc/sftp-server"
sd-4708 ~ #
Same on chrooted environnement crash with segmentation fault.
Tried to lauch it in chrooted environnement with gdb :
(gdb) run
Starting program: /usr/lib/misc/rssh_chroot_helper 2 "/usr/lib/misc/sftp-server"
(no debugging symbols found)
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
0xb7ee8a44 in fgets () from /lib/libc.so.6
(gdb) quit
------------------------------------
For information all my lib have a "virtual ref" to linux-gate
eg : sd-4708 ~ # ldd /lib/libc.so.6
/lib/ld-linux.so.2 (0xb7f76000)
linux-gate.so.1 => (0xffffe000)
I think my chroot is correct (made manually, all is verified and reverified)
Any idea of what happend ?
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ rssh-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rssh-discuss
