Date: Sat, 9 Sep 1995 21:43:30 +0200 (MET DST) From: Ollivier Robert <roberto@keltia.Freenix.FR> To: davidg@Root.COM Cc: freebsd-current@FreeBSD.ORG (FreeBSD Current Users' list) Subject: Re: sig 11 Message-ID: <199509091943.VAA01252@keltia.Freenix.FR> In-Reply-To: <199509091728.KAA04524@corbin.Root.COM> from "David Greenman" at Sep 9, 95 10:28:30 am
next in thread | previous in thread | raw e-mail | index | archive | help
It seems that David Greenman said:
> Let us know if you see any other programs dieing this way. Thanks.
Vi fails at the same place... I've recompiled with '-g', edited the same
file (innshellvars) and with "/SED" I got :
## =()<HISTORY=@<_PATH_HISTORY>@>()=
HISTORY=/usr/local/news/lib/history
/SED
Program received signal SIGSEGV, Segmentation fault.
0x80766b7 in regcomp.so.L479 ()
(gdb) where
#0 0x80766b7 in regcomp.so.L479 ()
#1 0x80c0027 in memcpy ()
#2 0xac54 in resetup (sp=0x44800, rep=0xefbfce28, dir=FORWARD, ptrn=0x46541 "SED",
epp=0xefbfce80, deltap=0xefbfce24, flagp=0xefbfcea0) at search.c:170
#3 0xafb2 in f_search (sp=0x44800, ep=0x4c080, fm=0xefbfcf10, rm=0xefbfcf18,
ptrn=0x46540 "/SED", eptrn=0xefbfce80, flagp=0xefbfcea0) at search.c:282
#4 0x28b7e in search (sp=0x44800, ep=0x4c080, vp=0xefbfcef0, ptrn=0x46540 "/SED",
len=4, flags=56, dir=FORWARD) at /var/tmp/tmp/vi/common/../vi/v_search.c:203
#5 0x28994 in v_searchf (sp=0x44800, ep=0x4c080, vp=0xefbfcef0)
at /var/tmp/tmp/vi/common/../vi/v_search.c:152
#6 0x2e42f in vi (sp=0x44800, ep=0x4c080) at /var/tmp/tmp/vi/common/../vi/vi.c:200
#7 0x32ec4 in svi_screen_edit (sp=0x44800, ep=0x4c080)
at /var/tmp/tmp/vi/common/../svi/svi_screen.c:225
#8 0x57ac in main (argc=2, argv=0xefbfd4b0) at main.c:435
Maybe a problem with shared lib mapping in conjonction with John's latest
optimizations in the VM code ? It only happens in the regcomp code so
far... I'm puzzled.
If nvi is static, no core dump. An incompatibility between the VM changes
and the way regcomp use data ?
GNU sed 2.05 does not have the sig11 problem, having its own regex functions
(rx). NVI uses the same regcomp as sed.
--
Ollivier ROBERT -=- The daemon is FREE! -=- roberto@keltia.frmug.fr.net
FreeBSD keltia.Freenix.FR 2.2-CURRENT #0: Sat Sep 9 17:49:09 MET DST 1995
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509091943.VAA01252>
