Subject: Getting MATLAB to run, i386
To: None <netbsd-help@netbsd.org>
From: Ben S. <bliss22@nebulous.org>
List: netbsd-help
Date: 12/20/2000 16:31:28
I'm having a problem getting MATLAB running on netbsd
1.5/i386 -- it core dumps on startup.  I have the same
problem on a 1.5 beta kernel and a 1.5.1 alpha that i
just checked out today.

I'm using MATLAB version 5.3.0.10183 (R11) for linux,
and the linux libraries are 6.3, swiped from the suse
packages, but not in standard pkg locations.

The environment is working well enough for mcc (the
MATLAB-to-C generator) to run, contact the license manager,
and produce output.

Very soon after loading the libraries, it does:

   285 matlab   CALL  mprotect(0x8048000,0xc177c,0x5)
   285 matlab   RET   mprotect 0
   285 matlab   CALL  mprotect(0x48113000,0x9d9c,0x5)
   285 matlab   RET   mprotect 0
[several more mprotects]
   285 matlab   CALL  mprotect(0x4810a000,0x505c,0x5)
   285 matlab   RET   mprotect 0
   285 matlab   CALL  brk(0x81283d4)
   285 matlab   RET   brk 135431124/0x81283d4
   285 matlab   CALL  brk(0x8129000)
   285 matlab   RET   brk 135434240/0x8129000
   285 matlab   CALL  brk(0x812a000)
   285 matlab   RET   brk 135438336/0x812a000
   285 matlab   CALL  brk(0x812b000)
   285 matlab   RET   brk 135442432/0x812b000
   285 matlab   CALL  brk(0x812c000)
   285 matlab   RET   brk 135446528/0x812c000
   285 matlab   CALL  brk(0x812d000)
   285 matlab   RET   brk 135450624/0x812d000
   285 matlab   CALL  brk(0x812f000)
   285 matlab   RET   brk 135458816/0x812f000
   285 matlab   CALL  getpid
   285 matlab   RET   getpid 285/0x11d
   285 matlab   PSIG  SIGSEGV SIG_DFL
   285 matlab   NAMI  "matlab.core"

I've seen several references to MATLAB running under
emulation, so I'm hoping someone here can point me in
the right direction (any Athena people out there?).

Thanks,
Ben