From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 30387 invoked from network); 26 Mar 1998 23:06:24 -0000 Received: from rachael.franken.de (193.175.24.38) by mail2.redhat.com with SMTP; 26 Mar 1998 23:06:24 -0000 Received: from hub-fue by rachael.franken.de via rmail with uucp id for redhat.com!axp-list; Fri, 27 Mar 1998 00:06:21 +0100 (MET) (Smail-3.2 1996-Jul-4 #4 built DST-Sep-8) Received: by hub-fue.franken.de (Smail3.1.29.1 #35) id m0yILiw-002OoOC; Fri, 27 Mar 98 00:06 MET Received: (from tsbogend@localhost) by alpha.franken.de (8.8.7/8.8.5) id XAA01992; Thu, 26 Mar 1998 23:58:29 +0100 Message-ID: <19980326235829.13639@alpha.franken.de> Date: Thu, 26 Mar 1998 23:58:29 +0100 From: Thomas Bogendoerfer To: Ralph Gillen Cc: axp-list@redhat.com Subject: Re: Adventures with xcdroast on Linux/Alpha References: <199803250930.KAA09350@protium.theochem.uni-duesseldorf.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.85 In-Reply-To: <199803250930.KAA09350@protium.theochem.uni-duesseldorf.de>; from Ralph Gillen on Wed, Mar 25, 1998 at 10:30:45AM +0100 On Wed, Mar 25, 1998 at 10:30:45AM +0100, Ralph Gillen wrote: > So, I recompiled my kernel (2.0.30, RH5.0) with this change, compiled > cdrecord-1.6a11 (and cdrecord-1.6a12), and everything I get from cdrecord is a > crash when calling it. > > Please, could somebody (Thomas?) help me and give me some more information on > which kernel, libc etc. version you use? Iīm fighting with this for two weeks > now and I really donīt like the idea to put my CDR into a PC 8-( you have three options to solve your problem:-) 1. Upgrade to a newer kernel 2.0.32 or 2.0.33 will do the trick. 2. Uncomment the mprotect() call in cdrecord 3. Use the patch below (taken from patch-2.0.31). I also had to upgrade the NCR driver, because my JVC CDR didn't work with version 1.12 (included in < 2.0.31). Thomas. diff -u --recursive --new-file v2.0.30/linux/mm/mlock.c linux/mm/mlock.c --- v2.0.30/linux/mm/mlock.c Wed Sep 11 07:57:19 1996 +++ linux/mm/mlock.c Wed Oct 15 15:58:46 1997 @@ -124,9 +124,9 @@ pages = -pages; vma->vm_mm->locked_vm += pages; - if (newflags & VM_LOCKED) + if ((newflags & VM_LOCKED) && (newflags & VM_READ)) while (start < end) { - char c = get_user((char *) start); + int c = get_user((int *) start); __asm__ __volatile__("": :"r" (c)); start += PAGE_SIZE; } -- See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too ;-) [Linus Torvalds in <4rikft$7g5@linux.cs.Helsinki.FI>]