|
From: Ethan A M. <sf...@us...> - 2013-03-21 17:52:13
|
On Wednesday, March 20, 2013 03:25:01 pm Allin Cottrell wrote: > 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 That's good to know in case someone else runs into the same symptoms. Note, however, that gnuplot's built-in readline is probably a better option than the BSD version. The built-in version was extended during the 4.6 development cycle to include tab-completion. More to the point, it was extended to handle UTF8 encoding, which the BSD version does not support. Ethan |