Project

General

Profile

Bug #1449

libobj2 weak reference issue

Added by Andrew Druk almost 3 years ago.

Status:
Open
Priority:
Normal
Category:
libobjc2
Target version:
Start date:
07/21/2016
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
arm, x86_64
Host OS:
OS X
Toolchain:
clang-3.7
Android version:
6.0 (android-23)
CrystaX Version:

Description

#import <stdio.h>
#import <Foundation/Foundation.h>

int main(){
    @autoreleasepool{
        NSObject * __weak someObject = [[NSObject alloc] init];
    }
    return 0;
}
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'Android/sdk_google_phone_x86_64/generic_x86_64:N/NPD56O/2964822:userdebug/test-keys'
Revision: '0'
ABI: 'x86_64'
pid: 3350, tid: 3350, name: ddle.objcsample  >>> com.readdle.objcsample <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
    rax 0000000000000000  rbx 00007ffee9cf3ac8  rcx 0000000000000000  rdx 0000000000004001
    rsi 0000000000000000  rdi 00007ffee9cf3ac8
    r8  00007ffee9d95580  r9  0000000000000000  r10 0000000000000000  r11 0000000000000008
    r12 00007ffee9cb8bf0  r13 00007ffef7a3a0b0  r14 00007ffff22ee640  r15 00007ffff22ee640
    cs  0000000000000033  ss  000000000000002b
    rip 0000000000000000  rbp 00007ffff22ee0f0  rsp 00007ffff22edf98  eflags 0000000000000246
backtrace:
    #00 pc 0000000000000000  <unknown>
    #01 pc 0000000000029b4e  /data/app/com.readdle.objcsample-2/lib/x86_64/libobjc.so (objc_initWeak+46)

Also available in: Atom PDF