Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 01:07:23 -0500
From:      "Sean O'Connell" <sean@stat.Duke.EDU>
To:        FreeBSD emulation <freebsd-emulation@FreeBSD.ORG>
Subject:   Re: Matlab-5.3 vs FreeBSD
Message-ID:  <20000322010723.F9584@stat.Duke.EDU>
In-Reply-To: <20000320174654.L7618@stat.Duke.EDU>; from sean@stat.Duke.EDU on Mon, Mar 20, 2000 at 05:46:54PM -0500
References:  <20000320174654.L7618@stat.Duke.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
I had previously written
> 
> I was curious if anyone has managed to get the Matlab helpdesk
> function to work under emulation without creating /compat/linux/tmp
> directory.  I know this to not be a "good thing", but neither is 
> having beaucoup users asking why the help facility doesn't work :)
> 
> Does Matlab 5.3.1 solve this at all?  This feature works just fine
> under Matlab 5.2.
> 
> Russell Murphy brought this up in an eamil in early June of 1999,
> but I haven't heard anything of it since then.

Hi-

This is a follow-up to the situation:

1) upon further review, both Matlab 5.2 and 5.3 fail in the same
   way with linux_base-6.1 and 4.0 circa the RELEASE

2) both matlab binaries have

   /tmp/MLsystem%ld 

   hardcoded into them.  The error is 

>> helpdesk
To learn how to configure your Web browser type 'help docopt'
sh: /tmp/MLsystem23714: Permission denied

   if /compat/linux/tmp does not exist.  creating it certainly
   solves the problem, but could lead to confusion over the
   meaning of /tmp.

It would seem that the path lookup/mapping is failing here.  I
have tried this w/ and without

   #! /compat/linux/bin/sh

in both the matlab script and the matlabdoc script.  It made no
difference.

Any further ideas?

A quick look through a ktrace under linux_kdump shows that it
is /compat/linux/bin/sh (bash) returning the error.

Portion where the matlab bin is doing it's thing

 23714 matlab   CALL  getpid
 23714 matlab   RET   getpid 23714/0x5ca2
 23714 matlab   CALL  linux_open(0x28cc1c50,0x241,0x1b6)
 23714 matlab   NAMI  "/compat/linux/tmp"
 23714 matlab   NAMI  "/tmp/MLsystem23714"
 23714 matlab   RET   linux_open 4
 23714 matlab   CALL  linux_newfstat(0x4,0xbfbf87f0)
 23714 matlab   RET   linux_newfstat 0
 23714 matlab   CALL  linux_mmap(0xbfbf87ac)
 23714 matlab   RET   linux_mmap 684974080/0x28d3e000
 23714 matlab   CALL  write(0x4,0x28d3e000,0x62)
 23714 matlab   GIO   fd 4 wrote 98 bytes
       "#! /usr/local/bin/tcsh
        sh -c 'netscape  /usr/local/Matlab5/help/helpdesk.html > /dev/null 2>&\
        1 &'
       "
 23714 matlab   RET   write 98/0x62
 23714 matlab   CALL  close(0x4)
 23714 matlab   RET   close 0
 23714 matlab   CALL  munmap(0x28d3e000,0x2000)
 23714 matlab   RET   munmap 0
 23714 matlab   CALL  linux_chmod(0x28cc1c50,0x1c0)
 23714 matlab   NAMI  "/compat/linux/tmp/MLsystem23714"
 23714 matlab   NAMI  "/tmp/MLsystem23714"

Later on when it execs sh

 23897 bash     CALL  linux_execve(0x80a8ce8,0x80a8488,0x80add40)
 23897 bash     NAMI  "/compat/linux/tmp/MLsystem23714"
 23897 bash     NAMI  "/tmp/MLsystem23714"
 23897 bash     RET   linux_execve -1 errno 13 Permission denied
 23897 bash     CALL  linux_newstat(0x80a8ce8,0xbfbfef58)
 23897 bash     NAMI  "/compat/linux/tmp/MLsystem23714"
 23897 bash     NAMI  "/tmp/MLsystem23714"
 23897 bash     RET   linux_newstat 0
 23897 bash     CALL  linux_newfstat(0x2,0xbfbfe770)
 23897 bash     RET   linux_newfstat 0
 23897 bash     CALL  linux_mmap(0xbfbfe7c0)
 23897 bash     RET   linux_mmap 671809536/0x280b0000
 23897 bash     CALL  linux_ioctl(0x2,0x5401 ,0xbfbfe758)
 23897 bash     RET   linux_ioctl 0
 23897 bash     CALL  write(0x2,0x280b0000,0x2a)
 23897 bash     GIO   fd 2 wrote 42 bytes
       "sh: /tmp/MLsystem23714: Permission denied
       "

 
-----------------------------------------------------------------------
Sean O'Connell                                Email: sean@stat.Duke.EDU
Institute of Statistics and Decision Sciences Phone: (919) 684-5419
Duke University                               Fax:   (919) 684-8594


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000322010723.F9584>