AWK: SIGSEGV

Deepak Jangid deepak.jangid at elitecore.com
Tue Aug 30 11:59:55 UTC 2011


Hello Guys,

I received SIGSEGV in awk,
looked around a bit
found some issue,
asking for help from AWK OWNER

At,   awk.c:2626
what if next_input_file() returns NULL, then the following code is gonna 
get SIGSEGV for sure.


} else {
	if (!iF)
		iF = next_input_file();	// if returns NULL
	rsm = iF;
}

if (!rsm->F) {				// then SIGSEGV here
	setvar_i(intvar[ERRNO], errno);
	setvar_i(res, -1);
	break;
}

And there are other points to get SIGSEGV if I fix just the above.

I am looking into it.


Be :-),
Deepak Jangid


More information about the busybox mailing list