From: Jan Wielemaker (jan@swi.psy.uva.nl)
Date: 07/29/93


From: jan@swi.psy.uva.nl (Jan Wielemaker)
Subject: [FIX] Crash of latest XPCE/SWI-Prolog
Date: Thu, 29 Jul 1993 08:43:59 GMT

I've been reported that the latest distribution of XPCE/SWI-Prolog
crashes (using 99pl10 kernel and recent libraries) with the following
message:

> 1 ?- manpce.
> [PCE fatal: @pce/pce: Signal trapped: Segmentation violation
> in: M @660480/dialog ->initialise]
> [10] M @660480/dialog ->initialise
> [ 9] new(dialog)
> [ 8] M @prolog/host ->call: man_manual:send_initialise_man_manual, @ma
nual/man_manual, @default/constant

I've had this problem too. After some hacking around it turned out
the problem is in an imcompatible uname() call from libX11.a. The
fixed .o file for this library is at swi.psy.uva.nl: pub/linux/X11/XlibInt.o
A complete library (Xfree-1.2 with the above patched) is in
pub/linux/lib/libX11.a.

If you have this problem too, please upgrade your library using the
above, remove xpce/pl/i386-linux-99pl10/xpce.base and reinstall.
Also make sure xpce/Pce is properly copied to /usr/lib/X11/app-defaults/Pce.

        Regards --- Jan

P.s. [If library maitainers read this: for linking with dynamic
         libraries I need to know where the private global data of these
         libraires resides, so I can create a saved state from a
         dynamically linked executable]