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

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

BUG


From: Vladimir Yackusha
Subject: BUG
Date: Mon, 29 Mar 2004 15:51:39 +0300 (EEST)


Hi.
I use Linux Slackware 9.1 with glibc-2.3.2, bash-2.05b, gawk-3.1.3.

While compiling kernel I'm receiving next error:
address@hidden:/usr/src/linux# make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.25/scripts/lxdialog'
make[1]: Leaving directory `/usr/src/linux-2.4.25/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/i386/config.in
Using defaults found in arch/i386/defconfig
Preparing scripts: functions, parsingscripts/Menuconfig: line 1433: 18073
Segmentation fault      awk "$1"
Awk died with error code 139. Giving up.

I made very simple script, which repeats the error.
This is the script:
address@hidden:~/crush# cat Menuconfig
#!/bin/sh
function callawk () {
awk "$1" || { echo "Awk died with error code $?. Giving up."; exit 1; }
}
function parser2()
{
callawk '
BEGIN {
        parser("'config.in'","MCmenu0","1")
}
function parser(ifile,menu,num) {
        if (num > 0) {
                system("sleep 10")
        }
        while (getline < ifile) {
                if ($1 == "source") {
                        parser($2,menu,"0")
                }
        }
}'
}
parser2
---
In result of running gawk with this script I received the same error:

address@hidden:~/crush# sh Menuconfig
Menuconfig: line 26: 18103 Segmentation fault      awk "$1"
Awk died with error code 139. Giving up.
---------
System call "system("sleep 10")" in function parser is made in order to attach
process gawk to gdb debugger.
---------
I executed gawk in debugger programm with command string:
address@hidden:~/crush# gdb /usr/bin/awk NUMBER_PID_GAWK

In result of running gawk by using debugger I received next messages:
Loaded symbols for /lib/ld-linux.so.2
0x400f1399 in waitpid () from /lib/libc.so.6
(gdb) s
Single stepping until exit from function waitpid,
which has no line number information.

0x40084b14 in do_system () from /lib/libc.so.6
(gdb)
Single stepping until exit from function do_system,
which has no line number information.
0x08057f1b in do_system ()
(gdb)
Single stepping until exit from function do_system,
which has no line number information.
0x08075aaf in r_tree_eval ()
(gdb)
Single stepping until exit from function r_tree_eval,
which has no line number information.
0x08075188 in interpret ()
(gdb)
Single stepping until exit from function interpret,
which has no line number information.
0x08076100 in r_tree_eval ()
(gdb)
Single stepping until exit from function r_tree_eval,
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x400652e4 in __dcigettext () from /lib/libc.so.6
(gdb)
Single stepping until exit from function __dcigettext,
which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0x400652e4 in __dcigettext () from /lib/libc.so.6
(gdb)
Single stepping until exit from function __dcigettext,
which has no line number information.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
The program is not being run.
(gdb)
---------
File config.in contains:
address@hidden:~/crush# cat config.in

asdasdasdasdasdasdasdd
source test/1.txt


address@hidden:~/crush#
---------
This is the test file(config.in) for repeating the error.

File 1.txt in directory "test" does not exist.

If file 1.txt is present in directory "test" this error does not appear.
File 1.txt may be either empty or not.

--
* WBR
Vladimir Yackusha

's/bob/v/g'

* VY15-UANIC    *|* uz.gov.ua
* VY11-RIPE     *|* uz.org.ua




reply via email to

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