[Top][All Lists]

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

Re: [bug-gawk] `exit' statement issue

From: Manuel Collado
Subject: Re: [bug-gawk] `exit' statement issue
Date: Wed, 29 May 2013 14:05:18 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0

El 28/05/2013 21:37, Aharon Robbins escribió:

Since your script runs only on Windoew, I cannot test it on Linux,
perhaps Eli will try.

I've run the code on Windows XP with gawk-4.1.0 from ezwinports. It prints some stuff and ends with (long line, may be wrapped):

gawk: _main.gwk:2152: fatal: unwind_stack: unexpected type `Node_var_array'
Program exited normally with exit value: 2

The debugger shows that the last executed statements, still in the BEGIN rule, are a call:

    _fatal("out of UID")


    func _fatal(t,d, A) {
        if ( _ERRLOG_FF ) {
            A["TYPE"]="FATAL"; A["TEXT"]=t
        if ( !d ) exit

I.e., a function that expects an array as a third argument is called with just one argument, and forces an exit before returning. This is more or less consistent with the given error message.

I've attempted to reproduce the fatal error with a minimal sample code, without success. Everything I tested worked OK.

Hope this helps. Regards,
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado

reply via email to

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