bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Segfault on function crashing argument


From: Seb
Subject: Re: Segfault on function crashing argument
Date: Thu, 18 Feb 2010 20:04:22 +0100

Le Wed, 17 Feb 2010 23:23:37 +0200
Aharon Robbins <address@hidden> a écrit:

Hi,

[...]
 
> This is a bug. Thank you for reporting it.  The patch below fixes it.

Thank you very much for this fast response! :)

I've tested the patch, it has effectively fixed the bug in the posted example,
but the application I'm working on still complained. Further investigation shows
that the patch is effiscient in the BEGIN context but not in the common rules.

I attached a new crash-test script, here are the results I get:

$ echo foo | gawk -f debug.awk - 1
 <BEGIN CONTEXT> true(1, crash()) => crash properly.

$ echo foo | gawk -f debug.awk  - 
 <RULE CONTEXT> true(1, crash()) => do not crash properly.
 gawk: debug.awk:5: (FILENAME=- FNR=1) fatal error: internal error: segfault
 Abandon


++
Seb.

Attachment: debug.awk
Description: Binary data


reply via email to

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