Re: Re: Crash in g_slice_alloc()



Hi John,

 

Thanks for the response.  I figured out a  solution later.

 

It turns out that freeing the PangoContext using g_object_unref() also frees the associated PangoFontDescription.

I was doing the mistake of freeing the PangoFontDescription again, by using pango_font_description_free().

 

However, I am curious why memory corruption occurs only after multiple executions.

Thanks and regards,

Parth Kanungo

 

 

 

 

 

------- Original Message -------

Sender : John Ralls<jralls ceridwen us>

Date : Feb 20, 2014 21:04 (GMT+05:30)

Title : Re: Crash in g_slice_alloc()

 


On Feb 20, 2014, at 2:34 AM, Parth Kanungo <parth k samsung com> wrote:

Some more information...


The exact location of crash is the following statement in magazine_chain_pop_head() function in gslice.c


 

if (G_UNLIKELY (chunk))

{

/* allocating from freed list */

(*magazine_chunks)->data = "">

}


 

See if the patch in https://bugzilla.gnome.org/show_bug.cgi?id=724590 fixes it.

Regards,
John Ralls


 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]