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 556561 - Inter-process paste crash with validation nodes
Inter-process paste crash with validation nodes
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export other
git master
Other All
: Normal critical
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-10-16 15:06 UTC by Guylhem Aznar
Modified: 2008-12-04 16:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Partial patch (2.89 KB, patch)
2008-10-22 17:53 UTC, Morten Welinder
none Details | Review

Description Guylhem Aznar 2008-10-16 15:06:16 UTC
Steps to reproduce:
1. open a xls file containing fused cells
2. create a new gnumeric file
3. copy a column of the xls file using the keyboard shortcut Ctrl+C
4. paste in the gnumeric file using Ctrl-V
5. open another xls file containing fused cells
6. copy another column of the xls file using the keyboard shortcut
Ctrl+C
7. paste in the gnumeric file using Ctrl-V

Stack trace:
Backtrace was generated from '/usr/bin/gnumeric'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1228272992 (LWP 8980)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7fb2410 in ?? ()

Thread 1 (Thread -1228272992 (LWP 8980))

  • #0 ??
  • #1 ??
  • #2 ??
  • #0 ??

Other information:
Happens all the time. Make gnumeric unusable to me (I depend on copy/paste for files submitted to me by excel users, which sometime makes fused cells)
Comment 1 Andreas J. Guelzow 2008-10-16 15:10:45 UTC
Version 1.6.x? Lots has changed since those days. You may want to give 1.8.x or even 1.9.2 a try.
Comment 2 Andreas J. Guelzow 2008-10-16 15:15:51 UTC
Using 1.92 I cannot replicate this but perhaps there is something special about your files.
Comment 3 Morten Welinder 2008-10-16 15:31:49 UTC
It would be helpful if you could make a sample file and tell us exactly
what columns to copy.
Comment 4 Morten Welinder 2008-10-22 17:19:45 UTC
I can now reproduce this with the sheet that was sent offline.  Note:

1. The paste must be from one Gnumeric process to another.
2. The cause is something with "Validation" nodes in styles.
3. To get the problem, I select the entire sheet and paste it into
   a blank sheet in the other process.
4. The user's valgrind log indicates that things are fine until the
   first CRITICAL is hit, see trace below.  This causes an undefine
   parse position and things are downhill from there.
5. Both 1.8.x and 1.9.x are affected.

Breakpoint 2, 0xb7470086 in g_log () from /usr/lib/libglib-2.0.so.0
(gdb) where
  • #0 g_log
    from /usr/lib/libglib-2.0.so.0
  • #1 g_return_if_fail_warning
    from /usr/lib/libglib-2.0.so.0
  • #2 parse_pos_init_sheet
    at position.c line 223
  • #3 xml_read_style
    at xml-io.c line 929
  • #4 xml_read_style_region_ex
    at xml-io.c line 1031
  • #5 xml_cellregion_read
    at xml-io.c line 2190
  • #6 table_content_received
    at gui-clipboard.c line 343

Comment 5 Morten Welinder 2008-10-22 17:53:58 UTC
Created attachment 121149 [details] [review]
Partial patch

This should fix the receiving side.  (The sending side complains too.)
The patch was made against SVN head, but the xml-io.c part should apply
to the 1.8.x versions too.  To test, do

cd .../somewhere/gnumeric
patch -p0 < ~/patchfile
# Ignore failures to ChangeLog and NEWS
make
Comment 6 Morten Welinder 2008-12-02 19:07:45 UTC
Did anyone ever look at this?
Comment 7 Morten Welinder 2008-12-04 16:03:47 UTC
Both sending and receiving sides have been fixed.

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.