Hello All,
 
This is regarding a query on malloc.
Can any one tell me from where I can get the source code
of malloc.c
I observed that malloc / calloc is giving Sigmentation fault.
I would like to know the situations in which this can happen.
Can any one help me by going through the following traces
from gdb.
 
 
Following are the back traces from gdb:
--------------------------------------------
 
Breakpoint 2, H245_InternalClose (H245SessionPtr=0x8053fc0)
    at h245Common.c:3342
3342      ptr = malloc(len);
(gdb) n
 
Program received signal SIGSEGV, Segmentation fault.
0x4015c4e1 in chunk_alloc (ar_ptr=0x401f1040, nb=16) at malloc.c:2699
2699    malloc.c: No such file or directory.
(gdb) bt
#0  0x4015c4e1 in chunk_alloc (ar_ptr=0x401f1040, nb=16) at malloc.c:2699
#1  0x4015c40a in __libc_malloc (bytes=12) at malloc.c:2643
#2  0x40088002 in H245_InternalClose (H245SessionPtr=0x8053fc0)
    at h245Common.c:3342
#3  0x400a1ce5 in H245_ReceiveThread (h245session=0x8053fc0)
    at h245Receive.c:1671
#4  0x400f7eca in pthread_start_thread (arg=0xbe7ffe60) at manager.c:213
(gdb)
Thanks,
Rajesh.
 

Reply via email to