Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* comp.sys.dec
@ 1998-05-30  4:00 jdevlin
  0 siblings, 0 replies; 5+ messages in thread
From: jdevlin @ 1998-05-30  4:00 UTC (permalink / raw)




When I use malloc() within a function, the memory allocated byt the call
is being reused -- as if it was returned to the heap despite the fact
that I haven't free()'d it.

The malloc() man page says that this is precisely the behavior you'd
expect of alloca() when the alloca.h file is included.  Apparently
this function allocates space from the stack area which presumably
gets popped off as the function exits.  

So for some reason or other malloc() is behaving like alloca() when
it shouldn't be (as far as I can tell).  I want space allocated from
the heap and not returned to it until I free() it.  Can anyone suggest
either what I'm doing wrong or how I can change this behavior?

As far as I can tell malloc() has not been setup as a macro for alloca().
In addition, the behavior goes away when the code is run in dxladebug
without modifications.

Any help would be appreicated.

The code was compiled using /bin/cc on a Dec Alpha:
uname -a = "OSF1 bravo.lang.psyc.bbk.ac.uk V4.0 878 alpha"

						- Joe

*************************************************************************
Joseph Devlin, PhD                 * 
Center for Speech and Language     * email: j.devlin@psyc.bbk.ac.uk
Birkbeck College                   * 
London  WC1E 7HX                   * "The axon doesn't think.
Phone: 0171-631-6325               *  It just ax."  George Bishop
Fax:   0171-631-6587               *
*************************************************************************




^ permalink raw reply	[flat|nested] 5+ messages in thread
* comp.sys.dec
@ 1994-01-14  1:58 Grover Furr
  1994-01-14 15:54 ` comp.sys.dec acssysdsc
  1994-01-18  3:03 ` comp.sys.dec Barton F. Bruce / CCA
  0 siblings, 2 replies; 5+ messages in thread
From: Grover Furr @ 1994-01-14  1:58 UTC (permalink / raw)



	I'm using VaxNotes in teaching a college course, but it is very poorly
supported at my college. I'd like to be able to email other teachers
who have used VaxNotes in courses -- especially in humanities
(literature, etc.) courses.

	Can anyone on this nwsgroup give me some suggestions about how
to contact (1) experts on VaxNotes in general; (2) other professors
who use VN in course, specifically?

	Does DEC have a toll-free "help" line for this product?

	Finally: what would be the best nwsgroup (or email address) to
post this message to, or to send it to?

	Thanks for your help! Please email me at:

	furr@apollo.montclair.edu,

as, obviously, I don't follow this newsgroup.

Sincerely,

	Grover Furr


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Grover C. Furr

Home: 121 Oakland Terrace               Work: English Department
      Newark, NJ 07106                        Montclair State College
      ARS AA2GP                               Upper Montclair, NJ 07043
email: Preferred: furr@saturn.montclair.edu   (201) 655-7305
       Also valid: furr@pilot.njin.net
                   furr@apollo.montclair.edu
 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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

end of thread, other threads:[~1998-05-30  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-30  4:00 comp.sys.dec jdevlin
  -- strict thread matches above, loose matches on Subject: below --
1994-01-14  1:58 comp.sys.dec Grover Furr
1994-01-14 15:54 ` comp.sys.dec acssysdsc
1994-01-14 17:15   ` comp.sys.dec Dan Wing
1994-01-18  3:03 ` comp.sys.dec Barton F. Bruce / CCA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox