Segfault with mawk

Bug #1074404 reported by Sander Kleywegt on 2012-11-02
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
mawk (Debian)
New
Unknown
mawk (Ubuntu)
Medium
Unassigned

Bug Description

release: ubuntu 12.04.1 LTS
mawk version: 1.3.3-17
Got a segfault with: echo "x" | awk "/x/ { print \"(`cat test`)\"; next; } { print; }" -

'test' file attached

removing a few chars from the test files resolves the issue

Sander Kleywegt (jf-qandbr-ry) wrote :
Thomas Dickey (dickey-his) wrote :

I can reproduce that (with the Ubuntu package).
my version does not show this defect.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mawk (Ubuntu):
status: New → Confirmed

Also affects me, Ubuntu 12.10. same mawk version.

Mantas Kriaučiūnas (mantas) wrote :

mawk in Ubuntu and Debian is 18 years, see LP bug #1332114
I think this bug should be marked as duplicate of bug #1332114
Many bugs of Mawk are fixed in a new upstream versions 1.3.4-2010nnnn-2015nnnn, but the Debian maintainer does not want to update for an obscure reason.
We need to push here: http://bugs.debian.org/554167

ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
CasperVersion: 1.365
CurrentDesktop: Unity
Dependencies:
 gcc-5-base 5.2.1-22ubuntu2
 libc6 2.21-0ubuntu4
 libgcc1 1:5.2.1-22ubuntu2
DistroRelease: Ubuntu 15.10
LiveMediaBuild: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
Package: mawk 1.3.3-17ubuntu2
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=lt_LT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
Tags: wily
Uname: Linux 4.2.0-16-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

tags: added: apport-collected wily

apport information

Changed in mawk (Debian):
status: Unknown → New

Because mawk is not POSIX compliant, cannot be updated safely without great risk of breaking things.

Changed in mawk (Ubuntu):
importance: Undecided → Medium
Thomas Dickey (dickey-his) wrote :

Actually, a specific example would be useful and constructive information.
Your comment is neither.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.