From: <junjie_lu@sohu.com>
To: <linux-kernel@vger.kernel.org>
Subject: look for help!
Date: Wed, 15 May 2002 10:45:03 +0800 (CST) [thread overview]
Message-ID: <870168.1021430703769.JavaMail.postfix@mailsrv11.mail.sohu.com> (raw)
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.
reply other threads:[~2002-05-15 2:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=870168.1021430703769.JavaMail.postfix@mailsrv11.mail.sohu.com \
--to=junjie_lu@sohu.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox