CRASH in pjsua_create() on iOS 9 beta, iPhone 6, arm64. Even in demo app

LG
Leslie Godwin
Thu, Jul 16, 2015 5:18 AM

Hi there,

Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64.
(only this combination)
Even the demo app crashes.

iPhone 6 with armv7 is fine,
iPhone 6 with iOS 8.4 is fine,
iPhone 5s with iOS 9 arm64 is fine.

Our year old version on the store crashes as well, it might be an OS issue.

Humpf.
Anyone else experiencing the same issue?

  • thread #10: tid = 0x7c013, 0x000000019af7a364 libsystem_pthread.dylib`
    pthread_mutex_init + 260, stop reason = EXC_BAD_ACCESS (code=257,
    address=0x1468683e4)

    • frame #0: 0x000000019af7a364 libsystem_pthread.dylib`pthread_mutex_init
  • 260

    frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168

    frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116

    frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320

    frame #4: 0x000000010012153c ipjsua`pjsua_create + 820

    frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292

    frame #6: 0x0000000100086f00
    ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885

    frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate
    pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at
    ipjsuaAppDelegate.m:111

    frame #8: 0x0000000186b3e674 Foundation`NSThread__start + 984

    frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body + 156

    frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start +
    156

Hi there, Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64. (only this combination) Even the demo app crashes. iPhone 6 with armv7 is fine, iPhone 6 with iOS 8.4 is fine, iPhone 5s with iOS 9 arm64 is fine. Our year old version on the store crashes as well, it might be an OS issue. Humpf. Anyone else experiencing the same issue? * thread #10: tid = 0x7c013, 0x000000019af7a364 libsystem_pthread.dylib` *pthread_mutex_init* + 260, stop reason = EXC_BAD_ACCESS (code=257, address=0x1468683e4) * frame #0: 0x000000019af7a364 libsystem_pthread.dylib`pthread_mutex_init + 260 frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168 frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116 frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320 frame #4: 0x000000010012153c ipjsua`*pjsua_create* + 820 frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292 frame #6: 0x0000000100086f00 ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885 frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at ipjsuaAppDelegate.m:111 frame #8: 0x0000000186b3e674 Foundation`__NSThread__start__ + 984 frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body + 156 frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start + 156
M
Ming
Fri, Jul 17, 2015 3:17 AM

Hi Leslie,

Please define this in your pjlib/include/pj/config_site.h
#undef PJ_POOL_ALIGNMENT
#define PJ_POOL_ALIGNMENT 8

And rebuild the library.

We'll fix our configure script so this can be properly auto-detected.

Best regards,
Ming

On Thu, Jul 16, 2015 at 1:18 PM, Leslie Godwin leslie.godwin@gmail.com wrote:

Hi there,

Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64.
(only this combination)
Even the demo app crashes.

iPhone 6 with armv7 is fine,
iPhone 6 with iOS 8.4 is fine,
iPhone 5s with iOS 9 arm64 is fine.

Our year old version on the store crashes as well, it might be an OS issue.

Humpf.
Anyone else experiencing the same issue?

  • thread #10: tid = 0x7c013, 0x000000019af7a364
    libsystem_pthread.dylib`pthread_mutex_init + 260, stop reason =
    EXC_BAD_ACCESS (code=257, address=0x1468683e4)

    • frame #0: 0x000000019af7a364 libsystem_pthread.dylib`pthread_mutex_init
  • 260

    frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168

    frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116

    frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320

    frame #4: 0x000000010012153c ipjsua`pjsua_create + 820

    frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292

    frame #6: 0x0000000100086f00
    ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885

    frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate
    pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at
    ipjsuaAppDelegate.m:111

    frame #8: 0x0000000186b3e674 Foundation`NSThread__start + 984

    frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body + 156

    frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start +
    156


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Leslie, Please define this in your pjlib/include/pj/config_site.h #undef PJ_POOL_ALIGNMENT #define PJ_POOL_ALIGNMENT 8 And rebuild the library. We'll fix our configure script so this can be properly auto-detected. Best regards, Ming On Thu, Jul 16, 2015 at 1:18 PM, Leslie Godwin <leslie.godwin@gmail.com> wrote: > Hi there, > > Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64. > (only this combination) > Even the demo app crashes. > > iPhone 6 with armv7 is fine, > iPhone 6 with iOS 8.4 is fine, > iPhone 5s with iOS 9 arm64 is fine. > > Our year old version on the store crashes as well, it might be an OS issue. > > Humpf. > Anyone else experiencing the same issue? > > > > * thread #10: tid = 0x7c013, 0x000000019af7a364 > libsystem_pthread.dylib`pthread_mutex_init + 260, stop reason = > EXC_BAD_ACCESS (code=257, address=0x1468683e4) > > * frame #0: 0x000000019af7a364 libsystem_pthread.dylib`pthread_mutex_init > + 260 > > frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168 > > frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116 > > frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320 > > frame #4: 0x000000010012153c ipjsua`pjsua_create + 820 > > frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292 > > frame #6: 0x0000000100086f00 > ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885 > > frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate > pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at > ipjsuaAppDelegate.m:111 > > frame #8: 0x0000000186b3e674 Foundation`__NSThread__start__ + 984 > > frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body + 156 > > frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start + > 156 > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
LG
Leslie Godwin
Sat, Jul 18, 2015 4:09 AM

Thanks (-:
Worked. This was defiantly the issue.

On Fri, 17 Jul 2015 at 5:18 AM Ming ming@teluu.com wrote:

Hi Leslie,

Please define this in your pjlib/include/pj/config_site.h
#undef PJ_POOL_ALIGNMENT
#define PJ_POOL_ALIGNMENT 8

And rebuild the library.

We'll fix our configure script so this can be properly auto-detected.

Best regards,
Ming

On Thu, Jul 16, 2015 at 1:18 PM, Leslie Godwin leslie.godwin@gmail.com
wrote:

Hi there,

Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64.
(only this combination)
Even the demo app crashes.

iPhone 6 with armv7 is fine,
iPhone 6 with iOS 8.4 is fine,
iPhone 5s with iOS 9 arm64 is fine.

Our year old version on the store crashes as well, it might be an OS

issue.

Humpf.
Anyone else experiencing the same issue?

  • thread #10: tid = 0x7c013, 0x000000019af7a364
    libsystem_pthread.dylib`pthread_mutex_init + 260, stop reason =
    EXC_BAD_ACCESS (code=257, address=0x1468683e4)

    • frame #0: 0x000000019af7a364

libsystem_pthread.dylib`pthread_mutex_init

  • 260

    frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168

    frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116

    frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320

    frame #4: 0x000000010012153c ipjsua`pjsua_create + 820

    frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292

    frame #6: 0x0000000100086f00
    ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885

    frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate
    pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at
    ipjsuaAppDelegate.m:111

    frame #8: 0x0000000186b3e674 Foundation`NSThread__start + 984

    frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body +

156

 frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start
Thanks (-: Worked. This was defiantly the issue. On Fri, 17 Jul 2015 at 5:18 AM Ming <ming@teluu.com> wrote: > Hi Leslie, > > Please define this in your pjlib/include/pj/config_site.h > #undef PJ_POOL_ALIGNMENT > #define PJ_POOL_ALIGNMENT 8 > > And rebuild the library. > > We'll fix our configure script so this can be properly auto-detected. > > Best regards, > Ming > > On Thu, Jul 16, 2015 at 1:18 PM, Leslie Godwin <leslie.godwin@gmail.com> > wrote: > > Hi there, > > > > Initialising pjsip 2.4 (pjsua_create) on iPhone 6, iOS 9 beta 3, arm64. > > (only this combination) > > Even the demo app crashes. > > > > iPhone 6 with armv7 is fine, > > iPhone 6 with iOS 8.4 is fine, > > iPhone 5s with iOS 9 arm64 is fine. > > > > Our year old version on the store crashes as well, it might be an OS > issue. > > > > Humpf. > > Anyone else experiencing the same issue? > > > > > > > > * thread #10: tid = 0x7c013, 0x000000019af7a364 > > libsystem_pthread.dylib`pthread_mutex_init + 260, stop reason = > > EXC_BAD_ACCESS (code=257, address=0x1468683e4) > > > > * frame #0: 0x000000019af7a364 > libsystem_pthread.dylib`pthread_mutex_init > > + 260 > > > > frame #1: 0x000000010008dae4 ipjsua`init_mutex + 168 > > > > frame #2: 0x000000010008e748 ipjsua`pj_mutex_create + 116 > > > > frame #3: 0x00000001000ebbf8 ipjsua`pjsip_endpt_create + 320 > > > > frame #4: 0x000000010012153c ipjsua`pjsua_create + 820 > > > > frame #5: 0x0000000100087514 ipjsua`app_init + 72 at pjsua_app.c:1292 > > > > frame #6: 0x0000000100086f00 > > ipjsua`pjsua_app_init(cfg=0x00000001001a0c38) + 56 at pjsua_app.c:1885 > > > > frame #7: 0x00000001000756f4 ipjsua`-[ipjsuaAppDelegate > > pjsuaStart](self=0x0000000145d77510, _cmd=0x0000000100157f77) + 280 at > > ipjsuaAppDelegate.m:111 > > > > frame #8: 0x0000000186b3e674 Foundation`__NSThread__start__ + 984 > > > > frame #9: 0x000000019af7bb18 libsystem_pthread.dylib`_pthread_body + > 156 > > > > frame #10: 0x000000019af7ba7c libsystem_pthread.dylib`_pthread_start > + > > 156 > > > > > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >