-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
dotnet/runtime
#45769Description
Steps to Reproduce
- Create a new watchOS project that targets watchOS 7.0+ using Xcode 12.0+ and the x86_64 arch
- Make sure you are using a package from xamarin-macios main branch (like xamarin.ios-14.9.0.141.pkg)
- Write some code that triggers a SIGFPE signal like
mono/mcs/class/System.Numerics/Test/System.Numerics/BigIntegerTest.cs
Lines 214 to 221 in c5b88ec
| [Test] | |
| public void DivRemByZero () { | |
| try { | |
| BigInteger c, d; | |
| c = BigInteger.DivRem (100, 0, out d); | |
| Assert.Fail ("#1"); | |
| } catch (DivideByZeroException) {} | |
| } |
- App crashes and exception is not caught, observe the following is printed in the system log
(UIKitApplication:com.alexsoto.helloWatch.watchkitapp[43c6][rb-legacy][64174]):
Service exited due to SIGFPE | sent by exc handler[64174]
Current Behavior
App crashes with
(UIKitApplication:com.alexsoto.helloWatch.watchkitapp[43c6][rb-legacy][64174]):
Service exited due to SIGFPE | sent by exc handler[64174]
Expected Behavior
App does not crash and SIGFPE signal is handled by the mono runtime
On which platforms did you notice this
[ x ] macOS
* watchOS 7.0+ 64 bits simulator
Version Used:
Mono JIT compiler version 6.12.0.93 (2020-02/620cf538206 Tue Aug 25 14:04:52 EDT 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:
SIGSEGV: altstack
Notification: kqueue
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: yes(610)
Suspend: hybrid
GC: sgen (concurrent by default)
Metadata
Metadata
Assignees
Labels
No labels