DragonFly BSD
DragonFly bugs List (threaded) for 2010-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1891] sftp utility crashes


From: "vasily postnicov \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 09 Nov 2010 18:24:09 +0000

vasily postnicov <shamaz.mazum@gmail.com> added the comment:

alexh, I've compiled libc (via make buildworld && make installworld) with -g
option. unfortunately I can not "build world" with -O0 option (An error occurs).
Here is some output:

Starting program: /home/vasily/debug/sftp shamazmazum,tprpg@frs.sourceforge.net
shamazmazum,tprpg@frs.sourceforge.net's password: 
Connected to frs.sourceforge.net.
sftp> get htdocs

Breakpoint 1, g_lstat (pathbuf=0x7fffffff8440, pathend=<value optimized out>, 
    pathend_last=0x7fffffffa438, pattern=0x7fffffffa530, pglob=0x7fffffffe5f0, 
    limit=0x7fffffffe538) at /usr/src/lib/libc/../libc/gen/glob.c:873
873             if (pglob->gl_flags & GLOB_ALTDIRFUNC)
(gdb) list
868     
869             if (g_Ctoc(fn, buf, sizeof(buf))) {
870                     errno = ENAMETOOLONG;
871                     return (-1);
872             }
873             if (pglob->gl_flags & GLOB_ALTDIRFUNC)
874                     return((*pglob->gl_lstat)(buf, sb));
875             return(lstat(buf, sb));
876     }
877     
(gdb) print buf
$6 = "/home/groups/t/tp/tprpg/htdocs", '\000' <repeats 993 times>
(gdb) cont
Continuing.

Program received signal SIGILL, Illegal instruction.
0x0000000800570800 in ?? ()
(gdb) bt
#0  0x0000000800570800 in ?? ()
#1  0x0000000800bbf2ce in g_lstat (pathbuf=0x7fffffff8440, 
    pathend=<value optimized out>, pathend_last=0x7fffffffa438, 
    pattern=0x7fffffffa530, pglob=0x7fffffffe5f0, limit=0x7fffffffe538)
    at /usr/src/lib/libc/../libc/gen/glob.c:874
#2  glob2 (pathbuf=0x7fffffff8440, pathend=<value optimized out>, 
    pathend_last=0x7fffffffa438, pattern=0x7fffffffa530, pglob=0x7fffffffe5f0, 
    limit=0x7fffffffe538) at /usr/src/lib/libc/../libc/gen/glob.c:571
#3  0x0000000800bbfafb in glob1 (pattern=0x7fffffffc530, pglob=0x7fffffffe5f0, 
    limit=0x7fffffffe538) at /usr/src/lib/libc/../libc/gen/glob.c:546
#4  glob0 (pattern=0x7fffffffc530, pglob=0x7fffffffe5f0, limit=0x7fffffffe538)
    at /usr/src/lib/libc/../libc/gen/glob.c:509
#5  0x0000000800bc0039 in glob (pattern=0x80057081e "", flags=<value optimized
out>, 
    errfunc=<value optimized out>, pglob=0x7fffffffe5f0)
    at /usr/src/lib/libc/../libc/gen/glob.c:243
#6  0x00000000004085ad in remote_glob (conn=0x8005700c0, 
    pattern=0x800570800 "/home/groups/t/tp/tprpg/htdocs", flags=8, errfunc=0, 
    pglob=0x7fffffffe5f0) at sftp-glob.c:155
#7  0x000000000040387b in process_get (conn=0x8005700c0, src=0x8005500c8 "htdocs", 
    dst=0x0, pwd=0x8005600b8 "/home/groups/t/tp/tprpg", pflag=0, rflag=0) at
sftp.c:508
#8  0x0000000000405b76 in parse_dispatch_command (conn=0x8005700c0, 
    cmd=0x7fffffffec00 "get htdocs", pwd=0x7ffffffff408, err_abort=0) at sftp.c:1307
#9  0x00000000004078f9 in interactive_loop (conn=0x8005700c0, file1=0x0, file2=0x0)
    at sftp.c:1975
#10 0x00000000004082cf in main (argc=2, argv=0x7ffffffff560) at sftp.c:2249
(gdb) cont
Continuing.

Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1891>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]