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 341675 - Segmentation fault
Segmentation fault
Status: RESOLVED DUPLICATE of bug 92131
Product: Gnumeric
Classification: Applications
Component: General
1.6.x
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2006-05-13 18:46 UTC by Paul Objoie
Modified: 2006-10-17 17:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Objoie 2006-05-13 18:46:13 UTC
bug(Segmentation fault) when I want to copy several cells.
I have circular cells in iterative calculations(about electric fields)?

paul@bigBoss ~ $ LC_ALL=fr_FR gnumeric &
[1] 997
paul@bigBoss ~ $ Reading file:///home/paul/Desktop/couplageec30.gnumeric

[1]+  Segmentation fault      LC_ALL=fr_FR gnumeric


file:
-rw-r--r--  1 paul users   122405 May 13 20:29 couplageec30.gnumeric
Comment 1 Andreas J. Guelzow 2006-05-13 19:13:24 UTC
Would it be possible for you to provide a sample file that exhibits the bug (with an exact description what to copy to crash the program)?

Thanks
Comment 2 Morten Welinder 2006-05-13 22:51:14 UTC
Knowing the exact version would help too.
Comment 3 Paul Objoie 2006-05-14 21:39:36 UTC
first, I installed  version:1.4.3-r2
   with: 
ACCEPT_KEYWORDS="~x86" emerge =gnumeric-1.4.3-r2  (gentoo)
        the problem appears 
I install  version:1.6.3
   with: 
ACCEPT_KEYWORDS="~x86" emerge =gnumeric-1.6.3
 the same problem appears 

You can find the file at http://webtransfer.free.fr/

the file is : couplageectest.gnumeric
thanks for your help
Paul 
Comment 4 Morten Welinder 2006-05-14 22:59:49 UTC
I have the file.  Now what?

If can load it can force a recalc using F9, but it does not crash.  What is
the operation that will make it crash?  Is it the same thing every time?
Comment 5 Andreas J. Guelzow 2006-05-15 03:31:10 UTC
Paul said that "bug(Segmentation fault) when I want to copy several cells."

It would be nice to know which cells he wants to copy. I can copy various cell groups without problem.

It would also be nice to know which options to gcc are used by your compilation via "emerge". We used to have issues with faulty optimizations.
Comment 6 Paul Objoie 2006-05-15 07:11:25 UTC
the exact description what to copy to crash the program
when I copy cell DN42 to DN43.
it is difficult to give  which options to gcc are used by my compilation because with emerge I have several complations, a small one is:
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I./widgets -I./dialogs -I./tools -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libgsf-1 -I/usr/include/libxml2 -I/usr/include/libgoffice-1 -I/usr/include/gtk-2.0 -I/usr/include/libglade-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libart-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomecanvas-2.0 -O2 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp -Wall -Wmissing-prototypes -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -Wdeclaration-after-statement -Wnested-externs -Wmissing-noreturn -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-declarations -MT gnumeric-pane.lo -MD -MP -MF .deps/gnumeric-pane.Tpo -c gnumeric-pane.c  -fPIC -DPIC -o .libs/gnumeric-pane.o
gnumeric-pane.c: In function `cb_pane_popup_menu':
gnumeric-pane.c:166: warning: dereferencing type-punned pointer will break strict-aliasing rules

If you want more information, it is posssible on http://webtransfer.free.fr/, file : compilation.txt

thanks for your help
Paul 
Comment 7 Paul Objoie 2006-05-15 07:32:29 UTC
Options to gcc are used by my compilation:

CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp"

Thank you
Comment 8 Morten Welinder 2006-05-15 13:19:19 UTC
The set of options is pretty normal.

Could you try running under a debugger to get a stack trace?

gdb `which gnumeric`
run
# Load sheet and make it crash
where
# Back trace should be printed here.
quit

It might be useful if you could replace "-fomit-frame-pointer" by "-g"
in the compilation flags.  That would help the debugger.
Comment 9 Morten Welinder 2006-05-15 13:22:20 UTC
I noticed this in the log:

collect.c: In function `callback_function_collect':
collect.c:79: warning: implicit declaration of function `format_match_number'
collect.c:79: warning: nested extern declaration of `format_match_number'

Please also add a #include "number-match.h" near the top of collect.c
Comment 10 Paul Objoie 2006-05-15 14:58:20 UTC
with gdb
(no debugging symbols found)
Reading file:///home/paul/Desktop/tapis/etude_ci/couplageectest.gnumeric
---Type <return> to continue, or q <return> to quit---

Program received signal SIGSEGV, Segmentation fault.
0xb7cc0b15 in gnm_expr_eval () from /usr/lib/libspreadsheet-1.6.3.so
(gdb) where
  • #0 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #1 function_call_with_list
    from /usr/lib/libspreadsheet-1.6.3.so
  • #2 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #3 cell_eval_content
    from /usr/lib/libspreadsheet-1.6.3.so
  • #4 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #5 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #6 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #7 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #8 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #9 function_call_with_list
    from /usr/lib/libspreadsheet-1.6.3.so
  • #10 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #11 cell_eval_content
    from /usr/lib/libspreadsheet-1.6.3.so
  • #12 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #13 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #14 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #15 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #16 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #17 function_call_with_list
    from /usr/lib/libspreadsheet-1.6.3.so
  • #18 gnm_expr_eval
    from /usr/lib/libspreadsheet-1.6.3.so
  • #19 cell_eval_content
    from /usr/lib/libspreadsheet-1.6.3.so

Comment 11 Morten Welinder 2006-05-15 17:16:14 UTC
Hmm...  That stack trace would suggest that evaluation ends up going too
deep.  That would be bug 92131.
Comment 12 Jon Kåre Hellan 2006-10-17 17:43:55 UTC
1.6.3 doesn't crash for me with the default stack limit - 8192 kb. If I reduce it to 8000, I get the crash. Conclusion: This is indeed bug 92131.

1.7.2 contains code to increase the stack size available for this.
That's not a fix for 92131 in general, but takes this particular sheet way out of the danger zone.



*** This bug has been marked as a duplicate of 92131 ***