This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Guile/regexp SIGSEGV problem on solaris 2.4


I have some really strange problems with guile, when I compile it
under PC solaris 2.4.

We have several version of solaris in the house, so the standard
procedure has been to compile on a 2.4 system, so that all system
could use the results. But with guile, I have big problems.

The manifestation of the problem is that if I evaluate:

        (apropos 'case)

guile goes into a tight infinite loop, doing stuff like:

	sigprocmask(SIG_UNBLOCK, 0x08046578, 0x00000000) = 0
	setcontext(0x080465B8)
	    Incurred fault #6, FLTBOUNDS  %pc = 0x8004B7A7
	      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000067
	    Received signal #11, SIGSEGV [caught]
	      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000067

The gdb stack trace has on top:

#0  <signal handler called>
#1  0xffffffff in ?? ()
#2  0x80044753 in scm_must_malloc (len=8, what=0x80081170 "regexp-exec")
    at gc.c:1409
#3  0x800737b9 in scm_regexp_exec (rx=134611968, str=134578472, start=9588, 
    flags=2) at regex-posix.c:242
#4  0x800470f1 in scm_gsubr_apply (args=10612) at gsubr.c:156
#5  0x8003ebea in scm_dapply (proc=134553856, arg1=134573016, args=134706424)
    at eval.c:2847


The above output was from a clean compile, but run a PC solaris 2.5.1
system, because the standard solaris 2.4 regexp library does not
work. The above test yields on the 2.4 system:

	(apropos 'case)
	ERROR: In procedure gsubr-apply in expression (make-regexp rgx):
	ERROR: '	a
	ABORT: (regular-expression-syntax)

If I link with the GNU rx 1.5 library, regexps do work under solaris
2.4, but I just get the above problem there as well.

If I compile on 2.5.1, with librx, I get the problem.

If I compile on 2.5.1, but without librx, everything seems to work.



I am using snapshot 19980331.

I have configured with

        ./configure --prefix=/usr/local

and compiled with

        egcs-2.90.23 980102 (egcs-1.0.1 release)


Does anybody have any ideas about what is wrong, or how to debug it,
as I am really stuck here.

---------------------------+--------------------------------------------------
Christian Lynbech          | Telebit Communications A/S                       
Fax:   +45 8628 8186       | Fabrik 11, DK-8260 Viby J
Phone: +45 8628 8177 + 28  | email: chl@tbit.dk --- URL: http://www.telebit.dk
---------------------------+--------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)