Comment 9 for bug 41780

Revision history for this message
Frode Haugsgjerd (froh) wrote : Re: [Bug 41780] Re: Muse fails to start and segfaults.

on den 27.09.2006 klokka 22:26 (+0000) skreiv zettberlin:
> On dapper i can run muse whithout being setuid just perfectly after
> setting /proc/sys/dev/rtc/max-user-freq to 1024 - no seqfaults, no
> trouble at all.
>
> Dappers kernel is built with the option CONFIG_HZ being set at 1000 at
> least, 2.6.17-7-generic on edgy is configured with only 250 Hz, wich is
> too low for using this trick for muse.
>
> Correct me, if i am wrong, fact is, that muse(and rosegarden) runs on
> dapper like a charm after tweaking /dev/rtc - on edgy it is forced to
> use alsa-seq timer wich makes it impossible to work with loops as
> needed.
>
Muse runs fine setuid

froh@tigergut:~$ muse
no locale <muse_nn_NO.UTF-8>/</usr/share/muse/locale>
Trying RTC timer...
got timer = 14
QObject::connect: No such signal PartCanvas::horizontalScroll(int)
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'unnamed')
Arranger::configChanged -
bitmap /usr/share/muse/wallpapers/gray_rock.gif!
starting with default template
Arranger::configChanged -
bitmap /usr/share/muse/wallpapers/gray_rock.gif!
cca_open_socket: could not connect to host 'localhost', service '14541'
cca_init: could not connect to server 'localhost' - disabling ladcca

froh@tigergut:~$ ls -l /usr/bin/muse
-rwsr-xr-x 1 root root 2391900 2006-05-08 18:47 /usr/bin/muse

Without the almighty root capabilities, it's reduced to a bucket of bits
and bytes:

froh@tigergut:~$ sudo chmod -s /usr/bin/muse

froh@tigergut:~$ muse
No superuser privileges, using system timer fallback
no locale <muse_nn_NO.UTF-8>/</usr/share/muse/locale>
Trying RTC timer...
got timer = 12
QObject::connect: No such signal PartCanvas::horizontalScroll(int)
QObject::connect: (sender name: 'unnamed')
QObject::connect: (receiver name: 'unnamed')
Arranger::configChanged -
bitmap /usr/share/muse/wallpapers/gray_rock.gif!
starting with default template
  name2route: <alsa_pcm:playback_1> not found
  name2route: <alsa_pcm:playback_2> not found
Arranger::configChanged -
bitmap /usr/share/muse/wallpapers/gray_rock.gif!
Segmentation fault

froh@tigergut:~$ ls -l /dev/rtc
crw-rw---- 1 root audio 10, 135 2006-09-30 21:41 /dev/rtc

froh@tigergut:~$ groups
froh adm dialout cdrom floppy audio dip video plugdev games lpadmin
scanner admin
--
Frode Haugsgjerd <email address hidden>