Re: Rsync 3.1.3 segfault

2020-06-13 Thread Wayne Davison via rsync
On Mon, May 28, 2018 at 7:22 AM Marcin Krol wrote:

> The code responsible for segfault is new popt_unalias function added
> in 3.1.3. To be exact this line causes segfault:
> poptAddAlias(con, unalias, 0);
>

I have never seen this crash occur, but it dawned on me that the reason is
most likely that the function calling poptAddAlias() created an argv array
with only one element in it instead of the more proper 2-element array with
room for a trailing NULL.  I've tweaked the code to change that.

..wayne..
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync 3.1.3 segfault

2018-05-28 Thread Marcin Krol via rsync

Hello.

I've problem with rsync 3.1.3 in my distribution (TLD Linux). It 
segfaults when service is started. Services are controlled by rc-scripts 
(TLD Linux is systemd free). Actual command thats being run by 
rc-scripts is:


nice -n 15 initlog -c "/usr/bin/rsync --daemon 
--dparam=pidfile=/var/run/rsync.pid"


When ran by hand it works, when ran from rc-scripts rsync segfaults. The 
only difference is that rc-scripts are closing/redirecting std streams 
prior to calling above command.


The code responsible for segfault is new popt_unalias function added in 
3.1.3. To be exact this line causes segfault:


poptAddAlias(con, unalias, 0);

When commented out everything works.

Workaround for now to get it running is to comment out popt_unalias calls.

I'm hoping for little help to nail down what exactly causes segfault and 
fix it :-)


Cheers
Marcin

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html