Project

General

Profile

Actions

Emulator Issues #391

closed

Segmentation fault Memory::ReadFast32

Added by mattmatteh over 15 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

What steps will reproduce the problem?

  1. svn checkout http://dolphin-emu.googlecode.com/svn/trunk/
    dolphin-emu-read-only
  2. cd dolphin-emu-read-only
  3. scons verbose=yes flavor=debug
  4. cd Binary/Linux-x86_64
  5. gdb ./Dolphin
  6. run
  7.    with in the app open zelda.gcm
    
  8. bt

matt@noose ~/dolphin-emu-read-only/Binary/Linux-x86_64 $ gdb ./Dolphin
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/matt/dolphin-emu-read-only/Binary/Linux-x86_64/Dolphin
[Thread debugging using libthread_db enabled]
[New Thread 0x2b111b83aae0 (LWP 26047)]
Symbol DllDebugger missing in Plugins/libPlugin_PadSimple.so (error:
Plugins/libPlugin_PadSimple.so: undefined symbol: DllDebugger)
Failed to load plugin Plugins/libPlugin_nJoy_Testing.so - unknown error.

Symbol DllDebugger missing in Plugins/libPlugin_Wiimote.so (error:
Plugins/libPlugin_Wiimote.so: undefined symbol: DllDebugger)
Symbol DllDebugger missing in Plugins/libPlugin_DSP_NULL.so (error:
Plugins/libPlugin_DSP_NULL.so: undefined symbol: DllDebugger)
Symbol DllDebugger missing in Plugins/libPlugin_nJoy_SDL.so (error:
Plugins/libPlugin_nJoy_SDL.so: undefined symbol: DllDebugger)
[New Thread 0x40100950 (LWP 26050)]
[New Thread 0x41b02950 (LWP 26051)]
wiiuse v0.12 loaded.
By: Michael Laforest <thepara[at]gmail{dot}com>
http://wiiuse.net http://wiiuse.sf.net
hci_get_route: Address family not supported by protocol
ERROR : Trying to compile at 0. LR=00000000

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x40100950 (LWP 26050)]
0x00000000004ba2ae in Memory::ReadFast32 (_Address=4294967292) at
Source/Core/Core/Src/HLE/../HW/Memmap.h:94
94 return Common::swap32(*(u32 *)(base + _Address));
(gdb) bt
#0 0x00000000004ba2ae in Memory::ReadFast32 (_Address=4294967292) at
Source/Core/Core/Src/HLE/../HW/Memmap.h:94
#1 0x00000000004b9830 in Jit64::GetBlockNumberFromAddress
(addr=4294967292) at Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:273
#2 0x00000000004b9dd7 in Jit64::GetOriginalCode (address=4294967292) at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:297
#3 0x0000000000483b37 in Memory::Read_Instruction (_Address=4294967292) at
Source/Core/Core/Src/HW/Memmap.cpp:760
#4 0x00000000004a1855 in PPCAnalyst::Flatten (address=0,
realsize=@0x400ffccc, st=@0x82ffa0, gpa=@0x82ffa8, fpa=@0x83012a) at
Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp:301
#5 0x00000000004b9013 in Jit64::DoJit (emaddress=0, b=@0x2aaab0028310) at
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp:322
#6 0x00000000004ba03b in Jit64::Jit (emAddress=0) at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:218
#7 0x000000004120104d in ?? ()
#8 0x0000000040101000 in ?? ()
#9 0x0000000040101000 in ?? ()
#10 0x0000000000000003 in ?? ()
#11 0x00002b1114ae8f80 in ?? () from /lib/libpthread.so.0
#12 0x00000000400ffe80 in ?? ()
#13 0x00002b111f5a87be in ?? () from Plugins/libPlugin_DSP_HLE.so
#14 0x00000000004b9805 in Jit64::EnterFastRun () at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:265
#15 0x00000000004eabbb in ~_Vector_impl (this=0x7fff9685ec50) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:82
#16 0x00000000004eb62c in ~_Vector_base (this=0x7fff9685ec50) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:119
#17 0x00000000004eb679 in ~vector (this=0x2b111613ca59) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:272
#18 0x0000000000418f92 in ~SCoreStartupParameter (this=Cannot access memory
at address 0xfffffffffffffff8
) at Source/Core/Core/Src/CoreParameter.h:29
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) quit

What is the expected output? What do you see instead? seg fault

What version of the product are you using? On what operating system?

gentoo

matt@noose ~/dolphin-emu-read-only/Binary/Linux-x86_64 $ emerge --info
Portage 2.1.4.5 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0,
2.6.24-gentoo-r8 x86_64)

System uname: 2.6.24-gentoo-r8 x86_64 AMD Athlon(tm) Dual Core Processor 4850e
Timestamp of tree: Mon, 01 Dec 2008 23:45:01 +0000
app-shells/bash: 3.2_p33
dev-lang/python: 2.4.4-r14, 2.5.2-r7
dev-util/cmake: 2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r2
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo
/etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks metadata-transfer sandbox sfperms
strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --timeout=180
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay-local"
SYNC="rsync://192.168.168.16/portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb blender-game bzip2
cairo cddb cdparanoia cli cpudetection cracklib crypt dbus devil dga dri
dts encode ffmpeg flac fortran gdbm gif gpm gtk iconv id3 id3tag
imagemagick imap isdnlog jpeg jpeg2k maps midi mikmod mmx mmxext mp3
mudflap multilib musepack ncurses nls nptl nptlonly objc ogg opengl openmp
pam pcre pdf perl plotutils png postscript pppd python qt3 qt4 quicktime
readline reflection sdl session speex spell spl sse sse2 ssl svg sysfs tcpd
teamarena theora tiff tk unicode vorbis x264 xanim xml xorg xv xvid zlib"
ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
mmap_emul mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2"
ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

Please provide any additional information below.

zelda.gcm md5sum efff89f2dd04f30884ffa9df62b71e31

tried crazy taxi too, here is the backtrace

matt@noose ~/dolphin-emu-read-only/Binary/Linux-x86_64 $ gdb ./Dolphin
GNU gdb 6.7.1
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/matt/dolphin-emu-read-only/Binary/Linux-x86_64/Dolphin
[Thread debugging using libthread_db enabled]
[New Thread 0x2ae5f6dcdae0 (LWP 26107)]
Symbol DllDebugger missing in Plugins/libPlugin_PadSimple.so (error:
Plugins/libPlugin_PadSimple.so: undefined symbol: DllDebugger)
Failed to load plugin Plugins/libPlugin_nJoy_Testing.so - unknown error.

Symbol DllDebugger missing in Plugins/libPlugin_Wiimote.so (error:
Plugins/libPlugin_Wiimote.so: undefined symbol: DllDebugger)
Symbol DllDebugger missing in Plugins/libPlugin_DSP_NULL.so (error:
Plugins/libPlugin_DSP_NULL.so: undefined symbol: DllDebugger)
Symbol DllDebugger missing in Plugins/libPlugin_nJoy_SDL.so (error:
Plugins/libPlugin_nJoy_SDL.so: undefined symbol: DllDebugger)
[New Thread 0x40100950 (LWP 26110)]
[New Thread 0x41b02950 (LWP 26111)]
wiiuse v0.12 loaded.
By: Michael Laforest <thepara[at]gmail{dot}com>
http://wiiuse.net http://wiiuse.sf.net
hci_get_route: Address family not supported by protocol
ERROR : Trying to compile at 0. LR=00000000

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x40100950 (LWP 26110)]
0x00000000004ba2ae in Memory::ReadFast32 (_Address=4294967292) at
Source/Core/Core/Src/HLE/../HW/Memmap.h:94
94 return Common::swap32(*(u32 *)(base + _Address));
(gdb) bt
#0 0x00000000004ba2ae in Memory::ReadFast32 (_Address=4294967292) at
Source/Core/Core/Src/HLE/../HW/Memmap.h:94
#1 0x00000000004b9830 in Jit64::GetBlockNumberFromAddress
(addr=4294967292) at Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:273
#2 0x00000000004b9dd7 in Jit64::GetOriginalCode (address=4294967292) at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:297
#3 0x0000000000483b37 in Memory::Read_Instruction (_Address=4294967292) at
Source/Core/Core/Src/HW/Memmap.cpp:760
#4 0x00000000004a1855 in PPCAnalyst::Flatten (address=0,
realsize=@0x400ffccc, st=@0x82ffa0, gpa=@0x82ffa8, fpa=@0x83012a) at
Source/Core/Core/Src/PowerPC/PPCAnalyst.cpp:301
#5 0x00000000004b9013 in Jit64::DoJit (emaddress=0, b=@0x2aaab0028290) at
Source/Core/Core/Src/PowerPC/Jit64/Jit.cpp:322
#6 0x00000000004ba03b in Jit64::Jit (emAddress=0) at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:218
#7 0x000000004120104d in ?? ()
#8 0x0000000040101000 in ?? ()
#9 0x0000000040101000 in ?? ()
#10 0x0000000000000003 in ?? ()
#11 0x00002ae5f007bf80 in ?? () from /lib/libpthread.so.0
#12 0x00000000400ffe80 in ?? ()
#13 0x00002ae5fab3b7be in ?? () from Plugins/libPlugin_DSP_HLE.so
#14 0x00000000004b9805 in Jit64::EnterFastRun () at
Source/Core/Core/Src/PowerPC/Jit64/JitCache.cpp:265
#15 0x00000000004eabbb in ~_Vector_impl (this=0x7fffbb2ce310) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:82
#16 0x00000000004eb62c in ~_Vector_base (this=0x7fffbb2ce310) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:119
#17 0x00000000004eb679 in ~vector (this=0x2ae5f16cfa59) at
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4/bits/stl_vector.h:272
#18 0x0000000000418f92 in ~SCoreStartupParameter (this=Cannot access memory
at address 0xfffffffffffffff8
) at Source/Core/Core/Src/CoreParameter.h:29
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

crazy taxi.gcm md5sum e903be751aacf4a237e33f2e5dd89822

Actions #1

Updated by hrydgard about 15 years ago

  • Status changed from New to Invalid

really old crash bug, probably not applicable any more.

Actions #2

Updated by anthony.meyer3 almost 15 years ago

i've got the same problem.
I start dolphin and when i launch a game i got : ERROR trying to compile at 0. LR =
00000000.
I'm on vista, on a newly bought HP HDX 16.
Any solution ?

Actions

Also available in: Atom PDF