Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Segmentation fault with the Simulator under VMware
« previous next »
  • Print
Pages: [1]

Author Topic: Segmentation fault with the Simulator under VMware  (Read 5176 times)

Offline dip

  • Member
  • *
  • Posts: 111
Segmentation fault with the Simulator under VMware
« on: June 25, 2007, 06:11:25 PM »
I created the simulator for iPod Video with 64MB using the latest svn sources using the VMware images from the wiki. It compiles without problems but when I run the simulator and try to play a song I get a the message "Segmentation fault (SDL Parachute Deployed)". It happens both when I browse the filetree as well when I use the database.

Any ideas what could be wrong?
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #1 on: June 26, 2007, 02:01:53 AM »
I forgot to mention that a normal build works without problems on my iPod 5.5 80GB, only the simulator crashes.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Segmentation fault with the Simulator under VMware
« Reply #2 on: June 26, 2007, 03:14:55 AM »
It sounds like a bug. Start debugging it or check if there's an existing bug report filed for it and if it isn't provide lots of info on how to repeat it in a new one.
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #3 on: June 26, 2007, 03:22:33 AM »
I tested it in cygwin and there the simulator works fine. So the problem only arises when I use VMware to compile the simulator. Before filing a bug report I just want to be sure that it is not a problem of my VMware installation. So if anyone can confirm the bug when using VMware this would be good.

The crash simply occurs when you select a song to play either through the filetree or through the database. The above error message is shown on the console window and the simulator gui is frozen.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Segmentation fault with the Simulator under VMware
« Reply #4 on: June 26, 2007, 03:29:58 AM »
Does it matter what codec the song is encoded with, or does it happen with any file format ?
Logged

Read The Manual Please

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #5 on: June 26, 2007, 04:13:05 AM »
Quote from: GodEater on June 26, 2007, 03:29:58 AM
Does it matter what codec the song is encoded with, or does it happen with any file format ?
I definitely tested it with ogg vorbis files and I guess also with mp3 files (I'm not completely sure since it's some days ago when I first tested it and today I only repeated the test with ogg files). At the moment I am at work but I will try it this night with different file types and report again.
Logged

Offline cpchan

  • Member
  • *
  • Posts: 198
Re: Segmentation fault with the Simulator under VMware
« Reply #6 on: June 26, 2007, 06:13:34 AM »
Why don't you run it with gdb and post the debug log?

Charles
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #7 on: June 26, 2007, 06:46:38 AM »
Quote from: cpchan on June 26, 2007, 06:13:34 AM
Why don't you run it with gdb and post the debug log?

Charles

Since I don't know that ;D. What do I have todo for that?
Logged

Offline cpchan

  • Member
  • *
  • Posts: 198
Re: Segmentation fault with the Simulator under VMware
« Reply #8 on: June 26, 2007, 07:18:58 AM »
Quote from: dip on June 26, 2007, 06:46:38 AM
Since I don't know that ;D. What do I have todo for that?

I presume you are on Windows. gdb (the GNU debugger) comes with Cygwin. Here is a quick tutorial:

http://www.cygwin.com/cygwin-ug-net/gdb.html

from the Cygwin manual.

Charles

Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #9 on: June 26, 2007, 07:28:05 AM »
Yes I am using Windows XP but as mentioned above, the cygwin version runs without problems. Only the VMware version (Debian Linux) of the simulator crashes. So I must run the debugger in VMware. Are there special instructions for that also?
Logged

Offline cpchan

  • Member
  • *
  • Posts: 198
Re: Segmentation fault with the Simulator under VMware
« Reply #10 on: June 26, 2007, 07:32:26 AM »
Quote from: dip on June 26, 2007, 07:28:05 AM
Yes I am using Windows XP but as mentioned above, the cygwin version runs without problems. Only the VMware version (Debian Linux) of the simulator crashes. So I must run the debugger in VMware. Are there special instructions for that also?

The debugger runs the same. However, here is a more detailed tutorial:

http://www.dirac.org/linux/gdb/

Charles
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #11 on: June 26, 2007, 07:44:13 PM »
Running the debugger and going straight ahead to the music directory to play an ogg vorbis file resulted in the following messages:

(gdb) run --background
Starting program: /home/user/clean/rockbox/sim/rockboxui --background
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 12194)]
Using background image.
[New Thread 32769 (LWP 12195)]
[New Thread 16386 (LWP 12196)]
[New Thread 32771 (LWP 12197)]
[New Thread 49156 (LWP 12198)]
[New Thread 65541 (LWP 12199)]
settings_reset()
reload_all_settings()
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/.rockbox/config.cfg'
We open the real file 'archos/.rockbox/fixed.cfg'
settings_apply()
We open the real file 'archos/.rockbox/icons/viewers.bmp'
totalsize: 1248
We open the real file 'archos/.rockbox/themes/.colours'
[New Thread 81926 (LWP 12200)]
[New Thread 98311 (LWP 12201)]
We open the real file 'archos/.rockbox/database_tmp.tcd'
We open the real file 'archos/.rockbox/tagnavi.config'
We open the real file 'archos/.rockbox/tagnavi_custom.config'
We open the real file 'archos/.rockbox/viewers.config'
We open the real file 'archos/.rockbox/icons/.icons'
We open the real file 'archos/.rockbox/themes/.colours'
[New Thread 114696 (LWP 12202)]
Unable to open audio:
We open the real file 'archos/.rockbox/langs/english.voice'
[New Thread 131081 (LWP 12203)]
[New Thread 147466 (LWP 12204)]
We open the real file 'archos/.rockbox/database_idx.tcd'
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/.rockbox/.playlist_control'
Adding 01-10 CC - Rubber Bullets.ogg
Adding 02-10 CC - Donna.ogg
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/Musik/10 CC/01-10 CC - Rubber Bullets.ogg'
We open the real file 'archos/.rockbox/codecs/vorbis.codec'
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/.rockbox/nvram.bin'
We open the real file 'archos/Musik/10 CC/02-10 CC - Donna.ogg'
Cannot find user-level thread for LWP 12196: no LWP to satisfy query
(gdb)

After exiting the debugger the following messages were shown:

(gdb) quit
The program is running.  Exit anyway? (y or n) y
Quitting: Cannot find thread 131081: invalid thread handle
user@debian:~/clean/rockbox/sim$ Fatal signal: Segmentation Fault (SDL Parachute Deployed)

When choosing an mp3 file the same crash happens.

When choosing a wma file it does not crash. However, the WPS is shown but the song is not playing, it remains at 0:00.
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: Segmentation fault with the Simulator under VMware
« Reply #12 on: July 07, 2007, 08:07:06 AM »
I downloaded now a completely new version of the vmware image to another Windows XP computer and installed vmplayer the first time on this computer. Then I checked out the current daily version of rockbox and compiled it for the simulator (iPod Video, 64MB).

I started the simulator did not change any settings, did not build the database and tried to play an audio file through the file browser. I got immediately the same segmentation fault so it should be clear that this is not related to my system.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Segmentation fault with the Simulator under VMware
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.086 seconds with 15 queries.