Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27068 - zgv segfaults if X11 is running
Summary: zgv segfaults if X11 is running
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Highest normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 11:42 UTC by marat
Modified: 2003-10-27 12:46 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marat 2003-08-21 11:42:30 UTC
zgv works fine if I start it before I start X11,
but segfaults if I try to run it after I have started X11.

I re-emerged zgv and the graphics libraries that
zgv depends on (including glibc) but this did
not change the problem.

media-gfx/zgv-5.6
media-libs/svgalib-1.4.3-r4


Reproducible: Always
Steps to Reproduce:




Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r6 i586 AMD-K6(tm) 3D+ Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad
mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib gdbm berkdb slang readline arts tetex svga java guile X sdl gpm tcpd pam
libwww ssl perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla -gnome"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-march=k6-3 -mmmx -m3dnow -Os -pipe"
CXXFLAGS="-march=k6-3 -mmmx -m3dnow -Os -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

*** NOTE *** same thing happens with "-march=i586"
Comment 1 marat 2003-09-14 00:56:47 UTC
It may be that any application that uses
svgalib has this problem.

For example, the program 'fun', which is
one of the programs in the svgalib demo
directory, has exactly the same problem
as zgv -- it segfaults if X11 is running 
but not if X11 is not running.

[wdbh - 13sep02]
Comment 2 Markus Nigbur (RETIRED) gentoo-dev 2003-09-23 14:31:18 UTC
could you try this with media-libs/svgalib-1.9.17-r3?
Comment 3 marat 2003-09-24 15:25:22 UTC
> could you try this with media-libs/svgalib-1.9.17-r3?

  Thank you for this suggestion.

  It seems to have fixed the problem (whatever it was).

  Should I now mark this "bug" as fixed?
  
Comment 4 marat 2003-09-28 16:01:38 UTC
My preceding comment needs to be amended
because I only ran the svgalib demo program ('fun')
logged in as root.

Logged in as user, I get this error message:

 svgalib: Cannot open /dev/svga

Permissions on /dev/svga and /dev/svga_helper
are set as follows:

lr-xr-xr-x   1 root    root  13 Dec 31  1969 /dev/svga -> svga_helper/0

drwxr-xr-x   1 root    root   0 Dec 31  1969 /dev/svga_helper/

It is not obvious to me why these /dev entries should be dated
"Dec 31 1969" while all the others are dated "Sep 28" (today):

[gonzo]~/stage/issues/svgalib $ ls -ald /dev/* | grep  "Dec 31"         
      
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/cdroms/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/cpu/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/cua/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/discs/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/floppy/
crw-rw-rw-    1 root     root       1,   7 Dec 31  1969 /dev/full
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/ide/
crw-r-----    1 root     root       1,   2 Dec 31  1969 /dev/kmem
crw-r-----    1 root     root       1,   1 Dec 31  1969 /dev/mem
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/misc/
crw-rw-rw-    1 root     root       1,   3 Dec 31  1969 /dev/null
crw-rw-rw-    1 root     root     195,   0 Dec 31  1969 /dev/nvidia0
crw-rw-rw-    1 root     root     195, 255 Dec 31  1969 /dev/nvidiactl
crw-r-----    1 root     root       1,   4 Dec 31  1969 /dev/port
crw-------    1 root     root     108,   0 Dec 31  1969 /dev/ppp
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/printers/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/pts/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/pty/
crw-r--r--    1 root     root       1,   8 Dec 31  1969 /dev/random
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/scsi/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/sound/
lr-xr-xr-x    1 root     root           13 Dec 31  1969 /dev/svga -> svga_helper/0
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/svga_helper/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/tts/
crw-rw-rw-    1 root     root       5,   0 Dec 31  1969 /dev/tty
crw-r--r--    1 root     root       1,   9 Dec 31  1969 /dev/urandom
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/usb/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/vc/
drwxr-xr-x    1 root     root            0 Dec 31  1969 /dev/vcc/
crw-rw-rw-    1 root     root       1,   5 Dec 31  1969 /dev/zero

wdbh
Comment 5 Heinrich Wendel (RETIRED) gentoo-dev 2003-10-22 11:42:50 UTC
no idea...
Comment 6 marat 2003-10-27 12:30:44 UTC
I think the problem may be/have been
an "accidental" disappearance of

/dev/svga and /dev/svga_helper/[0-9]

Today, after getting a "can't open /dev/svga" message,
I noticed they were missing, so I re-emerged
/usr/portage/media-libs/svgalib/svgalib-1.9.17-r3.ebuild

This did not immediately recreate them
but they were back as soon as I ran zgv:

[root]/dev $ ls -ald svga svga_helper svga_helper/*
lr-xr-xr-x    1 root     root           13 Dec 31  1969 svga -> svga_helper/0
drwxr-xr-x    1 root     root            0 Dec 31  1969 svga_helper/
crwxr--r--    1 root     root     209,   0 Dec 31  1969 svga_helper/0
crwxr--r--    1 root     root     209,   1 Dec 31  1969 svga_helper/1
crwxr--r--    1 root     root     209,   2 Dec 31  1969 svga_helper/2
crwxr--r--    1 root     root     209,   3 Dec 31  1969 svga_helper/3
crwxr--r--    1 root     root     209,   4 Dec 31  1969 svga_helper/4
crwxr--r--    1 root     root     209,   5 Dec 31  1969 svga_helper/5
crwxr--r--    1 root     root     209,   6 Dec 31  1969 svga_helper/6
crwxr--r--    1 root     root     209,   7 Dec 31  1969 svga_helper/7

and AFAICT zgv works right for all users.

Bill
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-27 12:46:04 UTC
closing