[Bug 731238] New: SFTP from cli produces error on exit
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c0 Summary: SFTP from cli produces error on exit Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Minor Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: brad@bradbothun.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0 When using the sftp command from CLI on exit I get the following error: deployer:/opt/hallmark/deployment # sftp root@tc-test2 Password: Connected to tc-test2. sftp> exit *** glibc detected *** sftp: free(): invalid pointer: 0x4545454545454545 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x74c06)[0x7fb37f16ac06] /usr/lib64/libedit.so.0(el_end+0x76)[0x7fb37f494ad6] sftp(+0x93cf)[0x7fb37f8ed3cf] sftp(main+0x50c)[0x7fb37f8e844c] /lib64/libc.so.6(__libc_start_main+0xed)[0x7fb37f11723d] sftp(+0x4739)[0x7fb37f8e8739] ======= Memory map: ======== 7fb37ea80000-7fb37ea95000 r-xp 00000000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ea95000-7fb37ec94000 ---p 00015000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec94000-7fb37ec95000 r--p 00014000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec95000-7fb37ec96000 rw-p 00015000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec96000-7fb37ec98000 r-xp 00000000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ec98000-7fb37ee98000 ---p 00002000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee98000-7fb37ee99000 r--p 00002000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee99000-7fb37ee9a000 rw-p 00003000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee9a000-7fb37eeef000 r-xp 00000000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37eeef000-7fb37f0ef000 ---p 00055000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0ef000-7fb37f0f0000 r--p 00055000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0f0000-7fb37f0f6000 rw-p 00056000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0f6000-7fb37f27b000 r-xp 00000000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f27b000-7fb37f47b000 ---p 00185000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f47b000-7fb37f47f000 r--p 00185000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f47f000-7fb37f480000 rw-p 00189000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f480000-7fb37f485000 rw-p 00000000 00:00 0 7fb37f485000-7fb37f4b9000 r-xp 00000000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f4b9000-7fb37f6b9000 ---p 00034000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6b9000-7fb37f6bb000 r--p 00034000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6bb000-7fb37f6bc000 rw-p 00036000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6bc000-7fb37f6c1000 rw-p 00000000 00:00 0 7fb37f6c1000-7fb37f6e1000 r-xp 00000000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8c6000-7fb37f8ca000 rw-p 00000000 00:00 0 7fb37f8de000-7fb37f8e1000 rw-p 00000000 00:00 0 7fb37f8e1000-7fb37f8e2000 r--p 00020000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8e2000-7fb37f8e3000 rw-p 00021000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8e3000-7fb37f8e4000 rw-p 00000000 00:00 0 7fb37f8e4000-7fb37f8ff000 r-xp 00000000 ca:02 617954 /usr/bin/sftp 7fb37faff000-7fb37fb00000 r--p 0001b000 ca:02 617954 /usr/bin/sftp 7fb37fb00000-7fb37fb01000 rw-p 0001c000 ca:02 617954 /usr/bin/sftp 7fb37fb01000-7fb37fb26000 rw-p 00000000 00:00 0 [heap] 7fffc00f5000-7fffc0116000 rw-p 00000000 00:00 0 [stack] 7fffc01ff000-7fffc0200000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted The sftp program has no problem transferring files, it just errors on exit. Reproducible: Always Steps to Reproduce: 1.Open terminal and execute sftp command (sftp user@host) 2. Once connected issue the "exit" command 3. Actual Results: *** glibc detected *** sftp: free(): invalid pointer: 0x4545454545454545 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x74c06)[0x7fb37f16ac06] /usr/lib64/libedit.so.0(el_end+0x76)[0x7fb37f494ad6] sftp(+0x93cf)[0x7fb37f8ed3cf] sftp(main+0x50c)[0x7fb37f8e844c] /lib64/libc.so.6(__libc_start_main+0xed)[0x7fb37f11723d] sftp(+0x4739)[0x7fb37f8e8739] ======= Memory map: ======== 7fb37ea80000-7fb37ea95000 r-xp 00000000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ea95000-7fb37ec94000 ---p 00015000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec94000-7fb37ec95000 r--p 00014000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec95000-7fb37ec96000 rw-p 00015000 ca:02 295773 /lib64/libgcc_s.so.1 7fb37ec96000-7fb37ec98000 r-xp 00000000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ec98000-7fb37ee98000 ---p 00002000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee98000-7fb37ee99000 r--p 00002000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee99000-7fb37ee9a000 rw-p 00003000 ca:02 295654 /lib64/libdl-2.14.1.so 7fb37ee9a000-7fb37eeef000 r-xp 00000000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37eeef000-7fb37f0ef000 ---p 00055000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0ef000-7fb37f0f0000 r--p 00055000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0f0000-7fb37f0f6000 rw-p 00056000 ca:02 295603 /lib64/libncursesw.so.6.0 7fb37f0f6000-7fb37f27b000 r-xp 00000000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f27b000-7fb37f47b000 ---p 00185000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f47b000-7fb37f47f000 r--p 00185000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f47f000-7fb37f480000 rw-p 00189000 ca:02 295775 /lib64/libc-2.14.1.so 7fb37f480000-7fb37f485000 rw-p 00000000 00:00 0 7fb37f485000-7fb37f4b9000 r-xp 00000000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f4b9000-7fb37f6b9000 ---p 00034000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6b9000-7fb37f6bb000 r--p 00034000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6bb000-7fb37f6bc000 rw-p 00036000 ca:02 571230 /usr/lib64/libedit.so.0.0.35 7fb37f6bc000-7fb37f6c1000 rw-p 00000000 00:00 0 7fb37f6c1000-7fb37f6e1000 r-xp 00000000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8c6000-7fb37f8ca000 rw-p 00000000 00:00 0 7fb37f8de000-7fb37f8e1000 rw-p 00000000 00:00 0 7fb37f8e1000-7fb37f8e2000 r--p 00020000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8e2000-7fb37f8e3000 rw-p 00021000 ca:02 295646 /lib64/ld-2.14.1.so 7fb37f8e3000-7fb37f8e4000 rw-p 00000000 00:00 0 7fb37f8e4000-7fb37f8ff000 r-xp 00000000 ca:02 617954 /usr/bin/sftp 7fb37faff000-7fb37fb00000 r--p 0001b000 ca:02 617954 /usr/bin/sftp 7fb37fb00000-7fb37fb01000 rw-p 0001c000 ca:02 617954 /usr/bin/sftp 7fb37fb01000-7fb37fb26000 rw-p 00000000 00:00 0 [heap] 7fffc00f5000-7fffc0116000 rw-p 00000000 00:00 0 [stack] 7fffc01ff000-7fffc0200000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted Expected Results: Program should exit normally Linux deployer 3.1.0-1.2-xen #1 SMP Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux deployer:/opt/hallmark/deployment # hwinfo --short cpu: Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 2400 MHz Intel(R) Xeon(R) CPU E5530 @ 2.40GHz, 2400 MHz keyboard: /dev/input/event0 Xen Virtual Keyboard mouse: /dev/input/mice Xen Virtual Pointer storage: Xen Virtual Storage 0 Xen Virtual Storage 1 network: eth0 Xen Virtual Ethernet Card 0 network interface: lo Loopback network interface eth0 Ethernet network interface disk: /dev/xvda Disk /dev/xvdb Disk partition: /dev/xvda1 Partition /dev/xvda2 Partition bios: BIOS memory: Main Memory unknown: DMA controller Timer PS/2 Controller -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |pcerny@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c Petr Cerny <pcerny@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c1 Petr Cerny <pcerny@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |brad@bradbothun.com --- Comment #1 from Petr Cerny <pcerny@suse.com> 2011-11-21 12:47:52 UTC --- Brad, what version of openssh are you using? 5.8 or 5.9? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c2 Brad Bothun <brad@bradbothun.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|brad@bradbothun.com | --- Comment #2 from Brad Bothun <brad@bradbothun.com> 2011-11-21 14:43:19 UTC --- openssh-5.8p2-3.1.3.x86_64 libnsssharedhelper0-1.0.9-9.1.3.x86_64 openssh-askpass-5.8p2-3.1.3.x86_64 libssh2-1-1.2.9-7.1.3.x86_64 -------------------------------------- openssl-1.0.0e-34.1.2.x86_64 libopenssl1_0_0-1.0.0e-34.1.2.x86_64 libopenssl1_0_0-32bit-1.0.0e-34.1.2.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c3 --- Comment #3 from Brad Bothun <brad@bradbothun.com> 2011-11-21 15:20:56 UTC --- Created an attachment (id=463192) --> (http://bugzilla.novell.com/attachment.cgi?id=463192) Here is the complete list of installed RPMs | Output of: rpm -qa -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c4 Petr Cerny <pcerny@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rschweikert@suse.com --- Comment #4 from Petr Cerny <pcerny@suse.com> 2011-11-22 09:52:32 UTC --- *** Bug 731889 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=731889 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c5 Yasuhiko Kamata <belphegor@belbel.or.jp> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |belphegor@belbel.or.jp --- Comment #5 from Yasuhiko Kamata <belphegor@belbel.or.jp> 2011-11-26 02:34:14 UTC --- This problem is caused by libedit. In libedit's source el.c:140, el_free() (which is an alias for glibc's free()) is called against an "el" variable, but the following code will el_free() against "el->el_scratch.cbuff" ("el" was already freed at this point). Therefore, "el_free((ptr_t) el);" should be placed after them. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c6 --- Comment #6 from Yasuhiko Kamata <belphegor@belbel.or.jp> 2011-11-26 02:36:12 UTC --- Created an attachment (id=464147) --> (http://bugzilla.novell.com/attachment.cgi?id=464147) patch for libedit (see comment#5) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c7 pier andre <pier_andreit@yahoo.it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pier_andreit@yahoo.it --- Comment #7 from pier andre <pier_andreit@yahoo.it> 2011-12-04 15:44:50 UTC --- only for add in the cc list -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c8 --- Comment #8 from Tamás Németh <nice@titanic.nyme.hu> 2011-12-07 06:18:08 UTC --- It seems to be fixed. Can you confirm this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c9 --- Comment #9 from Robert Schweikert <rschweikert@suse.com> 2011-12-07 14:48:35 UTC --- It worked for me, i.e. no more crash on exit. Just ran zypper up Thanks for fixing this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c10 --- Comment #10 from Brad Bothun <brad@bradbothun.com> 2011-12-07 15:24:07 UTC --- (In reply to comment #8)
It seems to be fixed. Can you confirm this?
It's fixed. Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c11 Petr Cerny <pcerny@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #11 from Petr Cerny <pcerny@suse.com> 2011-12-07 16:10:16 UTC --- Thank you, Yasuhiko! Closing as fixed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=731238 https://bugzilla.novell.com/show_bug.cgi?id=731238#c12 Petr Cerny <pcerny@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jengelh@medozas.de --- Comment #12 from Petr Cerny <pcerny@suse.com> 2011-12-13 11:05:35 UTC --- *** Bug 735376 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=735376 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com