Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195908 - app-admin/gkrellm-2.3.0 Segmentation fault when x11-plugins/gkrellm-radio-2.0.4 installed
Summary: app-admin/gkrellm-2.3.0 Segmentation fault when x11-plugins/gkrellm-radio-2.0...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jim Ramsay (lack) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-15 03:18 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2010-07-28 14:48 UTC (History)
1 user (show)

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


Attachments
/tmp/emerge--info (emerge--info,8.85 KB, text/plain)
2007-10-15 03:20 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details
/tmp/gkrellm_strace_log (gkrellm_strace_log,252.31 KB, text/plain)
2007-10-15 03:26 UTC, DEMAINE Benoît-Pierre, aka DoubleHP
Details

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-15 03:18:57 UTC
I was having a bug (segfault; I re-emerged all ebuilds listed by something like
emerge -ep world |grep krellm

emerge -va1  app-admin/gkrellm x11-themes/gkrellm-themes x11-plugins/gkrellm-reminder x11-plugins/gkrellm-radio  x11-plugins/gkrellm-xkb x11-plugins/gkrellmwireless x11-plugins/gkrellmlaunch x11-plugins/gkrelltop x11-plugins/gkrellm-gamma x11-plugins/gkrellm-countdown x11-plugins/gkrellm-hddtemp x11-plugins/gkrellm-leds  x11-plugins/gkrellm-volume x11-plugins/gkrellmss x11-plugins/gkrellmms

and bug persists:

dhp@moon_gen_2:~/.gkrellm2/themes/dirtchamber$ gkrellm

(gkrellm:21060): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(gkrellm:21060): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(gkrellm:21060): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(gkrellm:21060): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

(gkrellm:21060): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
Segmentation fault


I have been using this skin for years (at least 2 or 3).

More logs coming.
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-15 03:20:17 UTC
Created attachment 133491 [details]
/tmp/emerge--info


My flags:
root@moon_gen_2:~# emerge -va1  app-admin/gkrellm x11-themes/gkrellm-themes x11-plugins/gkrellm-reminder x11-plugins/gkrellm-radio  x11-plugins/gkrellm-xkb x11-plugins/gkrellmwireless x11-plugins/gkrellmlaunch x11-plugins/gkrelltop x11-plugins/gkrellm-gamma x11-plugins/gkrellm-countdown x11-plugins/gkrellm-hddtemp x11-plugins/gkrellm-leds  x11-plugins/gkrellm-volume x11-plugins/gkrellmss x11-plugins/gkrellmms

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-admin/gkrellm-2.3.0  USE="X gnutls hddtemp lm_sensors nls ssl" 0 kB
[ebuild   R   ] x11-themes/gkrellm-themes-0.1  0 kB
[ebuild   R   ] x11-plugins/gkrellm-reminder-2.0.0  0 kB
[ebuild   R   ] x11-plugins/gkrellm-radio-2.0.4  USE="lirc" 0 kB
[ebuild   R   ] x11-plugins/gkrellm-xkb-1.05  0 kB
[ebuild   R   ] x11-plugins/gkrellmwireless-2.0.3  0 kB
[ebuild   R   ] x11-plugins/gkrellmlaunch-0.5  0 kB
[ebuild   R   ] x11-plugins/gkrelltop-2.2.6-r1  0 kB
[ebuild   R   ] x11-plugins/gkrellm-gamma-2.03-r1  0 kB
[ebuild   R   ] x11-plugins/gkrellm-countdown-0.1.2  0 kB
[ebuild   R   ] x11-plugins/gkrellm-hddtemp-0.2_beta-r1  0 kB
[ebuild   R   ] x11-plugins/gkrellm-leds-0.8.1  0 kB
[ebuild   R   ] x11-plugins/gkrellm-volume-2.1.13  USE="alsa" 0 kB
[ebuild   R   ] x11-plugins/gkrellmss-2.6  USE="alsa esd nls" 0 kB
[ebuild   R   ] x11-plugins/gkrellmms-2.1.22-r1  0 kB

Total: 15 packages (15 reinstalls), Size of downloads: 0 kB
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-15 03:26:22 UTC
Created attachment 133492 [details]
/tmp/gkrellm_strace_log



Hope this is helpfull.

hmmm, maybe it's again that /dev/radio bug I met on debian 4 years ago ...

or gettimeofday() call ? I am having "time problems" with mplayer since my last update 12h ago: movies are played about 8% too fast; maybe something wrong in the RTC driver ? Linux API ? ...
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2007-10-15 03:32:10 UTC
emerge -C x11-plugins/gkrellm-radio
fixed it.

Changing topic from
> app-admin/gkrellm-2.3.0 Segmentation fault

to
> app-admin/gkrellm-2.3.0 Segmentation fault when x11-plugins/gkrellm-radio-2.0.4 installed

Thus removing bug 195522 block.

I tried to reproduce again:
remerge => rebug
remove => solved
and so on ...
Comment 4 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-16 11:50:38 UTC
Indeed, there is a bug - If /dev/radio doesn't exist, this plugin blows up.

I may devise a simple "Don't segfault, just die slightly more sane" patch.
Comment 5 Jim Ramsay (lack) (RETIRED) gentoo-dev 2007-10-16 11:51:47 UTC
In the mean time I have removed it from the meta "gkrellm-plugins" package, just in case.  Hopefully you would only install this if you have a radio tuner card anyway, and would therefore have this device node present...
Comment 6 DEMAINE Benoît-Pierre, aka DoubleHP 2008-12-08 15:02:55 UTC
Still happens with app-admin/gkrellm-2.3.1
Comment 7 Jim Ramsay (lack) (RETIRED) gentoo-dev 2008-12-08 15:14:54 UTC
(In reply to comment #6)
> Still happens with app-admin/gkrellm-2.3.1
 
Yes, it's definitely due to a bug in the x11-plugins/gkrellm-radio plugin which has very little to do with gkrellm itself.  I'm sure every version of gkrellm will segfault in the same way if you try to initialize the gkrellm-radio plugin without a /dev/radio device present.  I just haven't had a chance to patch the plugin itself.

If you do, please post the patch here and I'll incorporate it into the gkrellm-radio plugin.
Comment 8 Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-07-27 17:28:41 UTC
Odd: I can't seem to reproduce with gkrellm-2.3.4.  Would you mind retesting with latest?
Comment 9 DEMAINE Benoît-Pierre, aka DoubleHP 2010-07-27 19:02:30 UTC
I will try, IIRC, the bug may depend on how devfs/udev creates the nodes ...

Some particular udev conf will create what the original author had on his box; but udev variations maye create node with "wrong" names; IIRC, /dev/radio vs /dev/radio0 ... so, a simple mv from one to an other may help repro.

May need weeks before I have time to bother about this in details.
Comment 10 Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-07-28 14:48:19 UTC
I am unable to reproduce this bug with gkrellm-2.3.4 on a system that has no /dev/radio present at all, this was probably fixed by some of the stability enhancements between gkrellm-2.3.0 and -2.3.4.