After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 559811 - Alternate language: close alternate language
Alternate language: close alternate language
Status: RESOLVED FIXED
Product: gtranslator
Classification: Other
Component: Plugins
HEAD
Other All
: Normal critical
: 2.0
Assigned To: gtranslator-maint
gtranslator-maint
Depends on:
Blocks:
 
 
Reported: 2008-11-07 22:26 UTC by Yuriy Penkin
Modified: 2010-02-12 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix double free memory in the alternate language plugin (467 bytes, patch)
2008-11-07 22:37 UTC, Yuriy Penkin
committed Details | Review

Description Yuriy Penkin 2008-11-07 22:26:09 UTC
Steps to reproduce:
1. open po-file
2. open alternate language file
3. close alternate language file 


Stack trace:
Program received signal SIGABRT, Aborted.

Thread 3070215936 (LWP 14294)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 ??
    from /lib/tls/i686/cmov/libc.so.6
  • #4 ??
    from /lib/tls/i686/cmov/libc.so.6
  • #5 free
    from /lib/tls/i686/cmov/libc.so.6
  • #6 g_free
    from /usr/lib/libglib-2.0.so.0
  • #7 ??
    from /usr/lib/libgio-2.0.so.0
  • #8 g_object_unref
    from /usr/lib/libgobject-2.0.so.0
  • #9 gtranslator_po_finalize
    at /home/yura/mydevelop/gtranslator/src/po.c line 209
  • #10 g_object_unref
    from /usr/lib/libgobject-2.0.so.0
  • #11 close_button_clicked_cb
    at /home/yura/mydevelop/gtranslator/plugins/alternate-language/alternate-language-panel.c line 251
  • #12 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
...


Other information:
Comment 1 Yuriy Penkin 2008-11-07 22:37:04 UTC
Created attachment 122210 [details] [review]
fix double free memory in the alternate language plugin
Comment 2 Pablo Sanxiao 2008-11-12 12:34:05 UTC
Applied in trunk but the patch doesn't fix the problem completely. The alternate plugin still gives segmentation fault sometimes when the file is closed.
Comment 3 Ignacio Casal Quinteiro (nacho) 2010-02-12 16:12:23 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.