for the two or three people left running SUA, and trying to rsync a UNIX box back on a corporate Windows server, you’ll probably wonder why rsync crashes…
$ ./rsync dbserver:: Memory fault (core dumped) $
Wonderful. Â So I know what you’re thinking, let’s debug it, right?!
$ gdb rsync
GNU gdb 2002-11-11-cvs Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type “show copying” to see the conditions. There is absolutely no warranty for GDB. Type “show warranty” for details. This GDB was configured as “i586-pc-interix3″…
(gdb) set args dbserver::
(gdb) r
Starting program: /dev/fs/C/Users/neozeed/tmp/rsync-3.1.0/rsync dbserver:: procfs: init_inferior, get_traced_signals line 4856, /proc/1375: Value too large to be stored in data type.
Yeah. Fantastic.
Well it turns out the bundled libintl on Interix is all screwed up. Â So edit the config.h, and remove the line:
#define HAVE_ICONV_H 1
rebuild, and all will be well.