bug-gawk
[Top][All Lists]
Advanced

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

Re: fixtype: Assertion `n->type == Node_val' failed


From: Daniel Pouzzner
Subject: Re: fixtype: Assertion `n->type == Node_val' failed
Date: Sat, 25 Feb 2023 14:56:53 -0600
User-agent: Evolution 3.46.4

You can see the offending whitespace in resplendent color with `git show
da883f8177`.

In da883f8177,

   diff --git a/builtin.c b/builtin.c
   index 43ae6afc..4dd22e27 100644
   --- a/builtin.c
   +++ b/builtin.c
   @@ -4324,6 +4324,21 @@ do_typeof(int nargs)
                           }
                   }
                   break;
   +       case Node_var:
   +               /*
   +                * This can happen when a Node_elem_new gets turned into a 
Node_var.
   
Stray 0x20 space at start of last line above.

   diff --git a/test/elemnew2.awk b/test/elemnew2.awk
   new file mode 100644
   index 00000000..4f765032
   --- /dev/null
   +++ b/test/elemnew2.awk
   @@ -0,0 +1,15 @@
   +#!/usr/bin/gawk -f
   +   
   +function f(x) {
   +       return x;
   +}
   +       
   +BEGIN {
   +       print "a[b] is " (a["b"] ? "true" : "false");
   +
   +       f(a["b"]);
   +
   +       print "a[b] is " (a["b"] ? "true" : "false");
   +       
   +       print a["b"];
   +}
   
Stray whitespace on 3 of the empty lines above.


On Sat, 2023-02-25 at 12:42 -0700, arnold@skeeve.com wrote:
> Hi.
> 
> Daniel Pouzzner <douzzer@mega.nu> wrote:
> 
> > All clean now, built from head of master with and without sanitizers
> > (address,pointer-subtract,leak,undefined,float-cast-overflow,float-divide-by-
> > zero,bounds-strict).
> 
> Great.
> 
> > Btw some stray whitespace snuck in in da883f8177.
> 
> Can you be specific as to which file(s)?
> 
> Thanks,
> 
> Arnold




reply via email to

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