|
From: Allin C. <cot...@wf...> - 2013-03-20 22:30:34
|
On Mon, 18 Mar 2013, Allin Cottrell wrote: > Sorry if I've missed discussion of this, but I'm seeing a crash on exiting > gnuplot (by typing "quit" or "q" then Enter) when running in Terminal.app on > Mac OS X. > > This is with current CVS gnuplot, OS X 10.6.8. The message I'm getting is: > > gnuplot> q > gnuplot(19077) malloc: *** error for object 0x71: pointer being freed was not > allocated > *** set a breakpoint in malloc_error_break to debug > Abort trap OK, I now see what's wrong: readline was crossed-up. Gnuplot's configure script found GNU readline under /usr/local but the build linked against Apple's fake readline (libedit.dylib). So bad results may be expected. If I either specify --with-readline=bsd or add -L/usr/local/lib to CFLAGS when running configure, I get a consistent build that doesn't crash. I'd forgotten about the fake readline business. Allin Cottrell |