<p>Hi Iñaki.</p><p>You are right. I neither see the reason of crashing; that is why I said "just to be sure" (I have seen strange thins in compilers) :-)</p><p>Chevio, please, could you print the value of size at frame 0?</p>
<p>Regards.</p><p>Sergio</p><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 5:45 PM, Iñaki Baz Castillo <span dir="ltr"><<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
El Miércoles, 11 de Marzo de 2009, Sergio Gutierrez escribió:<br>
<div class="im">> After calling pkg_malloc, you should evaluate the return value; it returns<br>
> NULL if memory allocation could not be performed. That would be a way to<br>
> determine whether you exhausted memory.<br>
<br>
</div>True, but still I see no reason for a segmentation fault even if pkg_malloc<br>
didn't success. Note that the segmentation fault occurs in the line 97<br>
(where 'pkg_malloc' is invoked), not when trying to use it later (which would<br>
make sense).<br>
<br>
Regards.<br>
<br>
--<br>
<font color="#888888">Iñaki Baz Castillo<br>
</font><div><div class="h5"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sergio Gutiérrez<br>