From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199612032117.WAA00396@alpha.franken.de> Date: Tue, 3 Dec 1996 22:17:38 +0100 (CET) From: Thomas Bogendoerfer Subject: Re: mlockall() still causes 100 % oops in 2.0.27 In-Reply-To: <9612031351.ZM28527@fabsoft2.zarm.uni-bremen.de> > maybe it's easier to produce the oops: this is the source, compileable > under redhat-4.0. ok, I run your program with 2.0.26, it generates following oops: Dec 3 21:37:34 alpha kernel: Unable to handle kernel paging request at virtual address 0000015555720000 Dec 3 21:37:34 alpha kernel: test-panic(1166): Oops 0 Dec 3 21:37:34 alpha kernel: pc = [] ps = 0000 Dec 3 21:37:34 alpha kernel: rp = [] sp = fffffc0000b33ea0 Dec 3 21:37:34 alpha kernel: r0=0 r1=1 r2=93 r3=ffffffffffffffd7 Dec 3 21:37:34 alpha kernel: r8=300000000 Dec 3 21:37:34 alpha kernel: r16=fffffc0000dbc628 r17=15555720000 r18=155557720 00 r19=2070 Dec 3 21:37:34 alpha kernel: r20=0 r21=0 r22=8 r23=155556f7f9c Dec 3 21:37:34 alpha kernel: r24=fffffc00003116a8 r25=107 r26=fffffc0000330050 r27=fffffc00003300b0 Dec 3 21:37:34 alpha kernel: r28=1 r29=fffffc0000465c88 r30=fffffc0000b33ea0 Dec 3 21:37:34 alpha kernel: Code: 47ff041f 47ff041f 47ff041f <2c2d0000> 482d 00c1 48271721 48271781 21ad2000 41ae03a1 The faulting code is: 0xfffffc000032fc40 : 2c2d0000 ldq_u t0,0(s4) 0xfffffc000032fc44 : 482d00c1 extbl t0,s4,t0 0xfffffc000032fc48 : 48271721 sll t0,0x38,t0 0xfffffc000032fc4c : 48271781 sra t0,0x38,t0 0xfffffc000032fc50 : 21ad2000 lda s4,8192(s4) 0xfffffc000032fc54 : 41ae03a1 cmpult s4,s5,t0 0xfffffc000032fc58 : f43ffff9 bne t0,0xfffffc000032fc40 0xfffffc000032fc5c : a75e0000 ldq ra,0(sp) 0xfffffc000032fc60 : a53e0008 ldq s0,8(sp) Which in C looks like (this is in mm/mlock.c line 128): while (start < end) { char c = get_user((char *) start); __asm__ __volatile__("": :"r" (c)); start += PAGE_SIZE; } The memory map of the faulting program looks like: alpha:/proc/340# cat maps 000000011fffe000-0000000120000000 rwxp 0000000000000000 00:00 0 0000000120000000-0000000120002000 r-xp 0000000000000000 08:05 18392 0000000120100000-0000000120102000 rwxp 0000000000000000 08:05 18392 0000015555556000-0000015555570000 r-xp 0000000000000000 08:01 19432 0000015555570000-0000015555572000 r--p 0000000000000000 08:01 15467 000001555566e000-0000015555672000 rwxp 0000000000018000 08:01 19432 0000015555672000-0000015555720000 r-xp 0000000000000000 08:01 19433 0000015555720000-0000015555772000 ---p 00000000000ae000 08:01 19433 0000015555772000-0000015555828000 rwxp 0000000000000000 08:01 19433 0000015555828000-0000015555860000 rwxp 0000000000000000 00:00 0 alpha:/proc/340# ls -i /lib | grep 19433 19433 libc-1.93.so* Hope this helps someone. Thomas. PS: Linking the program with -static, doesn't produce a oops, so it seems related to shared libraries. -- 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>] -- 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