[OpenSIPS-Users] segmentation fault when calling pkg_malloc

Iñaki Baz Castillo ibc at aliax.net
Wed Mar 11 22:45:42 CET 2009


El Miércoles, 11 de Marzo de 2009, Sergio Gutierrez escribió:
> After calling pkg_malloc, you should evaluate the return value; it returns
> NULL if memory allocation could not be performed. That would be a way to
> determine whether you exhausted memory.

True, but still I see no reason for a segmentation fault even if pkg_malloc 
didn't success. Note that the segmentation fault occurs in the line 97 
(where 'pkg_malloc' is invoked), not when trying to use it later (which would 
make sense).

Regards.

-- 
Iñaki Baz Castillo



More information about the Users mailing list