From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <14237f8e339b8ab6b77d43623234acd0.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9611271212.ZM484@fabsoft2.zarm.uni-bremen.de> Date: Wed, 27 Nov 1996 12:12:54 +0100 From: Zarmfab Software Development Subject: 100 % reproduceable oops with 2.0.26-axp (mlockall) Trying to make cdwrite-2.0 a realtime program, i found that system call mlockall causes a 100 % reproduceable oops at my Avanti. The kernel is 2.0.26 with axp-diffs 2.0.21 This is the oops - producing program: #include #include #include #include #include #include #ifdef __alpha #define _syscall1(type,name,type1,arg1) \ type name(type1 arg1) \ { \ return syscall(__NR_##name, arg1); \ } _syscall1(int,mlockall,int,flags); #endif int main(int argc,char *argv[]) { if (mlockall( MCL_CURRENT )) perror("mlockall"); return 0; } this is the oops-message: Nov 27 11:59:17 fabserver1 kernel: Unable to handle kernel paging request at virtual address 0000015555720000 Nov 27 11:59:17 fabserver1 kernel: oops(283): Oops 0 Nov 27 11:59:17 fabserver1 kernel: pc = [] ps = 0000 Nov 27 11:59:17 fabserver1 kernel: rp = [] sp = fffffc00090fdea0 and this was told by gdb vmlinuz: (gdb) list *0xfffffc0000331cc0 0xfffffc0000331cc0 is in mlock_fixup (mlock.c:129). 124 pages = -pages; 125 vma->vm_mm->locked_vm += pages; 126 127 if (newflags & VM_LOCKED) 128 while (start < end) { 129 char c = get_user((char *) start); 130 __asm__ __volatile__("": :"r" (c)); 131 start += PAGE_SIZE; 132 } 133 } BTW, the same program runs without oops at my pentium under 2.0.26. I first doubted the axp-diffs-patch was responsible for the oops, but mlock.c isn't touched by the patch. -- Martin Cornelius, ZARMFAB software development, University of Bremen phone: 49-421-218-4807 FAX: 49-421-218-3889 email: fabsoft@zarm.uni-bremen.de paper-mail: Hochschulring / Am Fallturm, 28359 BREMEN, Germany -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com