From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-19 23:50:52
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified Summary: Gtk2::Pango::Matrix->new leaks and lead to crash Product: gnome-perl Version: unspecified Platform: Other OS/Version: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: squ...@fr... QAContact: gtk...@li... GNOME version: 2.17/2.18 GNOME milestone: Unspecified Please describe the problem: Gtk2::Pango::Matrix->new leaks memory and leads to a crash, either a segmentation fault or a GSlice error Steps to reproduce: repeatedly calling Gtk2::Pango::Matrix->new (see attachment) Actual results: segmentation fault or ***MEMORY-ERROR***: bug_matrix.pl[19052]: GSlice: assertion failed: sinfo->n_allocated > 0 Expected results: Does this happen every time? Crash after a variable number of calls, around 1 milion calls on my system with the attached test script that does only that, I think the crash happens much sooner in a real program. Other information: Don't know if it's a Gtk or bindings bug -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-19 23:53:39
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified ------- Comment #1 from Quentin Sculo 2007-07-19 23:53 UTC ------- Created an attachment (id=92009) --> (http://bugzilla.gnome.org/attachment.cgi?id=92009&action=view) testcase -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-22 11:41:01
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified Torsten Schoenfeld changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kaf...@gm... Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 ------- Comment #2 from Torsten Schoenfeld 2007-07-22 11:40 UTC ------- That's a bindings bug, kind of. Since pango doesn't provide a pango_matrix_new, we roll our own in the bindings using g_new0. But starting with 1.12.0 (revision 1696 in SVN), pango changed every memory allocation code to use GSlice. That means we now allocate a PangoMatrix struct with g_new0 and then pango frees it with g_slice_free. The attached patch fixes the issue for me. -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-22 11:42:30
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified ------- Comment #3 from Torsten Schoenfeld 2007-07-22 11:42 UTC ------- Created an attachment (id=92165) --> (http://bugzilla.gnome.org/attachment.cgi?id=92165&action=view) Use g_slice_new0 if appropriate -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-22 20:53:38
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified ------- Comment #4 from Quentin Sculo 2007-07-22 20:53 UTC ------- Thanks, it works in my program too, I want to use it to draw vertical text in a DrawingArea. -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |
From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2007-07-22 21:15:38
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=458458 gnome-perl | Gtk2 | Ver: unspecified Torsten Schoenfeld changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #5 from Torsten Schoenfeld 2007-07-22 21:15 UTC ------- OK, committed to both branches. -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=458458. |