SDL 1.2.7 and FreeBSD 5.2.1

Hi!

I misdirected this message previously, hope it will reach the correct place
now. Apologies.

I’ve compiled the SDL 1.2.7. (grabbed from the www.libsdl.org site) on
FreeBSD 5.2.1-RELEASE (i386). I’ve also compiled Aranym
(http://aranym.atari.org),
which uses the SDL library. The Aranym (which is an Atari ST/Falcon
environment emulator) can run both in X window or on full screen. The
problem is that if I request the program to start in full screen mode, it
kills the X server (SIGSEGV). I complained on the Aranym developer list,
they said that it is probably a bug in SDL. This is said to work fine on
Linux.

Any clues?–
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).

Whether or not this is caused by any sort of malfunction in SDL, it is
clear that if XFree86 is crashing for any reason, XFree86 is definitely
malfunctioning. I can’t really offer any solution, but I do wish you
luck, and hope what I’ve pointed out to you helps you solve the
problem. (I don’t want to seem like I’m “passing the buck” here, but
you may want to consider asking the XFree86 people.)On Jul 23, 2004, at 4:51 PM, Konrad Kokoszkiewicz wrote:

Hi!

I misdirected this message previously, hope it will reach the correct
place
now. Apologies.

I’ve compiled the SDL 1.2.7. (grabbed from the www.libsdl.org site) on
FreeBSD 5.2.1-RELEASE (i386). I’ve also compiled Aranym
(http://aranym.atari.org),
which uses the SDL library. The Aranym (which is an Atari ST/Falcon
environment emulator) can run both in X window or on full screen. The
problem is that if I request the program to start in full screen mode,
it
kills the X server (SIGSEGV). I complained on the Aranym developer
list,
they said that it is probably a bug in SDL. This is said to work fine
on
Linux.

Any clues?


CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Konrad Kokoszkiewicz wrote:

Hi!

I misdirected this message previously, hope it will reach the correct place
now. Apologies.

I’ve compiled the SDL 1.2.7. (grabbed from the www.libsdl.org site) on
FreeBSD 5.2.1-RELEASE (i386). I’ve also compiled Aranym
(http://aranym.atari.org),
which uses the SDL library. The Aranym (which is an Atari ST/Falcon
environment emulator) can run both in X window or on full screen. The
problem is that if I request the program to start in full screen mode, it
kills the X server (SIGSEGV). I complained on the Aranym developer list,
they said that it is probably a bug in SDL. This is said to work fine on
Linux.

Any clues?

We need to know more about the problem :
What version of X are you running ?

Does it still crash if you disable X11 video mode switching support in
SDL ? ./configure --disable-video-x11-vm

Could you send us an strace of a program running and crashing ? strace
myprogram will do.

Thanks,
Stephane

The
problem is that if I request the program to start in full screen
mode, it kills the X server (SIGSEGV). I complained on the Aranym
developer list, they said that it is probably a bug in SDL. This is
said to work fine on Linux.

We need to know more about the problem :
What version of X are you running ?

The one which comes with the 5.2.1 release:

XFree86 Version 4.3.0
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: FreeBSD 5.2.1 i386 [ELF]
Build Date: 13 February 2004
Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present

Does it still crash if you disable X11 video mode switching support in
SDL ? ./configure --disable-video-x11-vm

Yes.

Could you send us an strace of a program running and crashing ?

No, I cannot do this. The strace program is in ports, but a port cannot be
installed without network connectivity, and I don’t have network
connectivity under FreeBSD (to answer possible questions: the machine is a
laptop, the FreeBSD has no driver for its (win)modem - and the only form of
network connection I have here is a dialup).

If someone can compile the strace program for i386/FBSD 5.2.1, make a nice
tgz pack, and put to some URL for download, I’ll be able to do what you ask
me to do (I can download it under Windows, and then reboot to FreeBSD and
install there).–
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).

Out of curiousity, what video driver are you using for your XF86 server?On Sat, 2004-07-24 at 10:29, Konrad Kokoszkiewicz wrote:

XFree86 Version 4.3.0


Juan D. Espinoza
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040724/84fc642f/attachment.pgp

XFree86 Version 4.3.0

Out of curiousity, what video driver are you using for your XF86
server?

PCI:*(1:0:0) Trident Microsystems CyberBlade XPAi1 rev 130 (…)
(…)
Loading /usr/X11R6/lib/modules/drivers/trident_drv.o
Module trident: vendor="The XFree86 Project"
compiled for 4.3.0, module version = 1.0.0
Module class: XFree86 Video Driver
ABI class: XFree86 Video Driver, version 0.6
(…)
TRIDENT: driver for Trident chipsets: tvga9000, tvga9000i, tvga8900c,
tvga8900d, tvga9200cxr, tgui9400cxi, cyber9320, cyber9388, cyber9397,
cyber9397dvd, cyber9520, cyber9525dvd, cyberblade/e4, tgui9420dgi,
tgui9440agi, tgui9660, tgui9680, providia9682, providia9685,
cyber9382, cyber9385, 3dimage975, 3dimage985, blade3d, cyberbladei7,
cyberbladei7d, cyberbladei1, cyberbladei1d, cyberbladeAi1,
cyberbladeAi1d, bladeXP, cyberbladeXPAi1
(…)
Chipset cyberbladeXPAi1 found
(…)–
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).

Could you send us an strace of a program running and crashing ?

No, I cannot do this. The strace program is in ports, but a port cannot be
installed without network connectivity, and I don’t have network
connectivity under FreeBSD (to answer possible questions: the machine is a
laptop, the FreeBSD has no driver for its (win)modem - and the only form of
network connection I have here is a dialup).

If someone can compile the strace program for i386/FBSD 5.2.1, make a nice
tgz pack, and put to some URL for download, I’ll be able to do what you ask
me to do (I can download it under Windows, and then reboot to FreeBSD and
install there).

You can probably install strace without using ports, get the tarball and
patch it :

http://www.freebsd.org/cgi/pds.cgi?ports/devel/strace
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/strace/

Stephane

Whether or not this is caused by any sort of malfunction in SDL, it is
clear that if XFree86 is crashing for any reason, XFree86 is definitely
malfunctioning. I can’t really offer any solution, but I do wish you

Hmm, you may be right. Unfortunately, they (XFree86) have already managed
to do a 4.4.0 release, so I cannot really complain there before
downloading and installing the new version.

CVV–
Konrad M.Kokoszkiewicz
mail: draco at atari.org
http://draco.atari.org

** Ea natura multitudinis est,
** aut servit humiliter, aut superbe dominatur (Liv. XXIV,25)


** Taka to juz natura pospolstwa, ze albo sluzy ono unizenie,
** albo bezczelnie sie panoszy.

Le Fri, 23 Jul 2004 22:51:08 +0200
"Konrad Kokoszkiewicz" a ?crit:

I’ve compiled the SDL 1.2.7. (grabbed from the www.libsdl.org site) on
FreeBSD 5.2.1-RELEASE (i386). I’ve also compiled Aranym
(http://aranym.atari.org), which uses the SDL library. The Aranym (which
is an Atari ST/Falcon environment emulator) can run both in X window or
on full screen.

The problem is that if I request the program to start in full screen
mode, it kills the X server (SIGSEGV). I complained on the Aranym
developer list, they said that it is probably a bug in SDL. This is said
to work fine on Linux.

Could you try the testbitmap program in the test subdir of the SDL archive
? You can run it in fullscreen. There are some other programs in this
directory that you can run windowed or fullscreen. It would be easy to
check if SDL or Xfree on FreeBsd is faulty, or the emulator.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

The problem is that if I request the program to start in full screen
mode, it kills the X server (SIGSEGV). I complained on the Aranym
developer list, they said that it is probably a bug in SDL. This is
said to work fine on Linux.

Could you try the testbitmap program in the test subdir of the SDL
archive ? You can run it in fullscreen.

Good point, Patrice. testbitmap -fullscreen crashes it too. Here is the
strace output:

http://www.obta.uw.edu.pl/~draco/atari/testbitmap-output.tar.gz--
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).

You can probably install strace without using ports, get the tarball
and patch it :

http://www.freebsd.org/cgi/pds.cgi?ports/devel/strace
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/strace/

Thanks, got it to work.–
CVV
Konrad M.Kokoszkiewicz, http://draco.atari.org

** Ea natura multitudinis est,
** aut seruit humiliter, aut superbe dominatur.
** Taka to ju? natura posp?lstwa, albo s?u?alczo si? p?aszczy,
** albo bezczelnie si? panoszy. (Liwiusz XXIV, 25).

Le Sun, 25 Jul 2004 21:23:58 +0200
"Konrad Kokoszkiewicz" a ?crit:

The problem is that if I request the program to start in full screen
mode, it kills the X server (SIGSEGV). I complained on the Aranym
developer list, they said that it is probably a bug in SDL. This is
said to work fine on Linux.

Could you try the testbitmap program in the test subdir of the SDL
archive ? You can run it in fullscreen.

Good point, Patrice. testbitmap -fullscreen crashes it too. Here is the
strace output:

http://www.obta.uw.edu.pl/~draco/atari/testbitmap-output.tar.gz

A possible source of the problem could be the files in src/video/XFree86
that are built in SDL. According to the README lying there, it is Xfree
4.2.1 files. Maybe FreeBsd 5.2.1 uses a different XFree version of these
files, hence the crash. But it is pure speculation from myself, so FreeBsd
developpers should check this.–
Patrice Mandin
WWW: http://membres.lycos.fr/pmandin/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux