From: Joshua A. Anderson (
Date: Tue Mar 22 2011 - 08:55:00 CDT

Hi all,

Just updated my local MACOSXX86_64 python-enabled build of VMD to 1.9. It fixes most of the issues I had getting 1.8.7 to work - including the non-functional GLSL rendering mode (yay!). I did have to patch the source in a few places to get it to compile and run, though (patches attached).

I'm building with the following configure options, and a modified configure script to use Python, tcl, and tk installed by macports (since the configure script overrides the env variables for mac builds......(: MACOSXX86_64 FLTKOPENGL FLTK TK IMD LIBTACHYON TCL PYTHON PTHREADS LP64

I just have one remaining issue to solve - this build crashes on exit:
Info) Exiting normally.
vmd_MACOSXX86_64(23054,0x7fff707d3ca0) malloc: *** error for object 0x1011ec350: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Program received signal SIGABRT, Aborted.
0x00007fff835b5616 in __kill ()
(gdb) bt
#0 0x00007fff835b5616 in __kill ()
#1 0x00007fff83655cca in abort ()
#2 0x00007fff8356d6f5 in free ()
#3 0x00000001009ef0a4 in UnsetVarStruct ()
#4 0x00000001009ef2e5 in TclDeleteNamespaceVars ()
#5 0x00000001009bdfce in TclTeardownNamespace ()
#6 0x000000010094cf33 in DeleteInterpProc ()
#7 0x0000000100103690 in TclTextInterp::~TclTextInterp (this=0x101c3ce00) at TclTextInterp.C:266
#8 0x00000001000c6bfc in UIText::~UIText (this=0x101c3c860) at UIText.C:120
#9 0x00000001000cd2b7 in VMDApp::~VMDApp (this=0x100d122f0) at VMDApp.C:683
#10 0x00000001000eaf49 in main (argc=1, argv=0x7fff5fbff698) at vmdmain.C:68

Anyone have any ideas where to start looking? I don't have this problem with VMD 1.8.7 compiled against the same python and tcl. TclTextInterp.C:266 is just Tcl_DeleteInterp(interp); It's kind of annoying because Mac OS X pops up a "do you wan to report this crash" dialog box every time.

Joshua A. Anderson, Ph.D.
Chemical Engineering Department, University of Michigan