home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:16103 comp.unix.programmer:5195
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!stanford.edu!rutgers!psinntp!psinntp!newstand.syr.edu!lynx.cat.syr.edu!dljarvis
- From: dljarvis@lynx.cat.syr.edu (David Jarvis)
- Newsgroups: comp.lang.c,comp.unix.programmer
- Subject: strange memory problem
- Message-ID: <1992Nov6.105307.1800@newstand.syr.edu>
- Date: 6 Nov 92 15:53:07 GMT
- Organization: Syracuse University
- Lines: 32
-
- I'm having a strange memory problem (or perhaps it's strange because
- of my lack of expertise), and can't seem to track it down. The reason
- I can't track it down is because: (in an abbreviated version)
-
- main ()
- {
- printf ("this gets printed\n");
- my_function (arg);
- printf ("this does not\n");
- }
-
- my_function (int arg)
- {
- /* do some stuff */
- printf ("this gets printed\n");
- }
-
- So ... I see the program going _into_ the function, I see the function
- execute and tell me when it's about to return to main, but I never see
- the return message in main! Could someone offer some insights into
- how I might track down such a problem (or better yet what it might be?! :-))?
- (quick responses are *greatly* appreciated, I can't take no more
- sleepless nights in front of this terminal! :-) )
- oh btw: this is on SCO Xenix ver 2.3.4, with SCO dev/sys ver 2.3.1, using
- GNU's gcc ver 1.40
- Please respond directly via email to david@dynamix.com
- (or dljarvis@cat.syr.edu) and if there is sufficient interest
- I could post the summary to the net.
-
- many thanks
- /david
- david@dynamix.com
-