Subject: uvm_map panic with compat_osf1
To: NetBSD alpha <port-alpha@netbsd.org>
From: Nicolas Joly <njoly@pasteur.fr>
List: port-alpha
Date: 04/07/2004 18:44:38
Hi,

I just installed NetBSD -current on a PWS500au i recently got :

njoly@thanos [~]> uname -a
NetBSD thanos.sis.pasteur.fr 2.0C NetBSD 2.0C (GENERIC) #3: Wed Apr  7 17:50:19 CEST 2004  njoly@thanos.sis.pasteur.fr:/local/src/NetBSD/obj/alpha/sys/arch/alpha/compile/GENERIC alpha

Everything was fine ... But i got a uvm_map assertion panic while
trying OSF1 compat with the following simple code, compiled on an
another PWS500au running Compaq Tru64 v5.1A.

NB: the same program, if statically compiled on Tru64, works fine on
NetBSD.

njoly@medusa [tmp/dec]> uname -a
OSF1 medusa.sis.pasteur.fr V5.1 1885 alpha
njoly@medusa [tmp/dec]> cat hello.c 
#include <stdio.h>

int main(int argc, char **argv) {

  printf("Hello World.\n");

  return 0; }
njoly@medusa [tmp/dec]> cc -o hello hello.c 

Copied on NetBSD alpha ...

njoly@thanos [~]> uname -a
NetBSD thanos.sis.pasteur.fr 2.0C NetBSD 2.0C (GENERIC) #3: Wed Apr  7 17:50:19 CEST 2004  njoly@thanos.sis.pasteur.fr:/local/src/NetBSD/obj/alpha/sys/arch/alpha/compile/GENERIC alpha
njoly@thanos [tmp/osf1]> file hello 
hello: COFF format alpha executable paged dynamically linked not stripped - version 3.13-14
njoly@thanos [tmp/osf1]> ldd hello 
hello:
[panic here]

panic: kernel diagnostic assertion "size > 0" failed: file "/local/src/NetBSD/src/sys/uvm/uvm_map.c", line 738
Stopped in pid 478.1 (ldd) at   netbsd:cpu_Debugger+0x4:        ret     zero,(ra)
db> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x4
panic() at netbsd:panic+0x1f8
__assert() at netbsd:__assert+0x38
uvm_map() at netbsd:uvm_map+0x4b4
vmcmd_map_zero() at netbsd:vmcmd_map_zero+0x78
sys_execve() at netbsd:sys_execve+0x7bc
syscall_plain() at netbsd:syscall_plain+0xb4
XentSys() at netbsd:XentSys+0x5c
--- syscall (59) ---
--- user mode ---

Is this a known problem ?

Thanks in advance,
Regards.

-- 
Nicolas Joly

Biological Software and Databanks.
Institut Pasteur, Paris.