Copy to clipboard causes segfault

Bug #250290 reported by Alexander Jones
8
Affects Status Importance Assigned to Milestone
Gnome DevHelp
Fix Released
Critical
devhelp (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: devhelp

Both Ctrl+C shortcut and Edit -> Copy causes this segfault:

#0 0x0000000000000000 in ?? ()
#1 0x00007f8b12788eb6 in dh_gecko_utils_copy_selection ()
   from /usr/lib/libdevhelp-1.so.0
#2 0x00007f8b130b206d in IA__g_closure_invoke (closure=0x2537fb0,
    return_value=0x0, n_param_values=1, param_values=0x7fff1d6d3750,
    invocation_hint=0x7fff1d6d3650)
    at /build/buildd/glib2.0-2.17.3/gobject/gclosure.c:767
#3 0x00007f8b130c7f30 in signal_emit_unlocked_R (node=0x246db30, detail=0,
    instance=0x1b1deb0, emission_return=0x0,
    instance_and_params=0x7fff1d6d3750)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2975
#4 0x00007f8b130c9644 in IA__g_signal_emit_valist (instance=0x1b1deb0,
    signal_id=<value optimized out>, detail=0, var_args=0x7fff1d6d39b0)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2707
#5 0x00007f8b130c9bd3 in IA__g_signal_emit (instance=0x26578a0,
    signal_id=493696192, detail=0)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2765
#6 0x00007f8b14f01893 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x00007f8b14f03b34 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#8 0x00007f8b130b206d in IA__g_closure_invoke (closure=0x253e030,
    return_value=0x7fff1d6d3c60, n_param_values=4,
    param_values=0x7fff1d6d3d20, invocation_hint=0x7fff1d6d3c20)
    at /build/buildd/glib2.0-2.17.3/gobject/gclosure.c:767
---Type <return> to continue, or q <return> to quit---
#9 0x00007f8b130c7f30 in signal_emit_unlocked_R (node=0x2467680, detail=773,
    instance=0x245db80, emission_return=0x7fff1d6d3f20,
    instance_and_params=0x7fff1d6d3d20)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2975
#10 0x00007f8b130c94ff in IA__g_signal_emit_valist (instance=0x245db80,
    signal_id=<value optimized out>, detail=773, var_args=0x7fff1d6d3f80)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2717
#11 0x00007f8b130c9bd3 in IA__g_signal_emit (instance=0x26578a0,
    signal_id=493696192, detail=0)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2765
#12 0x00007f8b14efd795 in gtk_accel_group_activate ()
   from /usr/lib/libgtk-x11-2.0.so.0
#13 0x00007f8b14efd89e in gtk_accel_groups_activate ()
   from /usr/lib/libgtk-x11-2.0.so.0
#14 0x00007f8b151096e3 in gtk_window_activate_key ()
   from /usr/lib/libgtk-x11-2.0.so.0
#15 0x00007f8b1510aba7 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x00007f8b14fd6503 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00007f8b130b206d in IA__g_closure_invoke (closure=0x2440f50,
    return_value=0x7fff1d6d4310, n_param_values=2,
    param_values=0x7fff1d6d43d0, invocation_hint=0x7fff1d6d42d0)
    at /build/buildd/glib2.0-2.17.3/gobject/gclosure.c:767
#18 0x00007f8b130c7c14 in signal_emit_unlocked_R (node=0x24410a0, detail=0,
---Type <return> to continue, or q <return> to quit---
    instance=0x244d000, emission_return=0x7fff1d6d45d0,
    instance_and_params=0x7fff1d6d43d0)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:3013
#19 0x00007f8b130c94ff in IA__g_signal_emit_valist (instance=0x244d000,
    signal_id=<value optimized out>, detail=0, var_args=0x7fff1d6d4630)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2717
#20 0x00007f8b130c9bd3 in IA__g_signal_emit (instance=0x26578a0,
    signal_id=493696192, detail=0)
    at /build/buildd/glib2.0-2.17.3/gobject/gsignal.c:2765
#21 0x00007f8b150f260e in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x00007f8b14fcda25 in gtk_propagate_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007f8b14fceaab in gtk_main_do_event ()
   from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00007f8b14c33a1c in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#25 0x00007f8b129dbc8b in IA__g_main_context_dispatch (context=0x1b22140)
    at /build/buildd/glib2.0-2.17.3/glib/gmain.c:2068
#26 0x00007f8b129df46d in g_main_context_iterate (context=0x1b22140, block=1,
    dispatch=1, self=<value optimized out>)
    at /build/buildd/glib2.0-2.17.3/glib/gmain.c:2701
#27 0x00007f8b129df99d in IA__g_main_loop_run (loop=0x2a92260)
    at /build/buildd/glib2.0-2.17.3/glib/gmain.c:2924
#28 0x00007f8b14fcef27 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#29 0x000000000040177d in ?? ()
#30 0x00007f8b1220b466 in __libc_start_main () from /lib/libc.so.6
#31 0x00000000004012d9 in ?? ()
#32 0x00007fff1d6d4bb8 in ?? ()
#33 0x000000000000001c in ?? ()
#34 0x0000000000000001 in ?? ()
#35 0x00007fff1d6d5762 in ?? ()
#36 0x0000000000000000 in ?? ()

100% reproduceable on my system.

ProblemType: Bug
Architecture: amd64
Date: Sun Jul 20 17:29:09 2008
DistroRelease: Ubuntu 8.10
NonfreeKernelModules: ath_hal
Package: devhelp 0.19.1-3ubuntu2
PackageArchitecture: amd64
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/username/.local/bin
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: devhelp
Uname: Linux 2.6.26-3-generic x86_64

Tags: apport-bug
Revision history for this message
Alexander Jones (alex-weej) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for the report, it looks like http://bugzilla.gnome.org/show_bug.cgi?id=539624

Changed in devhelp:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Triaged
Changed in devhelp:
status: Unknown → New
Changed in devhelp:
status: New → Fix Released
Revision history for this message
Felipe De la Puente (fdelapuente) wrote :

The same here, intrepid, AMD64. The issue reported by apport is:

devhelp crashed with SIGSEGV in dh_gecko_utils_copy_selection()

Since I haven't a copy menu after right clicking over the text, I've "CTRL+C"ed, and then it crashed after a while at high CPU usage.

Greetings, Felipe.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug has been fixed upstream now

Changed in devhelp:
status: Triaged → Fix Committed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

The attached patch is a merge from 0.19.1-5 in Debian which fix this issue. Build and tested successfully.
Note that with the resulting binaries I was unable to reproduce bug 257272, bug 261985 and bug 264847

Changed in devhelp:
status: Fix Committed → Confirmed
Revision history for this message
Cesare Tirabassi (norsetto) wrote :
Revision history for this message
Cesare Tirabassi (norsetto) wrote :
Revision history for this message
Cesare Tirabassi (norsetto) wrote :

I can confirm that this also fixes bug 257272 and bug 264847.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

As discussed with seb128, as an alternative you may want to upload the newest upstream version (0.20).
Its basically 0.19.1 with all Ubuntu/Debian patches (but the one fixing the alpha FTBFS) plus updated translations.
Builds, installs and works fine; diff.gz is attached.

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

This includes the change from 0.19.1-6 (see http://bugs.debian.org/491359).

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Upstream just release 0.21:

NEW in 0.21:
============

Updated translations: hi, ar, it, sr, sr@latin, pt.

Many thanks to the translators: Rajesh Ranjan, Djihed Afifi, Luca
Ferretti, Goran Rakić, Duarte Loreto, Francesco Marletta, Khaled
Hosny.

Builds, installs and works fine; diff.gz is attached.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your work on this update

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package devhelp - 0.21-0ubuntu1

---------------
devhelp (0.21-0ubuntu1) intrepid; urgency=low

  * New upstream release (LP: #250290, LP: #257272 and LP: #264847):
    - remove patches 02_gecko_1.9.patch, 05_autotools_update.patch,
      06_fix_ftbfs_in_g_set_error.patch and 70_autoconf.patch
      now applied upstream
      (there is still a small delta with Debian remaining since they moved
      #include <nsStringAPI.h> before #ifdef XPCOM_GLUE in dh-gecko-utils.cpp
      to solve a FTBFS on alpha).
  * Remove cdbs workaround, not needed anymore.
  * Update Standards-Version to 3.8.0 (No Changes).
  * Remove Build-Depends on -1 revisions.
  * Recommend xulrunner-1.9-gnome-support.

 -- Cesare Tirabassi <email address hidden> Mon, 22 Sep 2008 18:40:07 +0200

Changed in devhelp:
status: Confirmed → Fix Released
Changed in devhelp:
importance: Unknown → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.