Bug 11338 - Rsync Crash - Segmentation fault
Rsync Crash - Segmentation fault
Product: rsync
Classification: Unclassified
Component: core
x64 Linux
: P5 major
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on:
  Show dependency treegraph
Reported: 2015-06-17 12:35 UTC by Balveer Singh
Modified: 2015-06-24 16:47 UTC (History)
0 users

See Also:

Core file generated at crash (28.76 KB, application/x-rar)
2015-06-17 12:35 UTC, Balveer Singh
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balveer Singh 2015-06-17 12:35:00 UTC
Created attachment 11170 [details]
Core file generated at crash

Dear Team,

We are facing a crash in rsync on one of our production servers. We have updated rsync to the latest version 3.1.1 but still crash is observed. Below call stack is generated by the crash:
#0  0x0000003ad7e25433 in __gconv_transform_ascii_internal () from /lib64/libc.so.6
#1  0x0000003ad7e20264 in __gconv () from /lib64/libc.so.6
#2  0x0000003ad7e1f83c in iconv () from /lib64/libc.so.6
#3  0x000000000040d252 in iconvbufs ()
#4  0x0000000000423bce in rwrite ()
#5  0x0000000000423505 in rprintf ()
#6  0x000000000042b911 in whine_about_eof ()
#7  0x000000000042f5e2 in read_buf ()
#8  0x000000000042fde1 in read_int ()
#9  0x000000000043055d in setup_protocol ()
#10 0x000000000041ffb8 in client_run ()
#11 0x00000000004209c6 in main ()

Please let us know if any additional information is needed for debugging.

Balveer Singh
Comment 1 Wayne Davison 2015-06-24 16:47:12 UTC
You need to compile rsync with debug symbols (or load an rpm/deb/etc that provides debug symbols) to get useful info in your core's backtrace.  You should be figuring out why the call to iconvbufs is crashing by checking its args (change level to rwrite() and look at the vars). Rsync is exiting due to an EOF in the protocol stream (the whine_about_eof() call), but the message that it outputs shouldn't cause the iconv code any issues.