[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[50 character or so descriptive subject here (for reference)]
From: |
Markus Schwarzenberg |
Subject: |
[50 character or so descriptive subject here (for reference)] |
Date: |
Tue, 17 Apr 2001 08:57:01 +0200 (MET DST) |
Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.7
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc'
-DCONF_OSTYPE='solaris2.7' -DCONF_MACHTYPE='sparc-sun-solaris2.7'
-DCONF_VENDOR='sun' -DSHELL -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -I. -I./include -I./lib
-I/home/digital/schwarzenberg/sol57/include -O2
uname output: SunOS sund32 5.7 Generic_106541-07 sun4u sparc SUNW,Ultra-5_10
Machine Type: sparc-sun-solaris2.7
Bash Version: 2.05
Patch Level: 0
Release Status: release
Description:
bash segfaults on the first command execution
Repeat-By:
Fix:
Tracking the error with a debugger and comparing 2.04 and 2.05
version of stringlib.c I think there it's a simple copy & paste
bug in stringlib.c: lines 222,223 come frome a part of code above
and should most probably be simply removed. Here's the diff:
*** stringlib.c Wed Feb 14 23:00:42 2001
--- stringlib-fixed.c Tue Apr 17 08:50:55 2001
***************
*** 219,227 ****
if (*p == '\\' && p[1] == c)
p++;
!
! RESIZE_MALLOCED_BUFFER (ret, ind, 2, rlen, rlen);
! r = ret + ind; /* in case reallocated */
*r++ = *p++;
}
*r = '\0';
--- 219,225 ----
if (*p == '\\' && p[1] == c)
p++;
!
*r++ = *p++;
}
*r = '\0';
Markus Schwarzenberg
- [50 character or so descriptive subject here (for reference)],
Markus Schwarzenberg <=