bug-bash
[Top][All Lists]
Advanced

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

mksignames segfaults on AIX


From: Timothy A. McDaniel
Subject: mksignames segfaults on AIX
Date: Sat, 21 Jul 2001 20:15:31 -0500 (CDT)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix4.3.3.0
Compiler: xlc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='aix4.3.3.0' -DCONF_MACHTYPE='powerpc-ibm-aix4.3.3.0' 
-DCONF_VENDOR='ibm' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/usr/local/include -g
uname output: AIX bdstbt14 3 4 00012A5F4C00
Machine Type: powerpc-ibm-aix4.3.3.0

Bash Version: 2.05
Patch Level: 0
Release Status: release

Description:
    On this AIX system, mksignames segfaults.  Running
    dbx shows that it was at line 90:

          rtmax = SIGRTMAX;
          signal_names[rtmax] = "SIGRTMAX";    <====

Repeat-By:
    Install the C for AIX compiler for Visual Age C 5.0.1
    Put /usr/vac/bin in PATH
    export CC=xlc
    ./configure --without-gnu-malloc
    make

Fix:
    The kludge I did was to alter line 35 from
        char *signal_names[2 * NSIG];
    to
        char *signal_names[1000];
    That's excessive.  However, you might look at the AIX 4.3
    comment -- the #if is clearly not being taken, or the
    segfaulting assignment would never happen.
    Worrying about "so much unused space" is, I think, out of
    place nowadays -- that's 4K of space -- so maybe the limit
    on signal_names just needs to be bumped up.



reply via email to

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