Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-25-2003, 09:55 AM   #1
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
SDL_mixer and OGG/vorbis

I am using the latest versions of both SDL_mixer and libvorbis. Every time I try to load an ogg file as music in SDL_mixer, it crashes with a SIGSEGV in the libvorbis function log(). A stack backtrace shows it happens whenever libvorbis is trying to initialize the decoder. I compared the SDL_mixer code to XMMS, and there is no significant difference, yet XMMS doesn't crash. I can use any other kind of music, and SDL_mixer works just fine.

Is this a problem in SDL_mixer, libvorbis, or my program?
Old 04-27-2003, 07:37 PM   #2
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Original Poster
Rep: Reputation: 30
Found it!

I feel like such an idiot...

I had a non-static variable called "log" that it was trying to use as a function, which will almost always cause a SIGSEGV. I made it static, and it works fine now.
Old 04-27-2003, 07:56 PM   #3
Registered: Dec 2002
Posts: 263

Rep: Reputation: 30
It's often enough to ask the question to come up with the answer yourself ! Tell me about it, I do know from experience.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install Ogg Vorbis Ian D Linux - General 1 08-30-2005 05:03 PM
Need an Ogg Vorbis encoder mark.johnson Linux - Software 4 03-07-2005 04:28 PM
SDL_mixer doesn't detect Ogg Vorbis libs Tim2000 Linux - Software 2 09-18-2004 11:29 PM
Ogg Vorbis anonE9 General 5 03-16-2003 10:23 AM
Ogg Vorbis figadiablo Slackware 4 10-15-2002 12:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration