+++ This bug was initially created as a clone of Bug #840598 +++ Hi, I was in my banana tree when I noticed a segfault with sftp on Fedora 17. It segfaults with autocompletion of a local accentued folder/(file?). Steps to Reproduce: $ mkdir Modèles $ sftp root@localhost sftp> put Mo [press TAB] And it segfaults. Actual results: SEGFAULT Expected results: 'put Modèles' Max --- Additional comment from kdudka on 2012-07-18 13:29:11 CEST --- This fixes the SIGSEGV in libedit: diff --git a/src/chared.c b/src/chared.c index 0a95913..1b6fa68 100644 --- a/src/chared.c +++ b/src/chared.c @@ -612,7 +612,7 @@ FUN(el,insertstr)(EditLine *el, const Char *s) { size_t len; - if ((len = Strlen(s)) == 0) + if (s == NULL || (len = Strlen(s)) == 0) return -1; if (el->el_line.lastchar + len >= el->el_line.limit) { if (!ch_enlargebufs(el, len)) However, if you want sftp to actually support UTF-8, you need to fix sftp so that complete_match() does not call el_insertstr() with incomplete multibyte sequences.
*** Bug 862282 has been marked as a duplicate of this bug. ***
Error on pressing <tab> in sftp while the name of the file has a utf-8 character in it. backtrace_rating: 4 Package: openssh-clients-5.9p1-27.fc17 OS Release: Fedora release 17 (Beefy Miracle)
Created attachment 653751 [details] File: backtrace
Upstream bug (now with patch): https://bugzilla.mindrot.org/show_bug.cgi?id=1990
openssh-6.1p1-9.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/openssh-6.1p1-9.fc18
openssh-5.9p1-30.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/openssh-5.9p1-30.fc17
Package openssh-5.9p1-30.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openssh-5.9p1-30.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-11392/openssh-5.9p1-30.fc17 then log in and leave karma (feedback).
openssh-6.1p1-9.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
openssh-5.9p1-30.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.
I experience this (or very similar) bug in Fedora 19. After doing steps to reproduce from first post (using same name Modèles), after pressing Tab, this is the last line in terminal before bash prompt appears: sftp> put Moel_insertstr failed and then terminal is in state where it does not echo any input. Name : openssh Version : 6.2p2 Release : 3.fc19
I can see the patch already pushed to the f19 branch, but there is no build of openssh that includes the patch. The last build is checked out from 66608a1d whereas the patch was introduced in 2ee68109. This needs to be built for f19.
openssh-6.2p2-4.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/openssh-6.2p2-4.fc19
Package openssh-6.2p2-4.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing openssh-6.2p2-4.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-13457/openssh-6.2p2-4.fc19 then log in and leave karma (feedback).
openssh-6.2p2-4.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.