O Matlab bloqueia na inicialização e não mostra nada em uma máquina (toto) enquanto roda bem em outra máquina (titi), que, a propósito, tem a mesma configuração.
Ambas as máquinas rodam Debian:
uname -a
fornece em ambas as máquinas o seguinte:
Linux (toto|titi).hostname 3.16.0-4-amd64 #1 SMP Debian 3.16.48-1 x86_64 GNU/Linux
Eu tentei investigar o problema usando strace
. Na verdade, o Matlab bloqueia após uma terceira chamada bem-sucedida para open
/ read
no arquivo /proc/cpuinfo
(in toto).
A seguir, a saída de strace
em cada máquina.
Saída de strace
on toto (blocos Matlab na inicialização):
strace -f -o matlab.toto.strace opt / MATLAB_2017a / bin / glnxa64 / MATLAB
dá isso (2ª e 3ª chamadas para abrir / ler estão aparecendo):
7580 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
7580 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = 3
7580 read(3, "7ELF7670 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
7670 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = 3
7670 read(3, "7ELFuname -a
Linux (toto|titi).hostname 3.16.0-4-amd64 #1 SMP Debian 3.16.48-1 x86_64 GNU/Linux
7580 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
7580 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = 3
7580 read(3, "7ELF7670 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
7670 open("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so", O_RDONLY|O_CLOEXEC) = 3
7670 read(3, "7ELF%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%04%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
7670 fstat(3, {st_mode=S_IFREG|0555, st_size=1385830, ...}) = 0
7670 mmap(NULL, 3412192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbbd64ec000
7670 mprotect(0x7fbbd65f5000, 2097152, PROT_NONE) = 0
7670 mmap(0x7fbbd67f5000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x109000) = 0x7fbbd67f5000
7670 mmap(0x7fbbd6800000, 184544, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbbd6800000
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 sched_getaffinity(0, 128, {ff, 0, 0, 0, 0, 0, 0, 0}) = 64
7670 brk(0xec4000) = 0xec4000
7670 brk(0xee5000) = 0xee5000
7670 brk(0xf06000) = 0xf06000
7670 open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
7670 read(3, "0-7\n", 8192) = 4
7670 close(3) = 0
7670 rt_sigprocmask(SIG_BLOCK, [INT TSTP WINCH], NULL, 8) = 0
7670 stat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7670 lstat("/users", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
7670 lstat("/users/hamidi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64", {st_mode=S_IFDIR|0755, st_size=86016, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7670 open("/users/hamidi/opt/MATLAB_2017a/VersionInfo.xml", O_RDONLY) = 3
7670 read(3, "<?xml version=\"1.0\" encoding=\"UT"..., 8191) = 300
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 uname({sys="Linux", node="titi.lipn.univ-paris13.fr", ...}) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 sched_getaffinity(0, 128, {ff, 0, 0, 0, 0, 0, 0, 0}) = 64
%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%04%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
7580 fstat(3, {st_mode=S_IFREG|0555, st_size=1385830, ...}) = 0
7580 mmap(NULL, 3412192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc91cba7000
7580 mprotect(0x7fc91ccb0000, 2097152, PROT_NONE) = 0
7580 mmap(0x7fc91ceb0000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x109000) = 0x7fc91ceb0000
7580 mmap(0x7fc91cebb000, 184544, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc91cebb000
7580 close(3) = 0
7580 open("/proc/cpuinfo", O_RDONLY) = 3
7580 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 3129
7580 read(3, "processor\t: 3\nvendor_id\t: Genuin"..., 8191) = 1043
7580 read(3, "", 8191) = 0
7580 close(3) = 0
7580 gettimeofday({1522673292, 492915}, NULL) = 0
7580 gettimeofday({1522673292, 492915}, NULL) = 0
7580 open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
7580 read(3, "0-3\n", 8192) = 4
7580 close(3) = 0
7580 rt_sigprocmask(SIG_BLOCK, [INT TSTP WINCH], NULL, 8) = 0
7580 stat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7580 lstat("/users", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
7580 lstat("/users/hamidi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64", {st_mode=S_IFDIR|0755, st_size=86016, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7580 open("/users/hamidi/opt/MATLAB_2017a/VersionInfo.xml", O_RDONLY) = 3
7580 read(3, "<?xml version=\"1.0\" encoding=\"UT"..., 8191) = 300
7580 read(3, "", 8191) = 0
7580 close(3) = 0
7580 uname({sys="Linux", node="bailly.lipn.univ-paris13.fr", ...}) = 0
7580 open("/proc/cpuinfo", O_RDONLY) = 3
7580 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 3129
7580 read(3, "processor\t: 3\nvendor_id\t: Genuin"..., 8191) = 1043
7580 read(3, "", 8191) = 0
7580 close(3) = 0
%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%04%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
7670 fstat(3, {st_mode=S_IFREG|0555, st_size=1385830, ...}) = 0
7670 mmap(NULL, 3412192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fbbd64ec000
7670 mprotect(0x7fbbd65f5000, 2097152, PROT_NONE) = 0
7670 mmap(0x7fbbd67f5000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x109000) = 0x7fbbd67f5000
7670 mmap(0x7fbbd6800000, 184544, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fbbd6800000
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 sched_getaffinity(0, 128, {ff, 0, 0, 0, 0, 0, 0, 0}) = 64
7670 brk(0xec4000) = 0xec4000
7670 brk(0xee5000) = 0xee5000
7670 brk(0xf06000) = 0xf06000
7670 open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
7670 read(3, "0-7\n", 8192) = 4
7670 close(3) = 0
7670 rt_sigprocmask(SIG_BLOCK, [INT TSTP WINCH], NULL, 8) = 0
7670 stat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7670 lstat("/users", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
7670 lstat("/users/hamidi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64", {st_mode=S_IFDIR|0755, st_size=86016, ...}) = 0
7670 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7670 open("/users/hamidi/opt/MATLAB_2017a/VersionInfo.xml", O_RDONLY) = 3
7670 read(3, "<?xml version=\"1.0\" encoding=\"UT"..., 8191) = 300
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 uname({sys="Linux", node="titi.lipn.univ-paris13.fr", ...}) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 open("/proc/cpuinfo", O_RDONLY) = 3
7670 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "processor\t: 4\nvendor_id\t: Genuin"..., 8191) = 4048
7670 read(3, "", 8191) = 0
7670 close(3) = 0
7670 sched_getaffinity(0, 128, {ff, 0, 0, 0, 0, 0, 0, 0}) = 64
%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%>%pre%%pre%%pre%%pre%04%pre%%pre%%pre%%pre%%pre%"..., 832) = 832
7580 fstat(3, {st_mode=S_IFREG|0555, st_size=1385830, ...}) = 0
7580 mmap(NULL, 3412192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fc91cba7000
7580 mprotect(0x7fc91ccb0000, 2097152, PROT_NONE) = 0
7580 mmap(0x7fc91ceb0000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x109000) = 0x7fc91ceb0000
7580 mmap(0x7fc91cebb000, 184544, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fc91cebb000
7580 close(3) = 0
7580 open("/proc/cpuinfo", O_RDONLY) = 3
7580 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 3129
7580 read(3, "processor\t: 3\nvendor_id\t: Genuin"..., 8191) = 1043
7580 read(3, "", 8191) = 0
7580 close(3) = 0
7580 gettimeofday({1522673292, 492915}, NULL) = 0
7580 gettimeofday({1522673292, 492915}, NULL) = 0
7580 open("/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3
7580 read(3, "0-3\n", 8192) = 4
7580 close(3) = 0
7580 rt_sigprocmask(SIG_BLOCK, [INT TSTP WINCH], NULL, 8) = 0
7580 stat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7580 lstat("/users", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
7580 lstat("/users/hamidi", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64", {st_mode=S_IFDIR|0755, st_size=86016, ...}) = 0
7580 lstat("/users/hamidi/opt/MATLAB_2017a/bin/glnxa64/libmwi18n.so", {st_mode=S_IFREG|0755, st_size=1379640, ...}) = 0
7580 open("/users/hamidi/opt/MATLAB_2017a/VersionInfo.xml", O_RDONLY) = 3
7580 read(3, "<?xml version=\"1.0\" encoding=\"UT"..., 8191) = 300
7580 read(3, "", 8191) = 0
7580 close(3) = 0
7580 uname({sys="Linux", node="bailly.lipn.univ-paris13.fr", ...}) = 0
7580 open("/proc/cpuinfo", O_RDONLY) = 3
7580 read(3, "processor\t: 0\nvendor_id\t: Genuin"..., 8191) = 3129
7580 read(3, "processor\t: 3\nvendor_id\t: Genuin"..., 8191) = 1043
7580 read(3, "", 8191) = 0
7580 close(3) = 0
Saída de strace
on titi (o Matlab funciona bem):
strace -f -o opção matlab.titi.strace / MATLAB_2017a / bin / glnxa64 / MATLAB
indica o seguinte (2ª, 3ª, 4ª e 5ª chamadas para abrir / ler estão aparecendo):
%pre%