X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Mon, 01 Apr 2002 18:53:37 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Yong Kwang Goh" Message-Id: <9003-Mon01Apr2002185337+0300-eliz@is.elta.co.il> X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: (gohyongkwang@hotmail.com) Subject: Re: Printing out regex matches References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Goh, Yong Kwang" > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 1 Apr 2002 17:36:12 +0800 > > It gives the following output: > > D:\TEMP>tyregex > tyregex> = string helloworld <= some command to set variables. > tyregex> = pattern world > tyregex> ! > helloworld <= prints out string for diagnostic purpose. > world <= prints out pattern for diagnostic purpose. > OK <= indicates regex compilation OK > OK <= indicates regex execution OK i.e. pattern matches string. > so=132617, eo=0 <= value of so and eo. Printed by PrintMatch. `so' is obviously bogus, but it's impossible to say anything intelligent without seeing a more complete code example. Preferably, throw together a short but complete test program which shows the problem, and then post the entire source. > Exiting due to signal SIGSEGV <= Program starts to bomb out. > General Protection Fault at eip=00008220 > eax=0144ff00 ebx=000130cb ecx=01450000 edx=fffdf8fb esi=0144ff04 > edi=000131c0 > ebp=0144fef0 esp=0144fee8 program=D:\TEMP\TYREGEX.EXE > cs: sel=00af base=829e0000 limit=0144ffff > ds: sel=00b7 base=829e0000 limit=0144ffff > es: sel=00b7 base=829e0000 limit=0144ffff > fs: sel=0087 base=0000ffa0 limit=0000ffff > gs: sel=00c7 base=00000000 limit=ffffffff > ss: sel=00b7 base=829e0000 limit=0144ffff This indicates that you have a very old version of the library. I suggest to upgrade to djdev203.zip, perhaps you are fighting a bug that was already fixed.