[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Santosh
Subject: g_slist_alloc
Date: Sat, 5 Oct 2002 18:59:10 +0530 (IST)

        The function g_slist_alloc (singly linked list) allocates the
 memory well for sometime. But after a few allocations it gives 
segmentation fault. If I allocate the memory myself by using 
g_new(GSList, 1), it works fine.

        I also tried the Allocators, I changed the allocator to allocate
12, 24, 256 elements instead of the default 128, but segmentation fault
still occurs at the same point.

        Is there any limit on the allocation or is it a bug? I am using
the glib 2.0 version.
                        Thank you,
                        with regards,
                        Santosh Gangwani,
                        International Institute of Information Technology
                        Hyderabad, India.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]