As reported by José Valentín Gutiérrez Boquete in 
https://bugs.gentoo.org/show_bug.cgi?id=142405

$ gdb --args lftp -u daniel,black -p 1337 nicoHQ.org.
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/lftp -u daniel,black -p 1337 nicoHQ.org.
shell-init: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
lftp [EMAIL PROTECTED]:~> ls
`ls' at 0 [Receiving data/TLS]
Program received signal SIGSEGV, Segmentation fault.
0xb7a36976 in gnutls_certificate_free_keys (sc=0x0) at gnutls_cert.c:61
61      gnutls_cert.c: No such file or directory.
        in gnutls_cert.c
Current language:  auto; currently c
(gdb) directory /var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2
Warning: /var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2: Permission denied.
Source directories searched: /var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2:
$cdir:$cwd
(gdb) directory /var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2/src
Warning: /var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2/src: Permission denied.
Source directories 
searched: 
/var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2/src:/var/tmp/portage/lftp-3.5.2/work/lftp-3.5.2:
$cdir:$cwd
(gdb) bt
#0  0xb7a36976 in gnutls_certificate_free_keys (sc=0x0) at gnutls_cert.c:61
#1  0xb7a36b60 in gnutls_certificate_free_credentials (sc=0x0) at 
gnutls_cert.c:187
#2  0xb7ef0e74 in ~lftp_ssl_gnutls (this=0x808ae60) at lftp_ssl.cc:314
#3  0xb7ef28bc in ~IOBufferSSL (this=0x82bcd30) at buffer_ssl.cc:127
#4  0xb7e539d7 in SMTask::Delete (task=0x82bcd70) at SMTask.cc:133
#5  0xb7ad0528 in Ftp::Connection::CloseDataConnection (this=0x808aca0) at 
ftpclass.cc:2962
#6  0xb7ad0634 in Ftp::DataClose (this=0x807a458) at ftpclass.cc:2995
#7  0xb7ad3e2e in Ftp::NoFileCheck (this=0x807a458, act=435) at 
ftpclass.cc:288
#8  0xb7ad4101 in Ftp::TransferCheck (this=0x807a458, act=435) at 
ftpclass.cc:392
#9  0xb7ad4cbb in Ftp::CheckResp (this=0x807a458, act=435) at ftpclass.cc:3883
#10 0xb7ad5723 in Ftp::ReceiveResp (this=0x807a458) at ftpclass.cc:2677
#11 0xb7adab2a in Ftp::Do (this=0x807a458) at ftpclass.cc:2227
#12 0xb7e5475e in SMTask::Schedule () at SMTask.cc:234
#13 0xb7ea50fd in Job::WaitDone (this=0x8053ab8) at Job.cc:556
#14 0x0804d08d in main (argc=6, argv=0xbfb0d284) at lftp.cc:489

$ /usr/bin/libgnutls-config --version
1.4.1

./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --sysconfdir=/etc/lftp --with-modules --disable-nls 
--enable-packager-mode --without-openssl --with-socksdante=/usr 
--build=i686-pc-linux-gnu

-- 
Daniel Black <[EMAIL PROTECTED]>
Gentoo Crypto/dev-embedded/Forensics/NetMon

Attachment: pgpZeqfspowdj.pgp
Description: PGP signature

Reply via email to