From: Alan W. I. <ir...@be...> - 2001-10-21 15:56:29
|
I have received a yplot report that the xwin driver segfaults under particular circumstances whether built on top of plplot-5.0.4 or plplot-latest-cvs. This is on a solaris box using the native compiler to build both yplot and plplot. This user apparently employed the -xCC option of the native solaris compiler to get around the c++-style commentary issues in plplot. I believe there is an excellent chance the problem is some subtle gcc-ism in the xwin driver (both in 5.0.4 and cvs HEAD) that the native solaris compiler is misinterpreting. After all, the yorick (yplot) front end has a quite simple and clean interface to c code (much less baggage than in the python case), and this guy (who is quite reliable by the way) apparently gets good results with the postscript drivers for exactly the same yplot commands that segfault for the xwin driver. Below, I have given this guy's words about the yplot code fragments that bomb for him and work for him. I cannot pursue this further because I have no access to a solaris box with X on it. (The compile farm boxes at sourceforge don't give access to X headers.) But if anybody else is interested, I think the first step would be to attempt to replicate the problem using the obvious C equivalent of the yplot commands below using the native solaris compiler with -xCC option. If the problem is found, then the next step would be to see if it disappears if you use the gcc compiler under solaris. Alan email: ir...@be... phone: 250-727-2902 FAX: 250-721-7715 snail-mail: Dr. Alan W. Irwin Department of Physics and Astronomy, University of Victoria, P.O. Box 3055, Victoria, British Columbia, Canada, V8W 3P6 __________________________ Linux-powered astrophysics __________________________ ************************** ---------- Forwarded message ---------- Date: Sun, 21 Oct 2001 10:38:12 +0530 (IST) From: V.V.Pipin <vp...@ii...> To: Alan W. Irwin <ir...@be...> Subject: Re: [Plplot-general] compiling yplot on the SunOS ....Besides this big success with installation yplot on the Sun mashine I found that not all of plplot routines work correctly there. Certainly there is a problem to put plot on xwin drive with combination (only!, ps-drive and others work well) plinit; pladv,0; plstick,1,1,1,1,4.,0.,2,0.; plwind,0,1,0,1; Though there was no problem to put plot on xwin with this plinit; pladv,0; plenv,0,1,0,1, 0, 0; In the first case I have Enter device number or keyword: 1 ERROR (plinit) Segmentation violation interrupt (SIGSEGV) LINE: 61 FILE: /home/vpip/yorick/share/yorick/1.5/i0/yplot.i yorick: quitting on error in batch mode. The ps drive work well in this case, as I noted before. ************************** |