[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
crash when starting static bash suitable for root shell on solaris x86 2
From: |
mlink |
Subject: |
crash when starting static bash suitable for root shell on solaris x86 2.8 |
Date: |
Mon, 20 Aug 2001 16:17:58 -0500 (CDT) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='i386-pc-solaris2.8'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -I. -I./include -I./lib
-I/usr/local/include -g -O2
uname output: SunOS julia 5.8 Generic_108529-07 i86pc i386 i86pc
Machine Type: i386-pc-solaris2.8
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
typing ./bash or ./bash --login causes a crash when bash is compiled static.
Program received signal SIGSEGV, Segmentation fault.
0x080ba44a in nss_search ()
(gdb) bt
#0 0x080ba44a in nss_search ()
#1 0x080b9141 in getpwuid_r ()
#2 0x080af970 in getpwuid ()
#3 0x08049dba in get_current_user_info () at shell.c:1430
#4 0x08049f07 in shell_initialize () at shell.c:1488
#5 0x0804884a in main (argc=1, argv=0x8047dd0, env=0x8047dd8) at shell.c:465
compiled like this:
./configure --enable-static-link
make STATIC_LD='-Wl,-Bstatic' LOCAL_LIBS='-Wl,-Bdynamic -Wl,-R/etc/lib -ldl
-Wl,-Bstatic'
tested with compilers: gcc-2.95.2, gcc-3.0, gcc-3.0.1 same problem occurs
across all compilers
Repeat-By:
Just run the shell again and again and again....
Fix:
Use a different OS :(
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- crash when starting static bash suitable for root shell on solaris x86 2.8,
mlink <=