bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] gawk: testext.awk:14: fatal error: internal error


From: Hermann Peifer
Subject: Re: [bug-gawk] gawk: testext.awk:14: fatal error: internal error
Date: Thu, 22 Aug 2013 18:21:03 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

On 2013-08-22 10:15, Aharon Robbins wrote:
Hi.

The below fatal error comes with commit 7d19cbd "Changes to ENVIRON
reflect into the environment."

I guess that the issue is Mac-related. I am here on Mac OS X Lion 10.7.5

This (obviously) does not reproduce on my GNU/Linux system. Can you
please send a stack trace?  Steps:

        ulimit -c unlimited     # enable core dumps
        cd gawk-source-dir
        make clean
        vi Makefile     # remove -O or -O[0-9] from compile flags
        make
        run test program, generate core dump
        gdb ./gawk core
        (gdb) where     # produce stack trace
        (gdb) quit


Here you are. I hope I got it right. Hermann

$ ggdb ./gawk
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
(...)
Reading symbols from /Users/peifer/local/src/gawk/gawk...done.

(gdb) run 'BEGIN{ENVIRON["test"]++}'
Starting program: /Users/peifer/local/src/gawk/gawk 'BEGIN{ENVIRON["test"]++}'

Program received signal SIGSEGV, Segmentation fault.
0x00007fff89532f0c in setenv () from /usr/lib/system/libsystem_c.dylib

(gdb) where
#0  0x00007fff89532f0c in setenv () from /usr/lib/system/libsystem_c.dylib
#1 0x00000001000a7442 in env_store (symbol=0x10081dff8, subs=0x10081df48) at str_array.c:798 #2 0x000000010005494b in r_interpret (code=0x100301b50) at /Users/peifer/local/src/gawk//interpret.h:751
#3  0x0000000100076606 in main (argc=2, argv=0x7fff5fbff808) at main.c:729
(gdb) quit




reply via email to

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