Ticket #1241 (new defect)

Opened 3 years ago

Last modified 3 years ago

malloc: pointer being freed was not allocated

Reported by: guest Owned by: somebody
Priority: normal Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.11.0
Keywords: Cc:


When I run any cairo demo that draws on the screen, I see a frame draw on the screen and then I get a crash like

graph(27721) malloc: *** error for object 0x10176a168: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Non-cairo gtk2hs demos work. Cairo demos like "text" which do not try to draw on the screen do not crash

This is with

  • gtk-0.12.1, cairo-0.12.1
  • MacOS X Lion
  • GHC 7.2.1 (generating 64 bit code)

and also with the development versions (gtk-0.12.2, etc)

-- Eric Kow (eric.kow, gmail)

Change History

Changed 3 years ago by guest

I new I'd forget something. I'm using gtk+ 2.24.6 (via HomeBrew?). I think I get the crash whether cairo (haskell) is linked against the cairo that ships with OS X or the cairo 1.10.2 that I install with HomeBrew?.

Changed 3 years ago by guest

I should also mention that a Cairo hello world seems to work on my machine

Changed 3 years ago by guest

I should mention that I've finally found a [https://gist.github.com/2420144

sequence of installation instructions] that avoids this problem for me

See also the original version with comments, something about dynamic and static libraries

Note: See TracTickets for help on using tickets.