[gnu.emacs.help] Problems with GNU Emacs on ISC rel 2.2.1

lele@idea.sublink.org (Lele Gaifax as idea's SysAdm) (05/27/91)

I'm trying to get GNU Emacs working correctly on a Interactive Unix
3.2 rel 2.2.1, using the job control feature.
Everything is running ok, and when I hit ^Z it stops correctly
returning me to the shell (bash 1.08 of course ;-)). But when I enter
the "fg" command, it core dumps, telling me "Segmentation fault". I
tried almost everything...

I'm using (of course again!) gcc 1.39 with "-posix" option: looking at
how gcc behaves with this option, I also initialized STARTFILES with
"pre-crt0.o /lib/crtp0.o". I tried crtp1.o too, but then "temacs" told
me "POSIX not supported"!!!

As a secondary question, what's the diffs beetween these two C startup
files (crtp0 and crtp1)??

I analyzed the core file with gdb, and it seems to me that when Emacs
reenter from ^Z, some variables get corrupted; eg, the first few lines
of the gdb "bt" command are:
#0 0xa4af in move_cursor (row=88161763, col=0) ...
#1 ...    in reset_sys_modes()
#2 ...    in fatal_error_signal (sig=11)
#3 ...    in _sigreturn()
#4 ...    in Fsignal (sig=21183740, data=88292276)
#5 ...    in memory_full ()
#6 ...    in xmalloc (size=88161764)

and so on. I was wondering about those large numbers...

I've modified s-386ix.h in the following manner:

#undef NOMULTIPLEJOBS
#define HAVE_PTYS
#define SYSV_PTYS
#define USG_JOBCTRL
#define HAVE_SOCKETS

A friends of mine told me to disable HAVE_SOCKETS, but the same
problem appeared...

Hints?
Thanx a lot, and my apologies for the cross-posting, but I do not
receive (yet... i hope ;-) gnu.*
-- 
    <<<   lele gaifax-the 1st sublinker in TN | lele@idea.sublink.org   >>>
    Idea Cooperativa Informatica Scrl - via Prati 16, Rovereto (TN) - ITALY
         Tel: +39-463-438538  Fax: +39-464-438998 (ONLY 8am-10pm MET)