Re: sftp seg faulting

From: Xin LI <delphij_at_delphij.net>
Date: Mon, 09 Nov 2009 13:44:15 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Cornejo wrote:
> Hi,
> 
> In recent builds of 9-CURRENT on amd64 platform I am getting seg
> faults that seem related to glob - same vintage works on x86.
> 
> Attempting ls of remote directory:
> 
> (gdb) run
> Starting program: /usr/bin/sftp white
> Connecting to white...
> Password:
[...]
> I'm either unlucky in tracing through glob or haven't been persistent
> enough - anyone have any idea what might be going on?

I am currently using a patch des_at_ sent to me (and also to this list)
which worked fine.

Cheers,
- --
Xin LI <delphij_at_delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!	       Live free or die
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAkr4jS8ACgkQi+vbBBjt66C9rwCfY6HH8I4WzoOlgL4UQNSFKvrA
QfsAoIO0/IihgHEio/N8iHvRYFdgPtJh
=bBF5
-----END PGP SIGNATURE-----

Index: crypto/openssh/ssh_namespace.h
===================================================================
--- crypto/openssh/ssh_namespace.h	(revision 197801)
+++ crypto/openssh/ssh_namespace.h	(working copy)
_at__at_ -223,6 +223,8 _at__at_
 #define get_u32					ssh_get_u32
 #define get_u64					ssh_get_u64
 #define getrrsetbyname				ssh_getrrsetbyname
+#define glob					ssh_glob
+#define globfree				ssh_globfree
 #define host_hash				ssh_host_hash
 #define hostfile_read_key			ssh_hostfile_read_key
 #define hpdelim					ssh_hpdelim
Index: secure/lib/libssh/Makefile
===================================================================
--- secure/lib/libssh/Makefile	(revision 197801)
+++ secure/lib/libssh/Makefile	(working copy)
_at__at_ -19,7 +19,7 _at__at_
 # compiled directly into sshd instead.
 
 # Portability layer
-SRCS+=	bsd-misc.c fmt_scaled.c getrrsetbyname.c \
+SRCS+=	bsd-misc.c fmt_scaled.c getrrsetbyname.c glob.c \
 	openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
 # FreeBSD additions
 SRCS+=	version.c
Received on Mon Nov 09 2009 - 20:44:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:57 UTC