bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] crash at awk command


From: Deepesh Aggarwal
Subject: [bug-gawk] crash at awk command
Date: Mon, 18 May 2015 12:48:39 +0530

Hi Experts,

I tried to print the column of a nonexistence  file using awk command and found that this command is crashing.


awk '{print $NF}'  temp
ll temp
ls: cannot access temp: No such file or directory


Please see the snippet 

-----------------------------------------------------------------------------------------------------------------------------

*** glibc detected *** awk: free(): invalid pointer: 0x00000000006541a0 ***
======= Backtrace: =========
/lib64/libc.so.6[0x32d8076166]
awk[0x421e3a]
awk[0x421f2d]
awk[0x422233]
awk(do_input+0x17)[0x425a17]
awk(main+0xd9b)[0x42756b]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x32d801ed1d]
awk[0x40613a]
======= Memory map: ========
00400000-00451000 r-xp 00000000 00:6b 3653874                            /grid/common/pkgsData/gawk-v3.1.5/Linux/RHEL4.0-1H2006-x86_64/bin/gawk
00650000-00652000 rw-p 00050000 00:6b 3653874                            /grid/common/pkgsData/gawk-v3.1.5/Linux/RHEL4.0-1H2006-x86_64/bin/gawk
00652000-00659000 rw-p 00000000 00:00 0
024b0000-024d1000 rw-p 00000000 00:00 0                                  [heap]
32d7800000-32d7820000 r-xp 00000000 08:03 823674                         /lib64/ld-2.12.so
32d7a1f000-32d7a20000 r--p 0001f000 08:03 823674                         /lib64/ld-2.12.so
32d7a20000-32d7a21000 rw-p 00020000 08:03 823674                         /lib64/ld-2.12.so
32d7a21000-32d7a22000 rw-p 00000000 00:00 0
32d7c00000-32d7c83000 r-xp 00000000 08:03 823676                         /lib64/libm-2.12.so
32d7c83000-32d7e82000 ---p 00083000 08:03 823676                         /lib64/libm-2.12.so
32d7e82000-32d7e83000 r--p 00082000 08:03 823676                         /lib64/libm-2.12.so
32d7e83000-32d7e84000 rw-p 00083000 08:03 823676                         /lib64/libm-2.12.so
32d8000000-32d818b000 r-xp 00000000 08:03 823675                         /lib64/libc-2.12.so
32d818b000-32d838a000 ---p 0018b000 08:03 823675                         /lib64/libc-2.12.so
32d838a000-32d838e000 r--p 0018a000 08:03 823675                         /lib64/libc-2.12.so
32d838e000-32d838f000 rw-p 0018e000 08:03 823675                         /lib64/libc-2.12.so
32d838f000-32d8394000 rw-p 00000000 00:00 0
32d8400000-32d8402000 r-xp 00000000 08:03 823680                         /lib64/libdl-2.12.so
32d8402000-32d8602000 ---p 00002000 08:03 823680                         /lib64/libdl-2.12.so
32d8602000-32d8603000 r--p 00002000 08:03 823680                         /lib64/libdl-2.12.so
32d8603000-32d8604000 rw-p 00003000 08:03 823680                         /lib64/libdl-2.12.so
32dd800000-32dd816000 r-xp 00000000 08:03 823683                         /lib64/libgcc_s-4.4.7-20120601.so.1
32dd816000-32dda15000 ---p 00016000 08:03 823683                         /lib64/libgcc_s-4.4.7-20120601.so.1
32dda15000-32dda16000 rw-p 00015000 08:03 823683                         /lib64/libgcc_s-4.4.7-20120601.so.1
2b27c3910000-2b27c3911000 rw-p 00000000 00:00 0
2b27c3969000-2b27c396c000 rw-p 00000000 00:00 0
2b27c396c000-2b27c97fd000 r--p 00000000 08:03 919240                     /usr/lib/locale/locale-archive
2b27c97fd000-2b27c9804000 r--s 00000000 08:03 919496                     /usr/lib64/gconv/gconv-modules.cache
2b27c9804000-2b27c9805000 rw-p 00000000 00:00 0
7fff895af000-7fff895c6000 rw-p 00000000 00:00 0                          [stack]
7fff895ff000-7fff89600000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Abort (core dumped)

------------------------------------------------------------------------------------------------------------------------

GNU Awk 3.1.5
Copyright (C) 1989, 1991-2005 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

--------------------------------------------------------------------------------------------------------------------------------

Instead of crashing, it should report some kind of ERROR message.

Thanks
Linux User


reply via email to

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