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 169386 - gweather applet crash when LANG is set Greek
gweather applet crash when LANG is set Greek
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: gweather
2.9.x
Other Linux
: Normal major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-06 15:10 UTC by Nikos Charonitakis
Modified: 2005-03-21 16:44 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Nikos Charonitakis 2005-03-06 15:10:26 UTC
Version details: 2.9.91.1 via garnome
Distribution/Version: garnome

i tried to add weather applet on top panel but it crashes everytime
(Language=Greek).
Another test with English Language was succesful

output:
Backtrace was generated from '/home/gnome210/garnome/libexec/gweather-applet-2'

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1208748352 (LWP 7349)]
0x006a07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 741
  • #3 <signal handler called>
  • #4 weather_location_new
    at weather.c line 136

Comment 1 Christian Kirbach 2005-03-06 17:39:07 UTC
retitling as adding using German locale works.
Comment 2 Simos Xenitellis 2005-03-06 23:35:16 UTC
Trace line #1 shows that a buffer overflow takes place in function
weather_location_new(), which appears to be in gnome-applets/gweather/weather.c
(line: 1545). The caller appears to be at line 212. untrans_name has the value
0xce95cea4 which is an invalid value. trans_name points to a similar value,
0xce9dcea5.

Both these values look remarkably like Unicode, UTF-8 encoding.
Running 
$ perl -e 'printf "%c%c%c%c", 0xce, 0x95, 0xce, 0xa4'
ΕΤ       (this looks exactly like "ET" but it's in the Greek script)
$ perl -e 'printf "%c%c%c%c", 0xce, 0x95, 0xce, 0xa5'
ΕΥ       (this looks exactly like "EY" but it's in the Greek script)

Could you please check the location of the translated names of the
airports/cities (is it Locations.xml?) and specifically see any strange names
starting with those letters?
Comment 3 Nikos Charonitakis 2005-03-07 16:32:58 UTC
the error was in translated string DEFAULT_COORDINATES so i make it blank in
order to work.
I have to note that comments for translator were confusing  and unclear where is
the locations file? (Locations.xml?) for example.
Never mind, i hope not to suffer many crashes other languages that were unaware
of this issue.


#. TRANSLATOR: Change this to the default location code (2nd parameter) in the
#. gweather/Locations file
#. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK
NYZ076 nyc
#. so this should be translated as "KJFK"
#: gweather/gweather.schemas.in.h:1 gweather/weather.c:168
#: gweather/weather.c:173
msgid "DEFAULT_CODE"
msgstr "LGAV"

#: gweather/gweather.schemas.in.h:2
msgid "DEFAULT_COORDINATES"
msgstr ""

#. TRANSLATOR: Change this to the default location name (1st parameter) in the
#. gweather/Locations file
#. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK
NYZ076 nyc
#. so this should be translated as "New York-JFK Arpt"
#: gweather/gweather.schemas.in.h:3 gweather/weather.c:147
#: gweather/weather.c:152 gweather/weather.c:153
msgid "DEFAULT_LOCATION"
msgstr "Athinai"

#. Translators: Change this to the default location radar (4th parameter) in the
#. gweather/Locations file
#. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK
NYZ076 nyc
#. so this should be translated as "nyc"
#: gweather/gweather.schemas.in.h:4 gweather/weather.c:200
#: gweather/weather.c:205
msgid "DEFAULT_RADAR"
msgstr "DEFAULT_RADAR"

#. TRANSLATOR: Change this to the default location zone (3rd parameter) in the
#. gweather/Locations file
#. For example for New York (JFK) the entry is loc14=New\\ York-JFK\\ Arpt KJFK
NYZ076 nyc
#. so this should be translated as "NYZ076"
#: gweather/gweather.schemas.in.h:5 gweather/weather.c:184
#: gweather/weather.c:189
msgid "DEFAULT_ZONE"
msgstr "DEFAULT_ZONE"
Comment 4 Simos Xenitellis 2005-03-21 16:44:59 UTC
Bug fixed and I am closing it.
I am starting a new thread on gnome-i18n about what the translators should put
for the DEFAULT_* strings in gnome-applets/gweather/