[email protected]
[Top] [All Lists]

Bug#173664: marked as forwarded (mawk crashes)

Subject: Bug#173664: marked as forwarded mawk crashes
From: Debian Bug Tracking System
Date: Mon, 01 Mar 2010 18:57:06 +0000
Your message dated Mon, 1 Mar 2010 12:54:18 -0600
with message-id <[email protected]>
has caused the   report #173664,
regarding mawk crashes
to be marked as having been forwarded to the upstream software

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]

173664: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=173664
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Subject: Re: mawk crashes
From: Jonathan Nieder
Date: Mon, 1 Mar 2010 12:54:18 -0600
tags 163664 - fixed-upstream

Hi Aleksey and Thomas,

Aleksey Cheusov wrote:

> mawk crashes if the script contains long strings or regular expressions.
> The following is a stack:
> #0  0x0804da9d in collect_string () at scan.c:985
> #1  0x0804d27c in yylex () at scan.c:651
> #2  0x0804978f in yyparse () at y.tab.c:1408
> #3  0x080496bb in parse () at parse.y:1363
> #4  0x0804de4e in main (argc=3, argv=0xbffff174) at main.c:63
> #5  0x400627ee in __libc_start_main () from /lib/libc.so.6
> Look at this limit
> sizes.h:83 #define  MIN_SPRINTF    400 

Thanks for the report.  This is still a problem with the latest
upstream version:

; # 640 aâs
; letters="aaaaaaaaaa"
; letters="$letters$letters$letters$letters"
; letters="$letters$letters$letters$letters"
; letters="$letters$letters$letters$letters"
; mawk 'BEGIN {print "$letters$letters";}'
Segmentation fault

That is on i386.  You might need double the length on a system with
64-bit pointers.

This is not fixed by the patch in http://bugs.debian.org/391051 but
could be fixed by something similar.  As with that bug, I think the
check should be <= SPRINTF_SZ - whatever.

Thought you might like to know.


--- End Message ---
<Prev in Thread] Current Thread [Next in Thread>
  • Bug#173664: marked as forwarded (mawk crashes), Debian Bug Tracking System <=