[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Segmentation violation in AKCL1-249



	
	I am running AKCL-1-249 on a SGI 4d/20, trying to load some
	code for driving the graphics library which I got from
	Eric Raible at NASA-AMES.  The session goes like this:
	
		(load "gl-make")
		Loading gl-make.lsp
		Finished loading gl-make.lsp
		T
		
		>(gl::make)
		
		>>> Skipping libc.a since it already exists...
		Compiling gl-funcs.lsp.
		Loading gl-macros.lsp
		Finished loading gl-macros.lsp
		End of Pass 1.  
		End of Pass 2.  
		OPTIMIZE levels: Safety=3, Space=3, Speed=3
		Finished compiling gl-funcs.lsp.
		>>> Resolving graphics calls
		ld:
		Warning: identity: multiply defined
		ld:
		Warning: identity: multiply defined
		Segmentation violation: c stack ok:signalling error
		Error: Caught fatal error [memory may be damaged]
		Error signalled by SYSTEM:FASLINK.
	
	Is this a problem with kcl?  What should I do?  Thanks.


A little more checking indicates that segmentation_catcher in
akcl/c/main.c is the routine which printed the error message.
It is an interrupt handler which catches the SIGSEGV signal.
This is the routine:

	segmentation_catcher()
	{int x;
	 if (&x < cs_limit)
	        cs_overflow();
	 else 
	  {printf("Segmentation violation: c stack ok:signalling error");
	        }
	  error("segmentation violation");
	}

Note1: the parameter list is not correct (not necessarily a problem)
Note2: the variable x appears to be undefined.

Can anyone help?  Thanks.

Pat Gatewood
SETD@PAXRV-NES.ARPA
(301) 863-4157