[297] in arla-drinkers

home help back first fref pref prev next nref lref last post

Re: seg fault on file close, arla-0.12 and linux 2.1.122

daemon@ATHENA.MIT.EDU (Assar Westerlund)
Thu Oct 1 17:02:12 1998

From owner-arla-drinkers@stacken.kth.se Thu Oct 01 21:02:11 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 20984 invoked from network); 1 Oct 1998 21:02:10 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 1 Oct 1998 21:02:10 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id WAA15140
	for arla-drinkers-list; Thu, 1 Oct 1998 22:56:22 +0200 (MET DST)
Received: from assaris.sics.se (assaris.sics.se [193.10.66.108])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id WAA15136
	for <arla-drinkers@stacken.kth.se>; Thu, 1 Oct 1998 22:56:18 +0200 (MET DST)
Received: (from assar@localhost) by assaris.sics.se (8.8.5/8.7.3) id WAA11063; Thu, 1 Oct 1998 22:56:34 +0200 (MET DST)
To: Dave Morrison <dave@bnl.gov>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: seg fault on file close, arla-0.12 and linux 2.1.122
References: <3613A7B6.20132FCE@bnl.gov>
Mime-Version: 1.0 (generated by tm-edit 7.68)
Content-Type: multipart/mixed;
 boundary="Multipart_Thu_Oct__1_22:56:33_1998-1"
Content-Transfer-Encoding: 7bit
From: Assar Westerlund <assar@sics.se>
Date: 01 Oct 1998 22:56:33 +0200
In-Reply-To: Dave Morrison's message of "Thu, 01 Oct 1998 12:03:02 -0400"
Message-ID: <5l67e4vw5a.fsf@assaris.sics.se>
Lines: 46
X-Mailer: Gnus v5.5/Emacs 19.34
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

--Multipart_Thu_Oct__1_22:56:33_1998-1
Content-Type: text/plain; charset=US-ASCII

Dave Morrison <dave@bnl.gov> writes:
> close(3 <unfinished ...>
> +++ killed by SIGSEGV +++

That's most likely caused by the autoconf test for flush failing.
Apply the appended patch, do `autoreconf -f', and do a new build.

/assar

--Multipart_Thu_Oct__1_22:56:33_1998-1
Content-Type: text/plain; charset=US-ASCII

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/arla/configure.in,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -w -u -w -r1.165 -r1.166
--- configure.in	1998/09/29 23:15:26	1.165
+++ configure.in	1998/09/30 18:32:19	1.166
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script
 dnl This requires autoconf 2.12
-AC_REVISION($Revision: 1.165 $)dnl
+AC_REVISION($Revision: 1.166 $)dnl
 AC_PREREQ(2.12)
 AC_INIT(arlad/arla.c)
 AC_CONFIG_HEADER(include/config.h)
@@ -734,10 +734,10 @@
 
 AC_HAVE_KERNEL_STRUCT_FIELD([
 #include <linux/fs.h>
-typedef int (*foo)(struct file *);
+typedef int (*flush_type)(struct file *);
 ],
 file_operations,
-foo,
+flush_type,
 flush)
 
 AC_STRUCT_SOCKADDR_HAS_SA_LEN

--Multipart_Thu_Oct__1_22:56:33_1998-1--

home help back first fref pref prev next nref lref last post