Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault with simple lftpget example #735

Open
mxmlnkn opened this issue Sep 24, 2024 · 0 comments
Open

Segmentation fault with simple lftpget example #735

mxmlnkn opened this issue Sep 24, 2024 · 0 comments

Comments

@mxmlnkn
Copy link

mxmlnkn commented Sep 24, 2024

gdb -ex r -ex bt --args sh $( which lftpget ) sftp://127.0.0.1:22:silesia.tar.gz .

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff793ffd5 in __strstr_sse2 (haystack=0x55555573d640 "file name missed in URL", needle=0x0) at ../string/strstr.c:82
82	../string/strstr.c: No such file or directory.
#0  0x00007ffff793ffd5 in __strstr_sse2 (haystack=0x55555573d640 "file name missed in URL", needle=0x0) at ../string/strstr.c:82
#1  0x00005555555c8697 in CopyJob::Do() ()
#2  0x00005555555ffb16 in SMTask::ScheduleThis() ()
#3  0x0000555555604141 in SMTask::Schedule() ()
#4  0x00005555555a6096 in Job::WaitDone() ()
#5  0x000055555559fc84 in main ()

Based on the backtrace, it seems that I am using the command wrong? But the manual for lftpget is very sparse. An example would be nice.

The correct call seems to be lftpget sftp://127.0.0.1:22:/home/user/silesia.tar.gz. I have not found any possibility to specify a relative path. That would have been nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant