From owner-freebsd-current@FreeBSD.ORG Mon Nov 9 21:44:33 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21C941065670; Mon, 9 Nov 2009 21:44:33 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2A93F8FC0C; Mon, 9 Nov 2009 21:44:31 +0000 (UTC) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 586F755CD82C; Tue, 10 Nov 2009 05:44:29 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id AFN7HVgFroil; Tue, 10 Nov 2009 05:44:23 +0800 (CST) Received: from delta.delphij.net (unknown [206.40.55.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 71E4855CD829; Tue, 10 Nov 2009 05:44:19 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type; b=kivPbaSjanYKcJxba/sb6K7FhOr8WbMhTBCnphIEIWlF30ixs9RP7JxlKlT5FTRu2 6p458S1HDkaBgm6Eh6ucw== Message-ID: <4AF88D2F.3060306@delphij.net> Date: Mon, 09 Nov 2009 13:44:15 -0800 From: Xin LI Organization: The Geek China Organization User-Agent: Thunderbird 2.0.0.23 (X11/20091022) MIME-Version: 1.0 To: David Cornejo References: <4ab61a80911091307o28ca4e78pa8e42441bcf2e604@mail.gmail.com> In-Reply-To: <4ab61a80911091307o28ca4e78pa8e42441bcf2e604@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: multipart/mixed; boundary="------------040606040309030104060808" Cc: freebsd-current@freebsd.org, des@FreeBSD.org Subject: Re: sftp seg faulting X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2009 21:44:33 -0000 This is a multi-part message in MIME format. --------------040606040309030104060808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----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@ sent to me (and also to this list) which worked fine. Cheers, - -- Xin LI 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----- --------------040606040309030104060808 Content-Type: text/plain; name="openssh-glob.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="openssh-glob.diff" Index: crypto/openssh/ssh_namespace.h =================================================================== --- crypto/openssh/ssh_namespace.h (revision 197801) +++ crypto/openssh/ssh_namespace.h (working copy) @@ -223,6 +223,8 @@ #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) @@ -19,7 +19,7 @@ # 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 --------------040606040309030104060808--