Bug 5316 - Segmentation fault on transfer from/to different machines
Summary: Segmentation fault on transfer from/to different machines
Status: CLOSED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.1
Hardware: x86 Linux
: P3 critical (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-09 12:38 UTC by Sven Strickroth
Modified: 2008-07-26 10:47 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Strickroth 2008-03-09 12:38:47 UTC
(gdb) run
Starting program: /usr/src/rsync-3.0.0/rsync --daemon --server .
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xb7fc2000
grsec: signal 11 sent to /usr/src/rsync-3.0.0/rsync[rsync:13560] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/gdb[gdb:13559] uid/euid:0/0 gid/egid:0/0

Program received signal SIGSEGV, Segmentation fault.
0xb7ed78d3 in strlen () from /lib/i686/libc.so.6
(gdb) backtrace
#0  0xb7ed78d3 in strlen () from /lib/i686/libc.so.6
#1  0x0807ff8d in strlcpy (d=0xbfed3434 "", s=0x0, bufsize=1024)
    at lib/compat.c:109
#2  0x0807bbc3 in lp_load (pszFname=0x0, globals_only=0) at loadparm.c:838
#3  0x0807cd53 in start_daemon (f_in=0, f_out=1) at clientserver.c:882
#4  0x0806348c in main (argc=1, argv=Cannot access memory at address 0x4
) at main.c:1530

when i comment out this line (loadparm.c:838), there is no segmentation fault any more.
Comment 1 Wayne Davison 2008-03-09 13:55:05 UTC
See the mailing list:

http://www.mail-archive.com/rsync@lists.samba.org/msg20980.html

This is already fixed in the git repository and the nightly tar files.