* Re: segfault with latest glibc-rpms
1998-06-30 0:10 segfault with latest glibc-rpms Markus Dickebohm
@ 1998-06-30 2:14 ` Michal Jaegermann
1998-06-30 6:52 ` Markus Dickebohm
1 sibling, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1998-06-30 2:14 UTC (permalink / raw)
To: axp-list; +Cc: M.Dickebohm
>
> 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'*<WG_=KV/'GBN2B<_@WH#?#/C]!,I_C1K<S1@X0D0N#VS)
M8A!3D#,>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^7/Q-BQU78=W<2R0M].5Y:5HY)FZ8RE39]92XUFV4N;<EOR-1I]IOM
M#9E:K6/C&`[HHNF$?SR0$$P-_._&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