Segmentation fault after running for 10 seconds

Bug #881743 reported by Joseph S
58
This bug affects 13 people
Affects Status Importance Assigned to Milestone
fceux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

this only seems to be affecting the 64 bit version, its fine on my 32-bit netbook, whenever you try to play a game it either instantly crashes or it plays then 10-15 seconds later the app crashes, running it in the terminal reveals its a segmentation fault.
it looks like its crashing at "Loading SDL sound with pulse driver..."

What You Expected to Happen: The emulator to run the game with sound.
What happened instead: The emulator crashes with a Segmentation Fault.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: fceux 2.1.5+repack-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Tue Oct 25 20:31:02 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: fceux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Joseph S (supermariolinux) wrote :
Revision history for this message
Joseph S (supermariolinux) wrote :

No one else has this problem?

This is still affecting me and is a real problem, will try reinstalling to see if it occurs again.

Again this is happening on x86_64(64-Bit) not the normal x86(32-Bit) version.

Revision history for this message
Joseph S (supermariolinux) wrote :

Today I ran the program with strace and it didn't crash, but without strace i still have the same issue,
interestingly i also got this to appear one time, when fceux crashed from the command line

*** glibc detected *** fceux: double free or corruption (!prev): 0x0000000001bbf250 ***
Segmentation fault

why would the program not crash when running with strace?
I thought strace records system calls and signals of a program, why would it work with it, and
not by itself?

why does this only affect me? i even have a different motherboard, ram, and CPU now then when i first reported this. and i
still have the same exact problem.

please help.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

It's working fine here en amd64. Could please try moving $HOME/.fceux to somewhere else and restart the game? If it's not working, could you try purging fceux (with sudo apt-get purge fceux), deleting $HOME/.fceux and reinstall it?

thanks,
Fabrice

Revision history for this message
Joseph S (supermariolinux) wrote :

ok, just tried all of that and it still segfaults. :(

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

Could you please follow the instructions at https://wiki.ubuntu.com/Backtrace#Generation and attach the generated files?

Thanks,
Fabrice

Revision history for this message
Joseph S (supermariolinux) wrote :

GRR, the program wont crash when its running through gdb,

but it crashes without it?

Revision history for this message
sean kelly (seankelly55) wrote :

I have the same issue with kubuntu 11.10 I386 version running on a 64bit capable CPU.

I can also get it to works by running with strace or if I specify the rom file via command line when starting fceux.

Furthermore it works fine if I run the program as root using sudo. Since sudo works could this be a problem with access rights between sdl and the pulse sound driver? And since it works if I don't use the GUI maybe its a bug with the sound config dialog in the GUI?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in fceux (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexander Toresson (alexander-toresson) wrote :

This is likely related to the binary-only nvidia driver, and may be caused by it. See: http://sourceforge.net/mailarchive/message.php?msg_id=29448314

Revision history for this message
Lukas Sabota (punkrockguy318) wrote :

The latest upstream version of fceux (2.2) resolves a variety of issues with the closed-source nvidia blob drivers -- perhaps the latest fceux could get backported in an attempt to resolve this issue?

Revision history for this message
Sélène Lacaze (lacaze-p) wrote :

Same problem for me. I'm running version 2.1.5 . I played ninja gaiden a long time, without any problem, (with a logitech precison).
Then I started double dragon 2 and here problems started.
Sometimes crashing after few seconds, sometimes at rom loading, ...
------------------
004e4ae0 PRG ROM: 8 x 16KiB
 CHR ROM: 0 x 8KiB
 ROM CRC32: 0xefb09075
 ROM MD5: 0xb480855fff883b20ba403a2009a7f13c
 Mapper #: 2
 Mapper name: UNROM
 Mirroring: Vertical
 Battery-backed: No
 Trained: No

Initializing video... Video Mode: 512 x 448 x 32 bpp
Loading SDL sound with pulse driver...
Erreur de segmentation
--------------------
My config:
phenom x4 9550
8800 GTS 320 meg (G80)
linux mint 13 xfce (ubuntu 12.04)
nvidia driver 313.09

I'm going to try version 2.2

Revision history for this message
Sélène Lacaze (lacaze-p) wrote :

Oops forgot this: linux mint 13 64 bits .

Revision history for this message
Sélène Lacaze (lacaze-p) wrote :

Version 2.2.1.1, apprently solved the problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.