help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: octave (2.1.50/2.1.57) hang during startup


From: q127038
Subject: Re: octave (2.1.50/2.1.57) hang during startup
Date: Fri, 30 Apr 2004 03:07:40 -0500

hi

> Perhaps run octave under gdb again, and hit Ctrl-C when it
> is running and hung up. You will get the debugger prompt,
> upon which you can type 'where' and it should display the
> call stack.
> 
> Even better, run 'strace  octave', and look at the sequence
> of system calls that it executes before/during the hang-up.
> You can also do 'ltrace octave', which will display C library
> calls. These should throw some light on why it is not reaching
> the octave prompt.

Good idea. 
I ran 
strace octave-2.1.44
strace octave-2.1.57
and stored everything in a typscript file.

The "vi -d" gave (badly copied and pasted) can be seen at the end:

The key thing is that the 2.1.57 does tons of
"stat64(.......................)"
calls. It seems that he screens the whole disk there.
First I discovered a dead link
/.../.../.... -> .
Which trapped him in recursive calling. 
After deleting the messed up symbolic link I got it to work/start-up.
Nevertheless the startup of 2.1.57 did take over 1 minute because he
he screened almost the whole disk, what he did not do with 2.1.44

This "screening" using the "stat64" command can be seen below.

Why does he do that in the new (2.1.57) version?

I had a "~/.octaverc" file which set the LOADPATH, but that
was valid for both versions of octave and even if I move the
.octaverc away it takes the same amount of time until 
the new octave version is "ready".



----------------------------------------------------------------

    637 brk(0x8639000)                          = 0x8639000^|      217
close(4)                                = 0^M
      638 brk(0x863a000)                          = 0x863a000^|      218
getdents64(0x3, 0x8620608, 0x8000, 0)   = 304^M
      639 brk(0x863b000)                          = 0x863b000^|      219
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt",
      640 brk(0x863c000)                          = 0x863c000^|      220
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/", O
          ----------------------------------------------------|      221
fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}
          ----------------------------------------------------|      222
fcntl64(4, F_SETFD, FD_CLOEXEC)         = 0^M
          ----------------------------------------------------|      223
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/libe
          ----------------------------------------------------|      224
getdents64(0x4, 0x8628640, 0x1000, 0)   = 128^M
          ----------------------------------------------------|      225
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      226
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.0.
          ----------------------------------------------------|      227
fstat64(5, {st_mode=S_IFDIR|0755, st_size=4096, ...}
          ----------------------------------------------------|      228
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0^M
          ----------------------------------------------------|      229
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.0.
          ----------------------------------------------------|      230
getdents64(0x5, 0x8629678, 0x1000, 0)   = 688^M
          ----------------------------------------------------|      231
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      232
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      233
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      234
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.0.
          ----------------------------------------------------|      235
fstat64(6, {st_mode=S_IFDIR|0755, st_size=4096, ...}
          ----------------------------------------------------|      236
fcntl64(6, F_SETFD, FD_CLOEXEC)         = 0^M
          ----------------------------------------------------|      237
open("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.0.
          ----------------------------------------------------|      238
getdents64(0x6, 0x862a6b0, 0x1000, 0)   = 3464^M
          ----------------------------------------------------|      239
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      240
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      241
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      242
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      243
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      244
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      245
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      246
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      247
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      248
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      249
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      250
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      251
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.
          ----------------------------------------------------|      252
stat64("/share/sdmfs1/GNU/RedHat-7.3/usr/local/qt/3.

-- 
Mit freundlichen Gruessen
    Daniel Heiserer

--------------------------------------------------------------
Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen
Abteilung EK-212
Tel.: 089-382-21187, Fax.: 089-382-42820
mailto:address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]