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
Linux chel 2.6.18-5-vserver-686 #1 SMP Thu Aug 30 04:29:47 UTC 2007 i686 

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){

        exit 77



Home | Main Index | Thread Index | Old Index