Bug 29942 - Method swizzle crashes on 32 bit devices
Summary: Method swizzle crashes on 32 bit devices
Status: RESOLVED ANSWERED
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: XI 8.10
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-11 11:02 UTC by John Miller [MSFT]
Modified: 2015-05-12 09:13 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Crash Log (28.42 KB, application/octet-stream)
2015-05-11 11:02 UTC, John Miller [MSFT]
Details
Test Case (10.84 KB, application/zip)
2015-05-11 11:02 UTC, John Miller [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description John Miller [MSFT] 2015-05-11 11:02:20 UTC
Created attachment 11153 [details]
Crash Log

**Overview:**

   The following project method swizzles and crashes on 32 bit devices only. 

**Steps to Reproduce:**

   1. Run the attached sample on an iOS device with 32 bit hardware (iPhone 4, iPad 2, etc)

**Actual Results:**

   Application crashes. See attached crash information.

**Expected Results:**

   No crashes. 

**Build Date & Platform:**

   XI 8.10
   iOS 8.3

**Additional Information:**

   Does not crash on 64 bit devices.
Comment 1 John Miller [MSFT] 2015-05-11 11:02:35 UTC
Created attachment 11154 [details]
Test Case
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-05-12 09:13:40 UTC
The arguments to the newSizeWithAttributes function are off, probably because it's a stret function.

I've created a version that works, but it runs into another bug (bug #29970) - the new version is attached there.