<p>I think the problem is that fs sets the stack size for the core and new threads to 240k so when the child is born from system() the new process inherits the small stack size and sendmail needs more than 240k</p>
<p>If you are root, it has the priveledge to raise the stack size to the default size of 8m and sets it back down when the command completes.</p>
<p>If you are not root you lack these privs and the stack size remains small.</p>
<p>This has been a long time problem how to make a solution that is cross platform and will not break working configurations. </p>
<p></p><blockquote type="cite">On Mar 19, 2010 6:47 AM, "Madovsky" <<a href="mailto:infos@madovsky.org" target="_blank">infos@madovsky.org</a>> wrote:<br><br>
<div bgcolor="#ffffff">
<div><font size="2">I tried also with sudo and freeswitch user in sudoers with the
same result, segmentation fault.</font></div>
<div><font size="2">Anyway my patch works perfectly now, even with sendmail (the
only difference without patch is the "From" is taken from the voicemail.tpl and
not the user variable)</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-left: 5px; padding-right: 0px; margin-left: 5px; margin-right: 0px;"><p><font color="#500050"><br>><br>> ----- Original Message -----<br>> From: François Legal<br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a></font></p><p><font color="#500050"><br>> Sent: Friday, March 19, 2010 6:51 AM<br>> Subject: Re: [Freeswitch-users] voicemail options [tempora...</font></p>
</blockquote></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>...</blockquote><p></p>