Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 9, 2011, 03:43 PM   #1
Madd the Sane
macrumors 6502
 
Join Date: Nov 2010
Location: Utah
debugging misaligned_stack_error_

I am having an issue with PCSX-R, mainly that the 32-bit build crashes with a call to misaligned_stack_error_ when fseek is called. Is there a way to fix it so that I don't have to use -mstackrealign? I can't debug using gdb when I use it.
__________________
Get out of my mind, idea! I already have an idea in here!
Madd the Sane is offline   0 Reply With Quote
Old Dec 10, 2011, 12:22 PM   #2
Madd the Sane
Thread Starter
macrumors 6502
 
Join Date: Nov 2010
Location: Utah
Wirelessly posted (Mozilla/5.0 (iPod; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

Okay, I figured out what was causing the issue: Apparently the i386 dynarec core that PCSX-R uses is 4-byte alligned, but Mac OS X code needs to be 16-byte alligned under i386. If it isn't, it crashes when it gets to a libSystem call.
__________________
Get out of my mind, idea! I already have an idea in here!
Madd the Sane is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
C++ XCode debugging kamy Mac Programming 5 Apr 1, 2014 02:11 AM
Xcode 4.6 debugging thrill4rishabh Mac Programming 10 Nov 28, 2013 04:59 PM
Debugging Daemons mehdies Mac Programming 5 Jun 20, 2013 02:46 AM
Debugging - When you were new to programming Tander iPhone/iPad Programming 33 Jun 11, 2013 04:22 PM
Debugging in TexShop A..J Mac Applications and Mac App Store 0 Dec 17, 2012 09:34 AM

Forum Jump

All times are GMT -5. The time now is 04:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC