Gentoo Archives: gentoo-science

From: christoph irrenfried <c.irrenfried@×××.at>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] Mathematica issue
Date: Wed, 11 Feb 2015 07:11:48
Message-Id: 54DB00B0.7080105@gmx.at
In Reply to: Re: [gentoo-science] Mathematica issue by Andrew Savchenko
1 On 02/06/2015 12:24 AM, Andrew Savchenko wrote:
2 > 7) If anything above fails, there is one more step, an ultimate one.
3 > Run (assuming Mathematica command runs it):
4 >
5 > $ strace -ff Mathematica -o mathematica
6 > (install dev-util/strace if you don't have it)
7 >
8 > And look through all mathematica.$pid files. They will contain
9 > every system call. You will be able to see what files application
10 > tries to access, what network actions it tries to perform and so
11 > on. The answer will be there, but it will not be very easy to find.
12 >
13 > A good start will be to grep trough all file and socket access (or
14 > use -e filter of strace itself). Maybe it tries to load some
15 > library, or to run some tool and fails. Maybe required component is
16 > present on your system, but version is different from what is
17 > needed.
18 >
19 > 8) As a complementary to strace you may use dev-util/ltrace. ltrace
20 > will print you *each* library call made buy an application. Output
21 > data will be enormous, but will contain a very detail fingerprint
22 > of what application does. With some effort this should help to
23 > understand what is wrong.
24 Hi again. I had now some time and did the tracing with Strace:
25
26 I got heaps of output but I cant really figure out what it means:
27
28
29 Before i put in the license server:
30 /[pid 18439] futex(0xc6cc80, FUTEX_WAKE_PRIVATE, 1) = 0
31 [pid 18439] futex(0xc6bf74,
32 FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 5221, {1423637720,
33 118416000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
34 [pid 18439] futex(0xc6cc80, FUTEX_WAKE_PRIVATE, 1) = 0
35 [pid 18439] futex(0xc6bf74,
36 FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 5223, {1423637720,
37 138564000}, ffffffff <unfinished ...>
38 [pid 18578] <... poll resumed> ) = 0 (Timeout)
39 [pid 18573] <... poll resumed> ) = 0 (Timeout)
40 [pid 18578] poll([{fd=38, events=POLLIN}], 1, 0 <unfinished ...>
41 [pid 18573] poll([{fd=4, events=POLLIN}], 1, 0 <unfinished ...>
42 [pid 18578] <... poll resumed> ) = 0 (Timeout)
43 [pid 18573] <... poll resumed> ) = 0 (Timeout)
44 [pid 18578] flock(45, LOCK_EX <unfinished ...>
45 [pid 18573] flock(11, LOCK_EX <unfinished ...>
46 [pid 18578] <... flock resumed> ) = 0
47 [pid 18573] <... flock resumed> ) = 0
48 [pid 18578] flock(45, LOCK_UN <unfinished ...>
49 [pid 18573] flock(11, LOCK_UN <unfinished ...>
50 [pid 18578] <... flock resumed> ) = 0
51 [pid 18573] <... flock resumed> ) = 0
52 [pid 18578] poll([{fd=38, events=POLLIN}], 1, 50 <unfinished ...>
53 [pid 18573] poll([{fd=4, events=POLLIN}], 1, 50 <unfinished ...>/
54
55
56
57 When I put in the license server:
58 /[pid 18573] <... poll resumed> ) = 0 (Timeout)
59 [pid 18573] poll([{fd=4, events=POLLIN}], 1, 0) = 0 (Timeout)
60 [pid 18573] flock(11, LOCK_EX) = 0
61 [pid 18573] flock(11, LOCK_UN) = 0
62 [pid 18573] poll([{fd=4, events=POLLIN}], 1, 50 <unfinished ...>
63 [pid 18439] <... futex resumed> ) = -1 ETIMEDOUT (Connection timed
64 out)
65 [pid 18439] futex(0xc6cc80, FUTEX_WAKE_PRIVATE, 1) = 0
66 [pid 18439] futex(0xc6bf74,
67 FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 13547, {1423637805,
68 828488000}, ffffffff <unfinished ...>
69 /
70
71 When I quit the program:
72 /[pid 18428] poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
73 ([{fd=3, revents=POLLOUT}])
74 [pid 18428] writev(3, [{"<\0\2\0\0\0@\2.\0\2\0E\21@\2+\0\1\0", 20},
75 {NULL, 0}, {"", 0}], 3) = 20
76 [pid 18428] poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3,
77 revents=POLLIN}])
78 [pid 18428] recvmsg(3, {msg_name(0)=NULL,
79 msg_iov(1)=[{"\1\2!F\0\0\0\0\7\0\300\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
80 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
81 [pid 18428] recvmsg(3, 0x7fffb66d1d70, 0) = -1 EAGAIN (Resource
82 temporarily unavailable)
83 [pid 18428] recvmsg(3, 0x7fffb66d1d70, 0) = -1 EAGAIN (Resource
84 temporarily unavailable)
85 [pid 18428] poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
86 ([{fd=3, revents=POLLOUT}])
87 [pid 18428] writev(3,
88 [{"<\0\2\0\22\5@\2<\0\2\0\23\5@\2<\0\2\0\24\5@\2b\0\4\0\7\0\0\0", 32},
89 {"MIT-SHM", 7}, {"\0", 1}], 3) = 40
90 [pid 18428] poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3,
91 revents=POLLIN}])
92 [pid 18428] recvmsg(3, {msg_name(0)=NULL,
93 msg_iov(1)=[{"\1\0%F\0\0\0\0\1\202A\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
94 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
95 [pid 18428] recvmsg(3, 0x7fffb66d1c10, 0) = -1 EAGAIN (Resource
96 temporarily unavailable)
97 [pid 18428] recvmsg(3, 0x7fffb66d1c10, 0) = -1 EAGAIN (Resource
98 temporarily unavailable)
99 [pid 18428] poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
100 ([{fd=3, revents=POLLOUT}])
101 [pid 18428] writev(3, [{"b\0\10\0\27\0@\2", 8}, {"Generic Event
102 Extension", 23}, {"\0", 1}], 3) = 32
103 [pid 18428] poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3,
104 revents=POLLIN}])
105 [pid 18428] recvmsg(3, {msg_name(0)=NULL,
106 msg_iov(1)=[{"\1\0&F\0\0\0\0\1\200\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
107 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
108 [pid 18428] recvmsg(3, 0x7fffb66d1b70, 0) = -1 EAGAIN (Resource
109 temporarily unavailable)
110 [pid 18428] recvmsg(3, 0x7fffb66d1b70, 0) = -1 EAGAIN (Resource
111 temporarily unavailable)
112 [pid 18428] poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
113 ([{fd=3, revents=POLLOUT}])
114 [pid 18428] writev(3, [{"\200\0\2\0\1\0\0\0", 8}, {NULL, 0}, {"", 0}],
115 3) = 8
116 [pid 18428] poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3,
117 revents=POLLIN}])
118 [pid 18428] recvmsg(3, {msg_name(0)=NULL,
119 msg_iov(1)=[{"\1\0'F\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
120 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
121 [pid 18428] recvmsg(3, 0x7fffb66d1c20, 0) = -1 EAGAIN (Resource
122 temporarily unavailable)
123 [pid 18428] recvmsg(3, 0x7fffb66d1c20, 0) = -1 EAGAIN (Resource
124 temporarily unavailable)
125 [pid 18428] shmdt(0x7f889804c000) = 0
126 [pid 18428] poll([{fd=3, events=POLLIN|POLLOUT}], 1, 4294967295) = 1
127 ([{fd=3, revents=POLLOUT}])
128 [pid 18428] writev(3, [{"\202\2\2\0\25\5@\2+\0\1\0", 12}, {NULL, 0},
129 {"", 0}], 3) = 12
130 [pid 18428] poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3,
131 revents=POLLIN}])
132 [pid 18428] recvmsg(3, {msg_name(0)=NULL,
133 msg_iov(1)=[{"\1\2)F\0\0\0\0\7\0\300\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
134 4096}], msg_controllen=0, msg_flags=0}, 0) = 32
135 [pid 18428] recvmsg(3, 0x7fffb66d1d70, 0) = -1 EAGAIN (Resource
136 temporarily unavailable)
137 [pid 18428] recvmsg(3, 0x7fffb66d1d70, 0) = -1 EAGAIN (Resource
138 temporarily unavailable)
139 [pid 18428] shutdown(3, SHUT_RDWR) = 0
140 [pid 18428] close(3) = 0
141 [pid 18428] write(7, "@", 1) = 1
142 [pid 18428] close(7) = 0
143 [pid 18428] close(6) = 0
144 [pid 18428] rt_sigaction(SIGCHLD, {0x7f88bb633fe0, [],
145 SA_RESTORER|SA_NOCLDSTOP, 0x7f88b76d50f0}, {0x7f88bb633fe0, [],
146 SA_RESTORER|SA_SIGINFO, 0x7f88b76d50f0}, 8) = 0
147 [pid 18428] rt_sigaction(SIGCHLD, {0x7f88bb633fe0, [],
148 SA_RESTORER|SA_SIGINFO, 0x7f88b76d50f0}, NULL, 8) = 0
149 [pid 18428] futex(0x41d143c, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647,
150 0x41d1410, 24 <unfinished ...>
151 [pid 18436] <... futex resumed> ) = 0
152 [pid 18428] <... futex resumed> ) = 1
153 [pid 18436] futex(0x41d1410, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...>
154 [pid 18428] futex(0x41d1410, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
155 [pid 18436] <... futex resumed> ) = -1 EAGAIN (Resource
156 temporarily unavailable)
157 [pid 18428] <... futex resumed> ) = 0
158 [pid 18436] futex(0x41d1410, FUTEX_WAKE_PRIVATE, 1) = 0
159 [pid 18436] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_ACCERR,
160 si_addr=0x2381320} ---
161 [pid 18436] write(2, "Mathematica has received the sig"...,
162 61Mathematica has received the signal: SIGSEGV and has exited.
163 ) = 61
164 [pid 18436] write(2, "If possible, please report this "..., 63If
165 possible, please report this problem to support@×××××××.com
166 ) = 63
167 [pid 18436] write(2, "describing in as much detail as "..., 61describing
168 in as much detail as possible what you were doing
169 ) = 61
170 [pid 18436] write(2, "when the problem occurred.\n", 27when the problem
171 occurred.
172 ) = 27
173 [pid 18436] rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER,
174 0x7f88b76d50f0}, {0xae00d0, [], SA_RESTORER, 0x7f88b76d50f0}, 8) = 0
175 [pid 18436] tgkill(18428, 18436, SIGSEGV) = 0
176 [pid 18436] rt_sigreturn( <unfinished ...>
177 [pid 18428] exit_group(0) = ?
178 [pid 18436] <... rt_sigreturn resumed> ) = 37229344
179 [pid 18436] +++ exited with 0 +++
180 [pid 18428] +++ exited with 0 +++
181 <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) =
182 18428
183 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
184 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18428,
185 si_status=0, si_utime=174, si_stime=73} ---
186 wait4(-1, 0x7fff49e8e898, WNOHANG, NULL) = -1 ECHILD (No child processes)
187 rt_sigreturn() = 0
188 rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x7f338d84b560},
189 {0x43b330, [], SA_RESTORER, 0x7f338d84b560}, 8) = 0
190 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
191 read(255, "\n\n", 6035) = 2
192 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
193 rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
194 read(255, "", 6035) = 0
195 exit_group(0) = ?
196 +++ exited with 0 +++/
197
198 Anyone an idea whats going wrong?
199
200 I also tried ltrace but it wont work:
201 /chi@chi: ltrace -f mathematica
202 "/usr/local/bin/mathematica" is not an ELF file/
203
204 A guy from the gentoo forum meant that I should put this in my make.conf
205 and recompile:
206 ABI_X86="64 32"
207 It also did not help at all. ;(