linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* look for help!
@ 2002-05-15  2:45 junjie_lu
  0 siblings, 0 replies; only message in thread
From: junjie_lu @ 2002-05-15  2:45 UTC (permalink / raw)
  To: linux-kernel

When i use the function "malloc",i meet a mistake.The error message is "segmentation fault".
the code is :
   typedef struct Link
   {
     int num;
     int *data;
     Link *nexe;
   }Link;
   Link *mLink;
   void *p=malloc(sizeof(Link));
   mLink=(Link *)p;
In my code,I use them for several times,there is no error,but when the number of item in frame stack arrive 10,then occur the error.
when the error occur ,the status of the frame stack is 
#0 0x40128341 in chunk_alloc(ar_ptr=0x401d1f00,nb=16) at malloc.c:2781
#1 0x4012813a in __libc_malloc(bytes=12) at mallo.c:2714
2781 malloc.c:No such file or directory
#2 0x08070c78 in................
................................
#10 ...................................
But these code is right under Windows + VC 6.0.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-15  2:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-15  2:45 look for help! junjie_lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).