Date: Thu, 9 Aug 2001 10:14:45 -0400 From: "Russell D. Murphy Jr." <rdmurphy@vt.edu> To: John E Hein <jhein@timing.com> Cc: freebsd-emulation@FreeBSD.ORG, Shiro Ikeda <shiro@brain.riken.go.jp> Subject: Re: can't quit matlab 12.1 under linux_base6.1 Message-ID: <15218.39637.311548.512594@localhost.econ.vt.edu> In-Reply-To: <15218.38651.258849.4333@brain.timing.com> References: <20001208.201621.55429972.shiro@brain.riken.go.jp> <15217.48827.763275.306777@brain.timing.com> <15218.35514.511382.285461@localhost.econ.vt.edu> <15218.38651.258849.4333@brain.timing.com>
next in thread | previous in thread | raw e-mail | index | archive | help
John-
According to John E Hein (August 9, 2001):
| Russell,
| What version of Matlab are you running? And when you say, "basic Matlab",
| I assume you mean everything but ! and unix()?
|
| >From the archives, it seems like R12 complains about /dev/ptmx, but I
| haven't seen any messages from anyone running R12.1
I'm running 12, not 12.1:
< M A T L A B >
Copyright 1984-2000 The MathWorks, Inc.
Version 6.0.0.88 Release 12
Sep 21 2000
And, yes, I mean, all but ! and unix() - but I haven't used it
heavily, so it's possible there are other sticking points.
| Note that when I 'ln -s /dev/null /dev/ptmx', I DO get the complaint
| about /dev/ptmx and not the 'ioctl not implemented' messages.
| And in this case (with the bogus /dev/ptmx), I cannot use matlab
| unix() or ! commands. And, yes, it *does* quit fine.
I haven't done that:
knock [newey-iv]% matlab &
[1] 11449
knock [newey-iv]% ??? MATLAB was unable to open the pseudo-tty master device /dev/ptmx.
The unix() and ! commands will not work in this MATLAB session. Other
commands which depend upon unix() and ! will also fail. Please check
with your system administrator and confirm that this device exists with
the proper permissions.
[1] Done matlab -glnx86
knock [newey-iv]% which matlab
matlab: aliased to matlab -glnx86
knock [newey-iv]% ls -l /dev | grep ptmx
knock [newey-iv]% ps waux | grep matlab
rdmurphy 11641 0.0 0.0 268 148 p1 R+ 10:05AM 0:00.00 grep matlab
| When I truss matlab R12.1 WITHOUT the faked /dev/ptmx sym link, it tries
| to open /dev/ptmx, fails, and then tries opening /dev/ptyp0 then 1 then...
|
| linux_open("/dev/ptmx",2,027757751270) ERR#2 'No such file or directory'
| linux_rt_sigaction(0x11,0xbfbfb500,0xbfbfb474,0x8) = 4 (0x4)
| linux_rt_sigprocmask(0x1,0xbfbfb690,0x0,0x8) = 4 (0x4)
| linux_open("/dev/ptyp0",2,0160) ERR#5 'Input/output error'
| linux_open("/dev/ptyp1",2,0160) ERR#5 'Input/output error'
| linux_open("/dev/ptyp2",2,0160) = 3 (0x3)
| linux_open("/dev/ttyp2",2,0160) = 3 (0x3)
|
| Perhaps Mathworks tried to implement some workaround in R12.1 for an OS
| that doesn't have Unix98 ptys?
|
| Anyway, I get no complaint about /dev/ptmx (this is still the scenario
| without the faked /dev/ptmx sym link) and unix() and ! commands from
| within matlab work fine. However, when I quit it hangs and leaves 3
| matlab processes around (1 is a zombie) that I have to kill from another
| shell (can't even Ctrl-Z to suspend the matlab).
|
| So there's a tradeoff:
| - make a bogus /dev/ptmx sym linked to /dev/null and lose unix() and
| ! functionality in matlab (and matlab whines about /dev/ptmx)
| - or run matlab R12.1 without the fake /dev/ptmx sym link, and you can't
| quit (and the linux emulator whines about unimplemented ioctls)
|
|
| To get a completely functioning matlab, it looks like we need to at
| least identify and fake, if not implement, the unimplemented ioctls.
|
| Has anyone heard talk of implementing unix98 ptys in FreeBSD or faking
| it somehow for linux emulation? There seems to be some discussion of
| doing it recently on the tech-kern NetBSD mailing list, but I don't see
| anything in archives of FreeBSD mailing lists.
|
| John Hein
I haven't heard of anything like that (but I'm not really likely to).
Russ M.
--
Russell D. Murphy
Department of Economics
Virginia Polytechnic Institute and State University
Blacksburg, Virginia 24061
(540) 231-4537
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?15218.39637.311548.512594>
