Bug 18632

Summary: lftp fish:// always segfaults when trying autocompletion for "cd" & "get" commands
Product: Mageia Reporter: Thierry Vignaud <thierry.vignaud>
Component: RPM PackagesAssignee: David Walser <luigiwalser>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: lftp-4.7.2-1.mga6 CVE:
Status comment:
Attachments: GDB trace with symbols

Description Thierry Vignaud 2016-06-06 10:20:10 CEST
lftp fish:// always segfaults when trying autocompletion
run eg: lftp -u foo fish://bar/~/

then type "cd <tab">
and it segfaults.
See attached GDB trace
Comment 1 Thierry Vignaud 2016-06-06 10:21:03 CEST
Created attachment 7926 [details]
GDB trace with symbols
Comment 2 Thierry Vignaud 2016-06-06 10:25:33 CEST
Intestingly, completion works fine for eg: "put"...
It's "cd" that is broken.

Summary: lftp fish:// always segfaults when trying autocompletion => lftp fish:// always segfaults when trying autocompletion for "cd" command

Thierry Vignaud 2016-06-06 10:28:15 CEST

Summary: lftp fish:// always segfaults when trying autocompletion for "cd" command => lftp fish:// always segfaults when trying autocompletion for "cd" & "get" commands

Comment 3 Thierry Vignaud 2016-06-21 13:52:05 CEST
I got bored by this bug and I fixed it

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 4 Rémi Verschelde 2016-06-22 10:56:29 CEST
For the reference, in case it could be useful to other distros, here's the patch: http://svnweb.mageia.org/packages/cauldron/lftp/current/SOURCES/fix-segfault-mga18632.patch?view=markup