linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Antwort: Re: Antwort: Re: -EFAULT during freeing a pointer to a structure
@ 2004-10-08 12:27 p.boehm
  2004-10-08 12:43 ` Jan-Benedict Glaw
  2004-10-08 13:59 ` Ron Michael Khu
  0 siblings, 2 replies; 5+ messages in thread
From: p.boehm @ 2004-10-08 12:27 UTC (permalink / raw)
  To: Jan-Benedict Glaw; +Cc: linux-c-programming


sorry, but it isn't a problem of loop. check this while running the prog...

test one:

     #define MAXNUM 7
     compile it and run ...
     you'll see while freeing ptr->next[0] an -EFAULT occours.

test two:

     #define MAXMUM 8
     compile it and run ...
     you'll see freeing ptr->next[0] works fine.

my question: why it is so.

thanks
pb


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-08 14:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08 12:27 Antwort: Re: Antwort: Re: -EFAULT during freeing a pointer to a structure p.boehm
2004-10-08 12:43 ` Jan-Benedict Glaw
2004-10-08 13:59 ` Ron Michael Khu
2004-10-08 13:59   ` Jan-Benedict Glaw
2004-10-08 14:07     ` Ron Michael Khu

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).