Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 1995 21:13:54 +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:  <199509091913.VAA00321@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.

Yes, vi. 
vi innshellvars
/SED
*boom* sig11.
 
Sed   is    failing   during   the   run   of     $inn/innshellvars   (from
inn1.4unoff2). I've  recompiled sed  with "-g"   and  here it goes.  I  was
editing  inndshellvars to replace /usr/bin/sed by  ./sed with a "/SED" when
"vi" sig11'ed.

228 [21:06] roberto@keltia:/tmp/sed> ./innshellvars 
Memory fault - core dumped
Memory fault - core dumped
229 [21:06] roberto@keltia:/tmp/sed> gdb ./sed sed.core
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...
Core was generated by `sed'.
Program terminated with signal 11, Segmentation fault.
#0  0x802db00 in end ()
(gdb) where
#0  0x802db00 in end ()
#1  0x802cece in end ()
#2  0x802cc00 in end ()
#3  0x802c283 in end ()
#4  0x2531 in compile_re (p=0x644d "", repp=0x10010) at compile.c:427
#5  0x20fe in compile_stream (link=0xf000) at compile.c:302
#6  0x166d in compile () at compile.c:134
#7  0x34d6 in main (argc=3, argv=0xefbfd4ec) at main.c:144
(gdb) frame 4
#4  0x2531 in compile_re (p=0x644d "", repp=0x10010) at compile.c:427
427             if (p && (eval = regcomp(*repp, re, 0)) != 0)
(gdb) list 420,430
420
421             p = compile_delimited(p, re);
422             if (p && strlen(re) == 0) {
423                     *repp = NULL;
424                     return (p);
425             }
426             *repp = xmalloc(sizeof(regex_t));
427             if (p && (eval = regcomp(*repp, re, 0)) != 0)
428                     err(COMPILE, "RE error: %s", strregerror(eval, *repp));
429             if (maxnsub < (*repp)->re_nsub)
430                     maxnsub = (*repp)->re_nsub;
(gdb) print p
$1 = 0x807c060 <Address 0x807c060 out of bounds>
(gdb) print repp
$2 = (regex_t **) 0xefbfcbe8
(gdb) print *repp
$3 = (regex_t *) 0xefbfcc79
(gdb) print **repp
$4 = {re_magic = 1563385435, re_nsub = 285221930, 
  re_endp = 0xa8000000 <Address 0xa8000000 out of bounds>, re_g = 0x9508074a}

Is the "Address XXXXXX out of bounds" expected or not ?
-- 
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?199509091913.VAA00321>