[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] typeof1.awk causes segfault when run through the debugger
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] typeof1.awk causes segfault when run through the debugger |
Date: |
Fri, 26 Jun 2015 11:28:25 +0300 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
This is fixed and pushed. I'm adding it as a test case now.
Thanks,
Arnold
> Date: Sun, 21 Jun 2015 18:58:08 +0200
> From: Hermann Peifer <address@hidden>
> To: address@hidden, address@hidden
> Subject: Re: [bug-gawk] typeof1.awk causes segfault when run through the
> debugger
>
> On 2015-06-21 16:39, address@hidden wrote:
> > Hi.
> >
> > Very nice catch. I have started looking into this. The debugger
> > doesn't understand typed regexes but I think that can be fixed.
> >
>
> Thanks for looking into the issue. In the same context: below is what
> happens if the variable is first defined as number, then used as regex.
>
> Hermann
>
> $ cat test.awk
> BEGIN { x = 0; x = @/[a-z]/; x = "" }
> $
> $ printf "w x \n r \n n \n n" | awk -D -f test.awk
> Watchpoint 1: x
> Starting program:
> Stopping in BEGIN ...
> Watchpoint 1: x
> Old value: untyped variable
> New value: 0
> main() at `test.awk':1
> 1 BEGIN { x = 0; x = @/[a-z]/; x = "" }
> Watchpoint 1: x
> Old value: 0
> New value: ?? flags MALLOC
> main() at `test.awk':1
> 1 BEGIN { x = 0; x = @/[a-z]/; x = "" }
> Program exited normally with exit value: 0