NetBSD-Bugs archive

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

bin/37889: nawk segfaults in case of infinite loop



>Number:         37889
>Category:       bin
>Synopsis:       nawk segfaults in case of infinite loop
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 28 14:20:00 +0000 2008
>Originator:     Aleksey Cheusov
>Release:        linux
>Organization:
home
>Environment:
Linux chel 2.6.18-5-vserver-686 #1 SMP Thu Aug 30 04:29:47 UTC 2007 i686 
GNU/Linux

>Description:
By mistake I created an awk script with unfinite loop
and nawk segfaults running it. I've found this under Linux but
I think it will segfault on any platform including NetBSD.

nawk is from NetBSD CVS 20071026 (wip/netbsd-awk package).

#!/usr/pkg/bin/nbawk -f

function rec2 (num){
        rec2(num+1)
}

BEGIN {
        rec2(0)
        exit 77
}

>How-To-Repeat:

>Fix:




Home | Main Index | Thread Index | Old Index