Path: utzoo!utgpu!watserv1!ria!rrivax.rri.uwo.ca!lrb From: lrb@rrivax.rri.uwo.ca (Lance R. Bailey) Newsgroups: comp.sys.hp Subject: who dumped core? Message-ID: <1479@ria.ccs.uwo.ca> Date: 21 Nov 90 19:08:22 GMT Sender: root@ria.ccs.uwo.ca Reply-To: lrb@rrivax.rri.uwo.ca Organization: Robarts Research Institute -- London Canada Earth Lines: 30 News-Software: VAX/VMS VNEWS 1.3-4 hi, i need a proggie on the 800 to tell me the name (argv[0] will do) of the code that dumped core. on the 500 it was a snap, read in the user struct and pickout the u_ppg_args field. on the 800, there is no u_ppg_args. there is a u_ap field, but it seems to be rather empty. this code returns "core created by <>" union { char buffer[2056]; struct { struct ofile_t ofiletbuff; struct user userbuff; } Cinfo; } Chead; char *charptr; ... fread(Chead.buffer,sizeof(char),1024,core); fprintf(stdout,"%s created from <%s>\n",file,Chead.Cinfo.userbuff.u_ap[0]); why is *u_ap[0] NULL? Lance R. Bailey, Systems Manager ================================ box: Robarts Research Institute email: lrb@rri.uwo.ca Clinical Trials Resources Group fax: 519.663.3789 P.O. Box 5015, 100 Perth Dr. vox: 519.663.3787 ext. 4108 London, Canada N6A 5K8