Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99004 - duke3d runs only as root
Summary: duke3d runs only as root
Status: RESOLVED DUPLICATE of bug 99590
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-14 06:36 UTC by Joël
Modified: 2005-08-02 21:34 UTC (History)
2 users (show)

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


Attachments
bzipped output of "strace -f duke3d 2>duke3d.log" (duke3d.log.bz2,115.32 KB, application/octet-stream)
2005-08-01 09:29 UTC, Joël
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2005-07-14 06:36:01 UTC
I've been seeing this for a while:

------------------------------------------------
joel@vaio-z1 ~ $ duke3d
                   Duke Nukem 3D v1.4 - Atomic Edition
                   Copyright (c) 1996 3D Realms Entertainment

Using Setup file: 'DUKE3D.CFG'
STUB: CONTROL_ClearAssignments (CONTROL_ClearAssignments, control.c:209)
Compiling: 'GAME.CON'.
Including: 'DEFS.CON'.
Including: 'USER.CON'.
Code Size:64840 bytes(1794 labels).
* Hold Esc to Abort. *
Loading art header.
Checking sound inits.
Unknown Multivoc error code.joel@vaio-z1 ~ $
------------------------------------------------

It runs fine as root..

This is with duke3d 20040817. I'm willing to try solving this, but when I've tried running strace, I got no success.
Comment 1 Zac Medico gentoo-dev 2005-07-31 19:31:26 UTC
No problem with sdl-mixer-1.2.5-r1, only sdl-mixer-1.2.6.  Pydance has the same
problem with sdl-mixer-1.2.6 (root privileges required).

This problem does not affect all sdl-mixer apps.  For example, sdlroids plays
sound normally with either version of sdl-mixer.

http://forums.gentoo.org/viewtopic-t-352229-highlight-.html
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-07-31 19:45:36 UTC
if it works for root but not user, that could indicate a permissions problem. 
Try running it under strace as the user and look for what's failing.  Can't
reproduce the problem over here.  1.2.6 is working fine across the board.
Comment 3 Joël 2005-08-01 04:26:18 UTC
I can confirm comment #1. Using sdl-mixer-1.2.5-r1, the game runs fine as a
user. Thanks for the workaround :-)

Regarding comment #2, unfortunately, it seems strace doesn't provide much info..
maybe because of a child process that isn't traced ?
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2005-08-01 07:22:04 UTC
running duke3d as root is a pretty bad idea.

use the -f flag to strace to trace child processes.
Comment 5 Joël 2005-08-01 09:29:56 UTC
Created attachment 64878 [details]
bzipped output of "strace -f duke3d 2>duke3d.log"

Hope this helps..
Comment 6 Zac Medico gentoo-dev 2005-08-01 20:08:19 UTC
It's a permission problem for the music.raw file that is automatically created
in the current directory when sdl-mixer-1.2.6 is built with USE="mikmod".  Some
games like dude3d and pydance put the music.raw into a directory where the user
does not necessarily have write permission (/usr/share/games/${PN}).
Comment 7 SpanKY gentoo-dev 2005-08-02 21:34:06 UTC

*** This bug has been marked as a duplicate of 99590 ***