You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been embedding ruby on iOS, and have encountered some strange behavior on ARM64. This reggex segfaults the ruby interpreter on ARM64 but not on ARM7:
capture=/.*s\|(?<a>.+)\|.*/
The stack trace looks like this:
#0 0x000000010005c2a8 in mrb_class [inlined] at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/include/mruby/class.h:47
#1 0x000000010005c2a8 in mrb_context_run at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:1062
#2 0x000000010005a688 in mrb_run [inlined] at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:2376
#3 0x000000010005a664 in mrb_funcall_with_block at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:397
#4 0x0000000100059e94 in mrb_funcall_argv [inlined] at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:407
#5 0x0000000100059e78 in mrb_funcall at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:309
#6 0x0000000100074030 in regexp_pcre_initialize at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/mrbgems/mruby-regexp-pcre-master/src/mruby_regexp_pcre.c:130
#7 0x000000010005a5d0 in mrb_funcall_with_block at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:390
#8 0x0000000100034608 in mrb_instance_new at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/class.c:1205
#9 0x000000010005c5dc in mrb_context_run at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/vm.c:1105
#10 0x000000010006c988 in load_exec at /Users/omegadan/Development/ios/mruby/ios-ruby-embedded/mruby/src/parse.y:5599
#11 0x0000000100029e30 in cce_load_system at /Users/omegadan/Development/C/CCE.cpp:247
#12 0x0000000100025004 in -[ViewController bTest:] at /Users/omegadan/Development/ios/cce_objc/cce_objc/ViewController.mm:46
#13 0x000000018a885398 in -[UIApplication sendAction:to:from:forEvent:] ()
#14 0x000000018a86e474 in -[UIControl _sendActionsForEvents:withEvent:] ()
#15 0x000000018a884d34 in -[UIControl touchesEnded:withEvent:] ()
#16 0x000000018a8849c0 in -[UIWindow _sendTouchesForEvent:] ()
#17 0x000000018a87defc in -[UIWindow sendEvent:] ()
#18 0x000000018a851120 in -[UIApplication sendEvent:] ()
#19 0x000000018aaf22b8 in _UIApplicationHandleEventFromQueueEvent ()
#20 0x000000018a84f634 in _UIApplicationHandleEventQueue ()
#21 0x0000000185d90240 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()
#22 0x0000000185d8f4e4 in __CFRunLoopDoSources0 ()
#23 0x0000000185d8d594 in __CFRunLoopRun ()
#24 0x0000000185cb92d4 in CFRunLoopRunSpecific ()
#25 0x000000018f70f6fc in GSEventRunModal ()
#26 0x000000018a8b6f40 in UIApplicationMain ()
#27 0x0000000100025528 in main at /Users/omegadan/Development/ios/cce_objc/cce_objc/main.m:14
#28 0x000000019814ea08 in start ()
Thread 2Queue : com.apple.libdispatch-manager (serial)
Hi,
I've been embedding ruby on iOS, and have encountered some strange behavior on ARM64. This reggex segfaults the ruby interpreter on ARM64 but not on ARM7:
The stack trace looks like this:
The crash log looks like this:
I'd be happy to provide an example project to interested parties. I've also tested mattn//mruby-regexp-pcre and found the same behavior.
TIA,
Dan
The text was updated successfully, but these errors were encountered: