From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2549bf2a417a6699,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-04-08 09:31:59 PST Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-2.peachnet.edu!dekalb.dc.peachnet.edu!dekalb.dc.peachnet.edu!not-for-mail From: douglas@dekalb.DC.PeachNet.EDU (Douglas Jones) Newsgroups: comp.unix.osf.osf1 Subject: exception system: exiting due to.... Date: 8 Apr 1994 12:31:59 -0400 Organization: DeKalb College, Clarkston GA Distribution: world Message-ID: <2o40tv$g3c@dekalb.DC.PeachNet.EDU> NNTP-Posting-Host: dekalb.dc.peachnet.edu I have a program that gives the following error message: -------------- exception system: exiting due to internal error: runtime function entry or table not found -------------- when I run dbx on it and tell it to stop in exit(), I get the following: -------------- (dbx) stop in exit [2] stop in exit (dbx) r .....................program output deleted................... [2] stopped at [exit:132 ,0x3ff80102304] Source not available (dbx) where > 0 exit(0x0, 0x1, 0x140037930, 0x140037950, 0x0) ["../../../../../src/usr/ccs/ lib/libc/exit.c":132, 0x3ff80102304] 1 main(argc = 4, argv = 0x11ffffbc8) ["pwr.c":144, 0x120004394] (dbx) step [exit:138 ,0x3ff80102334] Source not available (dbx) where > 0 exit(0x0, 0x1, 0x140037930, 0x140037950, 0x0) ["../../../../../src/usr/ccs/ lib/libc/exit.c":138, 0x3ff80102334] 1 main(argc = 4, argv = 0x11ffffbc8) ["pwr.c":144, 0x120004394] (dbx) step exception system: exiting due to internal error: runtime function entry or table not found [exit:139 ,0x3ff80102344] Source not available (dbx) step [exit:140 ,0x3ff80102354] Source not available (dbx) step Program exited with code 1 (dbx) -------------- Notice that program exited with code 1, but my call on 144 of main is: -------------- %cat -n program.c|tail -2 144 exit(0); 145 } -------------- I call exit() via "exit(0);". Any ideas? My guess is that I have somehow copied over memory into the exit routine, but dbx did not appear to pick it up. Here it is again, doing "(dbx) trace in exit": --------------- (dbx) trace in exit [2] trace exit in exit (dbx) r .....................program output deleted................... [exit:132 ,0x3ff80102304]: exit = void type -- no value to print (dbx) where > 0 exit(0x0, 0x1, 0x140037930, 0x140037950, 0x0) ["../../../../../src/usr/ccs/ lib/libc/exit.c":132, 0x3ff80102304] 1 main(argc = 4, argv = 0x11ffffbc8) ["pwr.c":144, 0x120004394] (dbx) step [exit:138 ,0x3ff80102334] Source not available (dbx) step exception system: exiting due to internal error: runtime function entry or table not found [exit:139 ,0x3ff80102344] Source not available (dbx) step [exit:140 ,0x3ff80102354] Source not available (dbx) step Program exited with code 1 (dbx) --------------- Thanks, Douglas