Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!endor!kochhar From: kochhar@endor.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: profiling programs Keywords: X11R3, Sun4, SunOS4.0, twm, Xt, Xaw Message-ID: <2243@husc6.harvard.edu> Date: 19 Jul 89 23:42:47 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.harvard.edu (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 33 Hi! I have a program that uses the Xlib, Xt and Xaw; I was trying to profile the program and compiled everything with "cc -g -p ..." When I tried running the program, it hung in select(); dbx showed the following trace: select() at 0x4c298 yp_match() at 0x4e554 yp_match() at 0x4e408 usingypmap() at 0x4d40c gethostent() at 0x49b28 sethostent() at 0x496c8 gethostbyname() at 0x49510 _XConnectDisplay() at 0x262fc XOpenDisplay() at 0x2a644 XtOpenDisplay() at 0xf6d4 XtInitialize() at 0x13700 main(argc = 1, argv = 0xf7fffb3c), line 551 in "cliptst.c" Recompiling without the "-p" flag made it work fine again. Any pointers?? Thanks in advance. Sandeep Kochhar (617) 495-9515 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, Ma 02138 kochhar@harvard.bitnet "If you didn't get this message, please let me know."