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 412688 - gcalctool crashed with SIGSEGV in strlen()
gcalctool crashed with SIGSEGV in strlen()
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
5.9.x
Other Linux
: Normal critical
: ---
Assigned To: Rich Burridge
Rich Burridge
Depends on:
Blocks:
 
 
Reported: 2007-02-27 16:41 UTC by Sebastien Bacher
Modified: 2007-02-27 20:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
Patch to hopefully fix the problem. (625 bytes, patch)
2007-02-27 20:50 UTC, Rich Burridge
none Details | Review

Description Sebastien Bacher 2007-02-27 16:41:18 UTC
That bug has been opened on https://launchpad.net/bugs/88294

"Binary package hint: gcalctool

Tried to paste data from a closed application (Firefox).
...
Package: gcalctool 5.9.12-0ubuntu1
...
"
Debug backtrace for the crash:

  • #0 strlen
    from /lib/tls/i686/cmov/libc.so.6
  • #1 get_proc
    at /build/buildd/gcalctool-5.9.12/./gcalctool/gtk.c line 2132
  • #2 request_text_received_func
    at gtkclipboard.c line 942
  • #3 selection_received
    at gtkclipboard.c line 854
  • #4 _gtk_marshal_VOID__BOXED_UINT
    at gtkmarshalers.c line 1489
  • #5 IA__g_closure_invoke
    at gclosure.c line 490
  • #6 signal_emit_unlocked_R
    at gsignal.c line 2440
  • #7 IA__g_signal_emit_valist
    at gsignal.c line 2199
  • #8 IA__g_signal_emit_by_name
    at gsignal.c line 2267
  • #9 gtk_selection_retrieval_report
    at gtkselection.c line 2773
  • #10 _gtk_selection_notify
    at gtkselection.c line 2550

Comment 1 Rich Burridge 2007-02-27 20:41:26 UTC
Confirmed. I've just reproduced this. I'll add in some bullet
proofing to the get_proc() routine to try to prevent this from 
happening..
Comment 2 Rich Burridge 2007-02-27 20:50:39 UTC
Created attachment 83489 [details] [review]
Patch to hopefully fix the problem.

The get_proc() routine will now check for an empty buffer and if found,
just return.
Comment 3 Rich Burridge 2007-02-27 20:53:11 UTC
Committed to SVN trunk/HEAD (revision 1535). It'll hopefully
make it into the next gcalctool tarball in time for GNOME 
2.18.0 (final).