home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / att / 2894 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.0 KB  |  54 lines

  1. Newsgroups: comp.sys.att
  2. Path: sparky!uunet!gatech!gsusgi1.gsu.edu!gsusgi1.gsu.edu!regmad
  3. From: regmad@gsusgi2.gsu.edu (Michael de Kraker)
  4. Subject: Re: Why is my program dumping core?
  5. Message-ID: <regmad.727976222@gsusgi1.gsu.edu>
  6. Organization: Georgia State University
  7. References: <1993Jan25.031632.13198@squid.tram.com>
  8. Date: Mon, 25 Jan 1993 15:37:02 GMT
  9. Lines: 43
  10.  
  11. jeffrey@squid.tram.com (Jeffrey L Bromberger) writes:
  12.  
  13. >Here's a question for the world at large.  I am at my wit's end over this.
  14.  
  15. >I have a program that I wrote.  It runs fine on all other machines I can find
  16. >(from BSD to SysV).  But, on my 3B2, it dumps core.  To make matters
  17. >worse, it isn't *my* code that dumps core, but the stdio package!
  18. >Here's a trace of the post-mortem dump...
  19.  
  20. >malloc.c: No such file or directory
  21. >0x808070ee in malloc:No lines in file
  22. >*t
  23. >malloc(0x408)   [malloc.c]
  24. >_findbuf(0x80888078)   [flsbuf.c]
  25. >_wrtchk(0x80888078)   [flsbuf.c]
  26. >fwrite(0xc00204e6,1,2,0x80888078)   [fwrite.c]
  27. >_resynch.label(0x80888078,0x80886707,0xa,0x4c0)
  28. >trace()   [trace.c:122]
  29. >main(argc=3,argv=0xc00201b8,0xc00201c8)   [main.c:420]
  30. >*q
  31.  
  32. >The failure seems to be somewhere in the guts of fprintf.  BTW: this
  33. >is with SVR3.1 and the CPLU 4.2.  Everything above the trace() call is
  34. >from the system.  Line 122 of trace.c is a fprintf.
  35.  
  36. >Can anyone out there give a suggestion as to why this fails like this?
  37.  
  38. >j
  39. >-- 
  40. >Jeffrey L. Bromberger ------- System Manager ------- Tramway Unix Systems
  41. >jeffrey@squid.tram.com        Anywhere!{ccnysci,limbic,icus}!tram!jeffrey
  42.  
  43.     Looks like you are passing an invalid number of arguments to
  44.     printf (A little obvious). How are you calling printf.
  45.  
  46.      _______  ______
  47.     /        /        /       /    Michael A. de Kraker
  48.    /        /______  /       /     Georgia State University  404-651-2390
  49.   /    ___        / /       /      Internet:REGMAD@GSUSGI2.GSU.EDU
  50.  /_______/ ______/ /_______/       BITNET  :REGMAD@GSUVM1  PACKET:KD4FKW@W4QO
  51.  
  52.    To iterate is human, to recurse devine
  53.  
  54.