bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: gawk 3.1.4 core dump


From: Aharon Robbins
Subject: Re: gawk 3.1.4 core dump
Date: Fri, 12 Aug 2005 16:36:24 +0300

Greetings. Re this:

> Date: Fri, 12 Aug 2005 08:10:47 -0500
> From: Ed Morton <address@hidden>
> Subject: Re: gawk 3.1.4 core dump
> To: Aharon Robbins <address@hidden>
> Cc: address@hidden
>
> Arnold - I don't know how it was compiled, it's part of a package 
> maintained by a tools group at work. I'll try to twist their arm to move 
> to gawk 3.1.5 as you suggest but that could take some time. I do get the 
> same result with gawk 3.1.4 under Cygwin on Windows XP so I suspect it 
> isn't a compilation problem:
>
> $ cat t3
> text /
> $ gawk -vRS=" /( |$)\n" '1' t3
> gawk: cmd. line:1: fatal error: internal error
> Aborted (core dumped)
> $ gawk --version | head -1
> GNU Awk 3.1.4
> $ uname -a
> CYGWIN_NT-5.1 your-wg5n33dutv 1.5.12(0.116/4/2) 2004-11-10 08:34 i686 
> unknown unknown Cygwin
>
> Regards,
>
>     Ed.

Here is a band-aid.  I am not sure if this is absolutely the right fix
or not.  But at least it'll let you keep going.

Arnold

--- regexec.c.orig      2005-05-11 18:28:17.000000000 +0300
+++ regexec.c   2005-08-12 16:33:42.922904815 +0300
@@ -1229,6 +1229,8 @@
   dest_node = -1;
   if (IS_EPSILON_NODE (dfa->nodes[node].type))
     {
+      if (mctx->state_log[*pidx] == NULL)
+       return -1;
       re_node_set *cur_nodes = &mctx->state_log[*pidx]->nodes;
       re_node_set *edests = &dfa->edests[node];
       int dest_node;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]