[erlang-questions] wish8.5 malloc:*** error for object 0x591978: Non-aligned pointer being freed

Harald Weppner harry.weppner@REDACTED
Tue Nov 4 07:18:20 CET 2008


Hi there,

am wondering if anyone ran into this error before when accessing  
pretty much anything using gs?

I came across this issue starting the debugger but even ex1.erl from  
the gs user's guide causes these error messages. I searched and didn't  
see this discussed before anywhere...

A number of errors such as these are output in the erlang shell (note:  
they appear before displaying a window and after closing one):

wish8.5(3213,0xa0bad074) malloc:
   *** error for object 0x591978: Non-aligned pointer being freed
   *** set a breakpoint in malloc_error_break to debug
wish8.5(3213,0xa0bad074) malloc:
   *** error for object 0x5906a8: Non-aligned pointer being freed
   *** set a breakpoint in malloc_error_break to debug
wish8.5(3213,0xa0bad074) malloc:
   *** error for object 0x59e098: Non-aligned pointer being freed
   *** set a breakpoint in malloc_error_break to debug
[and a few more...]

When I break at that point I see the following stack:

(gdb) bt
#0  0x96c7eb60 in malloc_error_break ()
#1  0x96c797c8 in szone_error ()
#2  0x002b4af8 in FcStrFree ()
#3  0x002b0254 in FcValueListDestroy ()
#4  0x002b0cb0 in FcPatternDestroy ()
#5  0x0002f4d4 in XftFontOpenInfo ()
#6  0x0003036c in XftFontOpenPattern ()
#7  0x0b0d169c in GetFont ()
#8  0x0b0d1ac4 in InitFont ()
#9  0x0b0d1e44 in TkpGetFontFromAttributes ()
#10 0x0b01d23c in Tk_AllocFontFromObj ()
#11 0x0b0139a8 in DoObjConfig ()
#12 0x0b013ed4 in Tk_SetOptions ()
#13 0x0b04dd60 in ConfigureMenuButton ()
#14 0x0b04e310 in Tk_MenubuttonObjCmd ()
#15 0x0a0101f8 in TclEvalObjvInternal ()
#16 0x0a054eb4 in TclExecuteByteCode ()
#17 0x0a05dbd8 in TclCompEvalObj ()
#18 0x0a05513c in TclExecuteByteCode ()
#19 0x0a09c174 in TclObjInterpProcCore ()
#20 0x0a0101f8 in TclEvalObjvInternal ()
#21 0x0a054eb4 in TclExecuteByteCode ()
#22 0x0a05dbd8 in TclCompEvalObj ()
#23 0x0a0124e0 in TclEvalObjEx ()
#24 0x0a09ae34 in Tcl_UplevelObjCmd ()
#25 0x0a0101f8 in TclEvalObjvInternal ()
#26 0x0a054eb4 in TclExecuteByteCode ()
#27 0x0a09c174 in TclObjInterpProcCore ()
#28 0x0a0101f8 in TclEvalObjvInternal ()
#29 0x0a054eb4 in TclExecuteByteCode ()
#30 0x0a05dbd8 in TclCompEvalObj ()
#31 0x0a0124e0 in TclEvalObjEx ()
#32 0x0a06ce10 in TclChannelEventScriptInvoker ()
#33 0x0a072994 in Tcl_NotifyChannel ()
#34 0x0a0c4f84 in FileHandlerEventProc ()
#35 0x0a08ae18 in Tcl_ServiceEvent ()
#36 0x0a08b254 in Tcl_DoOneEvent ()
#37 0x0b018e98 in Tk_MainLoop ()
#38 0x0b0280b4 in Tk_MainEx ()
#39 0x00005564 in main ()


The weird thing is that this happens only on a PPC Mac but doesn't  
exhibit this behavior on an Intel Mac. tcl/tk is at 8.5.5 on both  
machines and I believe X11 to be identical as well...

Any input appreciated.

Cheerio, Harry.





More information about the erlang-questions mailing list