Subject: Re: kern/32769 (Linux emulation doesn't support mmap with MAP_NORESERVE)
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Brian de Alwis <bsd@cs.ubc.ca>
List: netbsd-bugs
Date: 12/16/2006 00:45:02
The following reply was made to PR kern/32769; it has been noted by GNATS.

From: Brian de Alwis <bsd@cs.ubc.ca>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/32769 (Linux emulation doesn't support mmap with MAP_NORESERVE)
Date: Fri, 15 Dec 2006 18:42:41 -0600

 > Unfortunately I've since deleted JRockit, and BEA has since issued
 > a new version of JRockit.  And every binary included in this new
 > version dumps core.  ktruss doesn't show anything obvious.
 
 To further investigate why the JRockit 1.5.0_06 binaries were
 SIGSEGVing, I tried installing a SuSE 10.0 version of gdb to get
 a trace or find out something more obvious.  But the binaries are
 stripped.  ktruss shows:
 
  21194      1 java     old_mmap(0xbfbfb600)        = -1146957824
  21194      1 java     close(0x3)                  = 0
  21194      1 java     mprotect(0xbb793000, 0x23e000, 0x3) = 0
  21194      1 java     mprotect(0xbb793000, 0x23e000, 0x5) = 0
  21194      1 java     getpid()                    = 21194
  21194      1 java     SIGSEGV SIG_DFL
 
 Their dlls seem to be found:
 
     $ ldd-linux bin/java
         libpthread.so.0 => /lib/libpthread.so.0 (0xbbb91000)
         libm.so.6 => /lib/libm.so.6 (0xbbb6b000)
         libdl.so.2 => /lib/libdl.so.2 (0xbbb66000)
         libc.so.6 => /lib/libc.so.6 (0xbba45000)
         /lib/ld-linux.so.2 (0xbbbe9000)
 
 In case it helps, all the binaries are listed as being for GNU/Linux 2.2.5:
 
     $ file bin/java
     bin/java: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
 
 And if it would help, I can mail a copy of one of the binaries.
 Or the JRockit distribution can be downloaded from:
 
     http://download2.bea.com/pub/jrockit/50/jrockit-R26.4.0-jdk1.5.0_06-linux-ia32.bin
 
 -- 
   Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
       "Amusement to an observing mind is study." - Benjamin Disraeli