Re: Segmentation fault [./scripts/mkdep & ./drivers/sound/configure scripts]

Larry M. Augustin (lma@varesearch.com)
Sat, 7 Jun 1997 15:17:32 -0700


This sounds like a problem with GNU expr that shows up in
scripts/Configure and scripts/Menuconfig. A call to expr was changed
(in 2.0.29 I believe) that tickles a bug in older expr releases.

Older Slackware (3.0?) and Red Hat (3.0.3) releases have GNU expr
version 1.12. It core dumps with the new expr calls in Configure and
Menuconfig.

To make things worse, GNU expr 1.15 changed the syntax so you can't
write a regexp that works with both 1.12 and 1.15 or newer.

I have patches at
ftp://ftp.varesearch.com/pub/kernel/linux2.0.30-gcc2.7.2-5 that fix
this. Look for Configure.patch.gz and Menuconfig.patch.gz. The
patches work by first testing expr to see which syntax it supports,
and then using one of two different regexps depending on what the expr
on your system supports.

Upgrading to a newer (1.15 or greater) expr release is another
alternative.

Larry

Larry Augustin Tel: +1.415.934.3666
VA Research, Inc. Fax: +1.415.964.7668
1235 Pear Ave., Suite 109 Email: lma@varesearch.com
Mountain View, CA 94043 Web: http://www.varesearch.com

>From owner-linux-kernel-outgoing@vger.rutgers.edu Sat Jun 7 14:31:23 1997
>Received: from miriam.fuller.edu (miriam.fuller.edu [206.1.27.4]) by ns1.varesearch.com (8.7.4/8.7.3) with SMTP id OAA28067; Sat, 7 Jun 1997 14:31:22 -0700
>Received: from i-m-f.org [208.205.20.18] (root)
> by miriam.fuller.edu with esmtp (Exim 1.625 #1)
> id 0waSob-0004AJ-00 (Debian); Sat, 7 Jun 1997 14:14:25 -0700
>Received: from root@vger.rutgers.edu (port 9329 [128.6.190.2]) by i-m-f.org with ESMTP id <387610-25806>; Sat, 7 Jun 1997 14:12:47 +0000
>Received: by vger.rutgers.edu id <970876-1107>; Sat, 7 Jun 1997 17:03:28 -0400
>Received: from elara.glo.be ([206.48.176.15]) by vger.rutgers.edu with ESMTP id <971358-1110>; Sat, 7 Jun 1997 17:03:12 -0400
>Received: from CS-GateWay (LaLa@p8-03.z03.glo.be [206.48.186.227])
> by elara.glo.be (8.8.5/8.8.5) with SMTP id XAA03774
> for <linux-kernel@vger.rutgers.edu>; Sat, 7 Jun 1997 23:04:11 +0200
>Received: by CS-GateWay with Microsoft Mail
> id <01BC7396.DF17D160@CS-GateWay>; Sat, 7 Jun 1997 23:02:28 +0200
>Message-ID: <01BC7396.DF17D160@CS-GateWay>
>From: "RyliX [IC]" <RyliX@Glo.Be>
>To: "'linux-kernel@vger.rutgers.edu'" <linux-kernel@vger.rutgers.edu>
>Subject: Segmentation fault [./scripts/mkdep & ./drivers/sound/configure scripts]
>Date: Sat, 7 Jun 1997 23:02:27 +0200
>MIME-Version: 1.0
>Content-Type: text/plain; charset="us-ascii"
>Content-Transfer-Encoding: 7bit
>Sender: owner-linux-kernel@vger.rutgers.edu
>Precedence: bulk
>Status: R
>
>
>Hy,
>
>I have a problem compiling the Linux kernel with SlackWare 3.2
>When I do 'make config' it goes fine till the soundblaster configuration
>and it exits with
>an error [139].
>When I execute the configure script in the drivers/sound dir I get a segmentation fault error
>The same happend with the mkdep script ... so I can't compile the kernel !!
>It's kernel version 2.0.29, but with kernel 2.1.35 I have
>the same problem.
>Everything worked fine though with the previous SlackWare
>release ...
>Why is this?
>
>
>
>
>Information required
>----------------------
>
>CMOS/BIOS: Manufacturer: Asus
> Date: August 1996
> Version: #401A0-0103
>CPU: Pentium Pro [686]
>CPU SPEED: 200 mhz
>CPU Manufacturer: Intel
>L2 Cache: 256K
>SYSTEM RAM: 32MB
>BUS: ISA EISA PCI
>
>HARD DRIVE INTERFACE: SCSI
>CONTROLLER TYPE: Adaptec AHA2940 Ultra-Wide
>HARD DRIVES: Quantum Atlas 2GB Ultra-Wide
>CDROM DRIVES: Mitsume 12x ATAPI
>
>OTHER CARDS: EtherNet IRQ:2/9, I/O:260, NE2000 Generic, ISA
> Sound Blaster 64 IRQ:5 I/O:220, Creative, EISA
> Modem 33.6 IRQ:3, COM:4, TRON, ISA
>
>Linux Developer Resource: April 1997
>-----------------------------------------------------------
>