Cant run SDL examples - please help!

Sam Lantinga wrote:

Dear SDL - usergroup
I have compiled two sdl demos, but when I try to ren the
executable, I get the message “Segmantation fault: core dumped” -
whatever that means.
PLEASE HELP !!

If you were running on an 8-bit display, this was a bug that was
just fixed in the latest CVS snapshot. Wait for SDL 1.0.4 to be
released.

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software

“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hello Mr Sam Lantinga
You were absolutely right.
I changed the color depth to 16bpp and now the demos are running !!
Thanks, and, by the way - is there any tutorial on compiling SDL apps
under Linux ???

Greetings , Oliver Kania

Well, I can try to help… :slight_smile:
Segmantation faults generally occur when a program attempts to use invalid
memory/unallocated memory or attempts an invalid instruction. In a
nutshell, it’s not a Good Thing :slight_smile: It could be a problem with the demo
program, or perhaps an internal SDL problem. (Gee, didn’t I just narrow that
one down!)

Which demos were you compiling?
Where’d they blow up? When SDL was going through it’s init?
Could you maybe send a backtrace from gdb?
Your system config might help too. What version of X? What’s your X
config? Video card?

BTW, seems like you’re a dangerous man…one who likes to use his system
under superuser privileges :slight_smile:
(no offense, just a joke)

  • Dave Archbold (PenguinDude)
    Applications Programmer
    West Teleservices
    Stuck at work, please send personal replies to davea at radiks.netOn Friday, February 04, 2000 2:55 AM, root [SMTP:lordolin at gmx.net] wrote:

Dear SDL - usergroup
I have compiled two sdl demos, but when I try to ren the
executable, I get the message “Segmantation fault: core dumped” -
whatever that means.
PLEASE HELP !!

Lord Olin

Dear SDL - usergroup
I have compiled two sdl demos, but when I try to ren the
executable, I get the message “Segmantation fault: core dumped” -
whatever that means.
PLEASE HELP !!

Lord Olin

Dear SDL - usergroup
I have compiled two sdl demos, but when I try to ren the
executable, I get the message “Segmantation fault: core dumped” -
whatever that means.
PLEASE HELP !!

If you were running on an 8-bit display, this was a bug that was
just fixed in the latest CVS snapshot. Wait for SDL 1.0.4 to be
released.

See ya!
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

I know I found an error under the 1.1 build of SDL from a few days
back… I sent a fix in to Sam though… it involved SDLEventQ->lock or
something… I found it under testgl, but it probably would have
affected any demo since it died in the SDL initialization process.

Bret> Well, I can try to help… :slight_smile:

Segmantation faults generally occur when a program attempts to use invalid
memory/unallocated memory or attempts an invalid instruction. In a
nutshell, it’s not a Good Thing :slight_smile: It could be a problem with the demo
program, or perhaps an internal SDL problem. (Gee, didn’t I just narrow that
one down!)

Which demos were you compiling?
Where’d they blow up? When SDL was going through it’s init?
Could you maybe send a backtrace from gdb?
Your system config might help too. What version of X? What’s your X
config? Video card?

BTW, seems like you’re a dangerous man…one who likes to use his system
under superuser privileges :slight_smile:
(no offense, just a joke)

  • Dave Archbold (PenguinDude)
    Applications Programmer
    West Teleservices
    Stuck at work, please send personal replies to davea at radiks.net

On Friday, February 04, 2000 2:55 AM, root [SMTP:lordolin at gmx.net] wrote:

Dear SDL - usergroup
I have compiled two sdl demos, but when I try to ren the
executable, I get the message “Segmantation fault: core dumped” -
whatever that means.
PLEASE HELP !!

Lord Olin