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 109442 - Placeholder functions should be updated when the true function becomes available.
Placeholder functions should be updated when the true function becomes availa...
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other All
: Normal normal
: ---
Assigned To: Morten Welinder
Morten Welinder
Depends on:
Blocks:
 
 
Reported: 2003-03-28 19:10 UTC by Chema Celorio
Modified: 2013-01-11 01:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Tentative patch (8.25 KB, patch)
2013-01-10 01:36 UTC, Morten Welinder
none Details | Review
Updated patch (6.29 KB, patch)
2013-01-10 23:33 UTC, Morten Welinder
none Details | Review

Description Chema Celorio 2003-03-28 19:11:08 UTC
Package: Gnumeric
Severity: normal
Version: 1.1.17
Synopsis: Crashed while exiting after activating all the plugins
Bugzilla-Product: Gnumeric
Bugzilla-Component: General
BugBuddy-GnomeVersion: 2.0 (2.2.0.1)

Description:
Launched gnumeric myfile.xl

got on the console:
[chema@localhost expenses]$ gnumeric mexican_office_expenses_2003.xls

** (gnumeric:16159): WARNING **: Configured default font not available,
trying f
allback...

** (gnumeric:16159): WARNING **: font_name == NULL, Using 9.000000

** (gnumeric:16159): WARNING **: font_name == NULL, Using 9.000000
mexican_office_expenses_2003.xls
Excel 95

(gnumeric:16159): Gtk-WARNING **: Unable to locate theme engine in
module_path:
"bluecurve",

(gnumeric:16159): gnumeric:read-WARNING **: EXCEL: color index (110) is
out of r
ange (0..56). Defaulting to black

(gnumeric:16159): gnumeric:read-WARNING **: EXCEL: color index (110) is
out of r
ange (0..56). Defaulting to black

(gnumeric:16159): gnumeric:read-WARNING **: EXCEL: color index (110) is
out of r
ange (0..56). Defaulting to black

(gnumeric:16159): gnumeric:read-WARNING **: EXCEL: color index (110) is
out of r
ange (0..56). Defaulting to black

** (gnumeric:16159): WARNING **: Unknown Builtin function : AND

** (gnumeric:16159): WARNING **: Unknown Builtin function : IF

** (gnumeric:16159): WARNING **: Unknown Builtin function : OR


Went to plugins and activated all plugins, exited gnumeric to try to
repload it, it crashed while exiting	



Debugging Information:

Backtrace was generated from '/home/chema/cvs/gnome2/bin/gnumeric'

[New Thread 8192 (LWP 16159)]
0x420ae169 in wait4 () from /lib/i686/libc.so.6

Thread 1 (Thread 8192 (LWP 16159))

  • #0 wait4
    from /lib/i686/libc.so.6
  • #1 __DTOR_END__
    from /lib/i686/libc.so.6
  • #2 waitpid
    from /lib/i686/libpthread.so.0
  • #3 libgnomeui_segv_handle
    at gnome-ui-init.c line 646
  • #4 __pthread_sighandler
    from /lib/i686/libpthread.so.0
  • #5 <signal handler called>
  • #6 gnumeric_ascii_strcase_hash
    at gutils.c line 312




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-03-28 14:11 -------

Reassigning to the default owner of the component, jody@gnome.org.

Comment 1 Chema Celorio 2003-03-28 19:15:54 UTC
Also got:
** (gnumeric:16159): WARNING **: (leak) Symbol [and] redefined.


** (gnumeric:16159): WARNING **: (leak) Symbol [or] redefined.


** (gnumeric:16159): WARNING **: (leak) Symbol [if] redefined.

Comment 2 Elijah Newren 2003-03-28 22:02:10 UTC
FWIW, this appears to be a unique stack trace, according to the
simple-dup-finder.  Marking severity->critical (it's a crasher),
adding bugsquad keyword, and marking as new.
Comment 3 Morten Welinder 2003-03-30 23:08:52 UTC
Confirming leak and crash.  (The leaks are unimportant.)
Comment 4 Morten Welinder 2003-03-30 23:23:02 UTC
Crash has been fixed ==> downgrading.

Basically the symbol gets defined twice: once as a placeholder and
once as a function.  On exit, the two owners both try to delete the
function entry.  Boom!

It isn't clear to me what we should do here, apart from not crashing.
Therefore leaving open.

Elijah Newren: this was never really critical since the crash was on
exit with no data loss possible.
Comment 5 Jon Kåre Hellan 2005-07-12 20:00:24 UTC
Tried to reproduce this.
Disabled the Logic functions plugin, exited, gnumeric, and started gnumeric with
a spreadsheet which used logic functions. Enabled Logic functions. Pressed F9.
Got  #NAME in the cells which depend on logic functions.

Is this correct? Or is enabling the plugin after reading the spreadsheet
supposed to work?
Comment 6 Jon Kåre Hellan 2006-10-23 18:58:31 UTC
Retitling - open bugs with crash in the title should preferably be crashers
Comment 7 Andreas J. Guelzow 2009-08-05 03:08:56 UTC
What exactly is left in this bug?
Comment 8 Jon Kåre Hellan 2009-08-05 05:34:56 UTC
What's left? "Doctor, It hurts when I hit my head against the wall."
Comment 9 Morten Welinder 2009-08-05 13:18:43 UTC
1. Disable Math.

2. Enter =sin(42) into A2.
--> Observe #NAME?

3. Enable Math.
--> No change

4. Recalc.
--> Still no change.


We should somehow upgrade the placeholder from (2) to a proper function.
Comment 10 Andreas J. Guelzow 2009-08-05 16:31:40 UTC
In view of comment #9 I am retitling.
Comment 11 Morten Welinder 2013-01-10 01:36:50 UTC
Created attachment 233134 [details] [review]
Tentative patch

I believe this fixes the issue by upgrading placeholders to stubs
when the plugin get activated.  It's a little more involved than I
am comfortable with right now.
Comment 12 Morten Welinder 2013-01-10 23:33:51 UTC
Created attachment 233198 [details] [review]
Updated patch

Patch updated to match current HEAD.
Comment 13 Morten Welinder 2013-01-11 01:06:44 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.