From bug-request at octave dot org Fri Jan 21 16:49:51 2005 Subject: Re: Serious memory leak in octave (this may be a duplicate bug report) From: Per Persson To: Dan Nessett Cc: bug at octave dot org Date: Fri, 21 Jan 2005 23:53:29 +0100 On Jan 20, 2005, at 03:16, Dan Nessett wrote: > I downloaded octave 2.1.64 and built from source. The problem remains. OK. that's bad. > > Since I pulled the tarball into a directory separate from /sw, I had > to play > with some flags to get the compile and load to work. The main problem > was > that make kept complaining about Readline 4.2 not being installed. I > have > Readline 4.3.15 installed by Fink. > Also, I had to use the fix for f77 > errors. In order to get around these problems I used the following > configure > execute line: > > LDFLAGS=-L/sw/lib CPPFLAGS=-I/sw/include FLIBS=-lg2c ./configure > --enable-shared --enable-dl --disable-static > > The make complained about multiple definitions, specifically (this > sequence > occurred many times): > > ld: warning multiple definitions of symbol _xerbla_ > ../libcruft/blas-xtra/xerbla.o definition of _xerbla_ in section > (__TEXT,__text)../libcruft/libcruft.dylib(single module) definition of > _xerbla_ > ld: warning multiple definitions of symbol _BC > /sw/lib/libreadline.dylib(terminal.so) definition of _BC > /sw/lib/libncurses.dylib(lib_termcap.lo) definition of _BC > ld: warning multiple definitions of symbol _UP > /sw/lib/libreadline.dylib(terminal.so) definition of _UP > /sw/lib/libncurses.dylib(lib_termcap.lo) definition of _UP > ld: warning multiple definitions of symbol _PC > /sw/lib/libreadline.dylib(terminal.so) definition of _PC > /sw/lib/libncurses.dylib(lib_tputs.lo) definition of _PC They are AFIK benign. > > Also, when I ran make check, it failed with the following message: > > make -f octMakefile check > make -C test check > WARNING: Couldn't find the global config file. > WARNING: Couldn't find tool init file > > Illegal Argument "OCTAVE=../src/octave" > try "runtest --help" for option list > make[2]: *** [check] Error 1 > make[1]: *** [check] Error 2 > make: *** [check] Error 2 This, IIRC, had to do with tcsh on 10.2, are you running tcsh? > > However, I decided to run make install anyway. Octave seemed to come up > fine. I then executed the two octave commands that cause the problem > and > observed the same behavior. In fact it actually got a bit worse. Octave > expanded to 2.64G before the second command (p - i.e., print p) > completed. Could you check which libs are linked aginst? Use otool -L /usr/local/bin/octave You should be able to disable all additional libs (from fink and elsewhere) and build a "minimal" octave, does it show the same problem behaviour? /Per ------------------------------------------------------------- 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 -------------------------------------------------------------