Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108497 - gnome stock ticker (in gnome-applets) is broken in 2.12 with some glibc versions
Summary: gnome stock ticker (in gnome-applets) is broken in 2.12 with some glibc versions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-08 07:23 UTC by Philip Lawatsch
Modified: 2005-10-14 19:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch gtik.c to include stdlib.h (gtik-strtod.patch,419 bytes, patch)
2005-10-08 07:24 UTC, Philip Lawatsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Lawatsch 2005-10-08 07:23:29 UTC
I've tracked down a bug in gnome-stockticker (2.12.) which results in the stock
quotes showing stupid values. The problem is that for some reason gtik.c (in
gnome-applets-2.12.0/gtik) does not include stdlib.h 
gtik.c does make use of the function "strtod" declared (actually defined!)  by
including stdlib.h 

Now at least glibc 2.3.5-r2 does not have a symbol for the usual 2 parameter
strtod function but only a symbol for the 3 parameter one. But there is an
inline function taking 2 parameters and this one calls the 3 parameter one with
a valid 3rd argument.
What happens now is that strtod gets implicitly declared and at run time
(dynamic link time actually) the 3 parameter one is called without a valid 3rd
parameter
-> A fix is to include stdlib.h.
I've been able to reproduce this on both x86 and amd64 with glibc2.3.5-r2

I'll attach a patch that will make it work for me

Reproducible: Always
Steps to Reproduce:
1. use glibc 2.3.5-r2
2. compile gnome-applets
3. add stock ticker applet to panel
4. observe invalid values for the stock quotes

Actual Results:  
strtod function used wrong -> values are screwed up


See the bug on http://bugzilla.gnome.org/show_bug.cgi?id=318172
Comment 1 Philip Lawatsch 2005-10-08 07:24:01 UTC
Created attachment 70153 [details, diff]
Patch gtik.c to include stdlib.h
Comment 2 John N. Laliberte (RETIRED) gentoo-dev 2005-10-14 19:49:17 UTC
fixed in 2.12.1 according to upstream bug ( and reporter ).