linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alessandro Suardi <alessandro.suardi@gmail.com>
To: ee21rh@surrey.ac.uk
Cc: linux-kernel@vger.kernel.org
Subject: Re: OpenOffice crashes due to incorrect access permissions on /dev/dri/card*
Date: Sat, 29 Jan 2005 18:40:13 +0100	[thread overview]
Message-ID: <5a4c581d05012909402ae321b8@mail.gmail.com> (raw)
In-Reply-To: <pan.2005.01.29.13.02.51.478976@surrey.ac.uk>

On Sat, 29 Jan 2005 13:02:51 +0000, Richard Hughes <ee21rh@surrey.ac.uk> wrote:
> On Sat, 29 Jan 2005 12:49:16 +0000, Richard Hughes wrote:
> > Note, that strace glxgears gives exactly the same output, going from 0 to
> > 14 and then seg-faulting, so it's *not just a oo problem*.
> 
> I know it's bad to answer your own post, but here goes.
> 
> I changed my /etc/udev/permissions.d/50-udev.permissions config to read:
> 
> dri/*:root:root:0666
> 
> changing it from
> 
> dri/*:root:root:0660
> 
> And oowriter and glxgears work from bootup. Shall I file a bug with udev?

Interesting. On my FC2 (without udev) under 2.6.11-rc2-bk5
both programs work fine with /dev/dri/card0 in its default
 permissions - 666 (obviously).

However, if I manually chmod /dev/dri/card0 to 660 I don't
 get a SEGV, but rather

[asuardi@incident asuardi]$ glxgears
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
711 frames in 5.0 seconds = 142.200 FPS
X connection to :0.0 broken (explicit kill or server shutdown).
[asuardi@incident asuardi]$ ooffice
libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering

And both still work.

Relevant strace portion from glxgears says

read(3, "\1\355\21\0\3\0\0\0\0\200\204\370\0\0\0\0\t\0\0\0\33\0"..., 32) = 32
readv(3, [{"PCI:1:0:0", 9}, {"\0\0\0", 3}], 2) = 12
geteuid32()                             = 41
stat64("/dev/dri", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dev/dri/card0", {st_mode=S_IFCHR|0660, st_rdev=makedev(226,
0), ...}) = 0
open("/dev/dri/card0", O_RDWR)          = -1 EACCES (Permission denied)
open("/dev/dri/card0", O_RDWR)          = -1 EACCES (Permission denied)
unlink("/dev/dri/card0")                = -1 EACCES (Permission denied)
geteuid32()                             = 41
stat64("/dev/dri", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dev/dri/card1", 0xbffff0dc)    = -1 ENOENT (No such file or directory)
...
stat64("/dev/dri", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dev/dri/card14", 0xbffff0dc)   = -1 ENOENT (No such file or directory)
write(2, "libGL error: failed to open DRM:"..., 57libGL error: failed
to open DRM: Operation not permitted
) = 57
write(2, "libGL error: reverting to (slow)"..., 52libGL error:
reverting to (slow) indirect rendering
) = 52
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0xb7b68000
write(3, "\222\3\2\0\0\0\0\0\220\24$\2\1\0\0\0\2\0\0\0\200\10\0\0"...,
2544) = 2544

This with libGL and glxgears from FC2 updated RPMs 
 xorg-x11-Mesa-libGL-6.7.0-11
 xorg-x11-tools-6.7.0-11

--alessandro
 
 "And every dream, every, is just a dream after all"
  
    (Heather Nova, "Paper Cup")

  reply	other threads:[~2005-01-29 17:40 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-22 16:56 [Bug 4081] New: OpenOffice crashes while starting due to a threading error Martin J. Bligh
2005-01-22 17:33 ` Matthias-Christian Ott
2005-01-23  2:05   ` Felipe Alfaro Solana
2005-01-23  9:31     ` Matthias-Christian Ott
2005-01-23  2:38 ` Randy.Dunlap
2005-01-23 12:22   ` Martin Josefsson
2005-01-26 21:25     ` Stephen Hemminger
2005-01-27  3:14       ` Parag Warudkar
2005-01-27 17:54         ` Trever L. Adams
2005-01-27 23:49       ` Parag Warudkar
2005-01-28  2:38         ` Trever L. Adams
2005-01-28 17:31         ` Stephen Hemminger
2005-01-28 23:11           ` Parag Warudkar
2005-01-28 23:21           ` Lee Revell
     [not found]             ` <41FACEC5.6070703@comcast.net>
2005-01-28 23:57               ` Stephen Hemminger
2005-01-29 10:44                 ` Richard Hughes
2005-01-29 12:32                   ` Bernd Eckenfels
2005-01-29 12:49                     ` OpenOffice crashes due to incorrect access permissions on /dev/dri/card* Richard Hughes
2005-01-29 13:02                       ` Richard Hughes
2005-01-29 17:40                         ` Alessandro Suardi [this message]
2005-01-29 19:25                         ` Jon Smirl
2005-01-29 19:57                           ` Trever L. Adams
2005-01-31  2:34                             ` Trever L. Adams
2005-01-29 20:36                           ` Lee Revell
2005-01-29 20:40                             ` Dr. David Alan Gilbert
2005-01-29 20:48                               ` Lee Revell
2005-01-29 20:57                               ` Parag Warudkar
2005-01-29 21:05                                 ` DRI (was Re: OpenOffice crashes due to incorrect access permissions on /dev/dri/card*) Lee Revell
2005-01-29 23:16                                   ` Dave Airlie
2005-01-29 20:40                           ` OpenOffice crashes due to incorrect access permissions on /dev/dri/card* Gene Heskett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5a4c581d05012909402ae321b8@mail.gmail.com \
    --to=alessandro.suardi@gmail.com \
    --cc=ee21rh@surrey.ac.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).