From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29366 invoked from network); 30 Jun 1998 02:14:08 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 30 Jun 1998 02:14:08 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id UAA25604; Mon, 29 Jun 1998 20:14:04 -0600 From: Michal Jaegermann Message-Id: <199806300214.UAA25604@ellpspace.math.ualberta.ca> Subject: Re: segfault with latest glibc-rpms To: axp-list@redhat.com Date: Mon, 29 Jun 1998 20:14:03 -0600 (MDT) Cc: M.Dickebohm@Uni-Koeln.DE In-Reply-To: from "Markus Dickebohm" at Jun 30, 98 02:10:50 am Content-Type: text > > I tried to compile the latest gnuplot-beta sources in the last days > and although all betas including PL340 work well with a pristine RH5.0 > install, I can't manage to compile a working binary any more (with a > RH5.0+all updates or RH5.1 system). Really cannot tell what is going wrong on your system, but I just finished writing some report on that. In summary - it works for me (TM). The system I am using for that is RH5.0 with a long list of updates; I cannot tell if these are "all". In any case glibc is 2.0.7-13 and compiler used is gcc version egcs-2.90.29 980515 (egcs-1.0.3 release), a.k.a as 1.0.3a. Gnuplot sources are beta-PL347 and PL340 works for me equally well. Ok, here is what I just wrote: I looked at gnuplot-beta347. I found in it TWO "iffy" things. One is that in gplt_x11.c an unsigned long variable 'all' is initialized to 0xffffffff when (unsigned long)(-1L) was obviously meant. This is not the same thing on Alpha. The other, which I left alone, is that term/png.trm is using functions like png_read_init() and png_write_init() whereas libpng documentation states: "The old libpng functions png_read_init(), png_write_init(), png_info_init(), png_read_destroy(), and png_write_destory() have been moved to PNG_INTERNAL in version 0.95 to discourage their use. The preferred method of creating and initializing the libpng structures is via the png_create_read_struct(), png_create_write_struct(), and png_create_info_struct()..." This works for a time beeing, but it may stop some day. The only way to accomodate obsolete libraries around is probably to make 'configure' smarter and use new methods when available. Other than that I cleaned up mostly incorrect comments in order to cut down on a compiler noise or otherwise I could miss something really essential. I include my changes below. After that a compilation with '-Wall -O2 -g' flags produced a working binary using shared libraries like that: $ ldd ./gnuplot libpng.so.0 => /usr/lib/libpng.so.0 (0x0000015555558000) libz.so.1 => /usr/lib/libz.so.1 (0x000001555567c000) libm.so.6.1 => /lib/libm.so.6.1 (0x0000015555794000) libc.so.6.1 => /lib/libc.so.6.1 (0x00000155558c4000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000000000000000) I tried only with a default complement of terminals. At least running from a demo directory like this '../gnuplot all.dem' walks through all demos without any incidents and surprises. Demo files cause a number of arithmetic traps but this does not have any bad consequences apart of entries in log files (of course I have a kernel with floating poing fixes from Richard Henderson). If you have any examples which cause problems on your machine, beyond of what I tried, I would be interested to see them. > At first I assumed that a bug was introduced in the recent gnuplot > patchlevels, but now I tried to compile a relatively old version > (PL340) and the same happened (segfault). Where? Before you reached main()? > How can I debug the situation? By setting a breakpoint as early as possible and executing a code in pieces until you narrow down what is a causing the problem. Then you start stepping through the code watching very closely what possibly stomps on your stack; from what you describe this is what probably happens. Now, the good question is why I am not seeing something similar. Oh, I did not send any bug report to gnuplot people (things described above are bugs). If you are in contact please pass that to them. It would be interesting to know before that if my changes make any difference for you. Regards, Michal begin 644 gnuplot.diffs.gz M'XL(""H\F#4"`V=N=7!L;W0N9&EF9G,`S5EM<]LV$OYL_XJ]=*:19,HB]6)+ M\J2-XLB)6[]5=E*W=S<:BH0HQ!3!DJ`L-=/_?KL`*9&B[/HR]^$\B4@"NTM@ MGP>["]#ETRG4DPB\(`E](0]%Q+V&(P(IDNC0R9HW+?OU>OT)X;U+$<`@C,!J M@=7M6QW\!U:OU]T_.#@H6U+B/R4!-'LDWMZ(OWT+]6[+Z,*!^GW[=A_VH5'; M!ZA!+*/$D;"(Y'*PX)%DBT/H=;8KZ/8WH[7U`*VE+O,;HP+<&8V#\#GL8R5L8.7C*S6 M>-G(#KYA9-IV>6`TWK].E$O53\1"WW:8"Y,5O$[M;H8#'VX^?OHPA-<&Q(R! M`G\&E8^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