Well the same happens when using ssh or rsh or any variant of remote login. 
The environments are exactly the same when logged in locally or remote.

strace matlab hangs on the following statement:
bash-2.03$ strace matlab
execve("/usr/local/bin/matlab", ["matlab"], [/* 23 vars */]) = 0
brk(0)                                  = 0x80bb3ec
.......

<snip>

.......
read(4, 0xbfffdc0c, 32)                 = -1 EAGAIN (Resource temporarily 
unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
read(4, "\1\0:\1\0\0\0\0\1\0\0\0\2\0\0\0t\370\377\277\334\234*\10"..., 32) = 
32
write(4, "\217\16\2\0\0\0\0\0", 8)      = 8
read(4, 0xbfffdbc8, 32)                 = -1 EAGAIN (Resource temporarily 
unavailable)
select(5, [4], NULL, NULL, NULL)        = 1 (in [4])
read(4, "\1\370;\1\200\0\0\0\4\0\0\0 \0\0\0\0\20\0\0\0\0\0\0\0\0"..., 32) = 32
read(4, "#\0\0\0\4\0\0\0\1\0\0\0\10\0\0\0\10\0\0\0\10\0\0\0\0\0"..., 128) = 
128
rt_sigprocmask(SIG_SETMASK, NULL, [RT_0], 8) = 0
rt_sigsuspend([]

I have no idea what that means. Maybe one of you knows. Anyway, thanks for 
replying.

Pascal

On Tuesday 20 February 2001 17:46, Brian May wrote:
> >>>>> "Erik" == Erik Steffl <[EMAIL PROTECTED]> writes:
>
>     Erik> Pascal Hos wrote:
>     >> I just received my matlab R12 student version and I'm having
>     >> some difficulties getting it to work correctly on potato. When
>     >> I start it from an xterm the splash screen shows up and it then
>     >> the program hangs. The strange part is that if I su as myself
>     >> and then execute matlab, everything works just fine!? The same
>     >> problem occurs as root. What could be happening here?
>
> Try strace matlab?
>
>     Erik>   I suspect that program tries to figure out who's ruinning
>     Erik> it and does not succeed - perhaps it uses entry in utmp/wtmp
>     Erik> and xterm does not log entry there but su does. also check
>     Erik> the differences between environments (when you open xterm
>     Erik> and then when you su)
>
> Is Matlab still based on libc5?
>
> If so that might be a problem - the format of utmp/wtmp IIRC has
> changed from libc5 to libc6.
>
> (then again, if that was the case it shouldn't work with su...).

Reply via email to