rb core dumps on filename collision
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lrzsz (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System info...
mfiore@
Linux mwf-ubuntu 3.5.0-54-generic #81~precise1-Ubuntu SMP Tue Jul 15 04:02:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
mfiore@
rb (GNU lrzsz) 0.12.21rc
mfiore@
minicom version 2.5 (compiled May 2 2011)
I'm communicating with a bootloader in an embedded device via YMODEM. If I attempt to transfer a file from the embedded device to my PC and the file already exists on my PC (in the directory I'm running minicom from), rb will crash. The following is from my system log:
Mar 20 13:27:58 mwf-ubuntu rb[25484]: [mfiore] no.name/YMODEM: got error
Mar 20 13:27:58 mwf-ubuntu kernel: [657534.433924] rb[25484]: segfault at 0 ip 00007f2ad2f5b840 sp 00007fff59aa6be8 error 4 in libc-2.
According to rb usage, either the -E or -p option should be used to avoid this situation. Minicom is using neither, which isn't rb's fault, but this situation should still be handled more gracefully than a core dump.