libgpg-error crash on iOS
I have an strange crash on iOS. This crash will only occurs when i close the app, not on runtime. (iOS 8.1.2 , 7.1.2) / iPad Mini 2, iPhone 5s, iPad 3
Thread 0 Crashed: 0 libsystem_kernel.dylib 0x393ebdfc __pthread_kill + 8 1 libsystem_c.dylib 0x3938b909 abort + 76 2 VLC 0x0072005d _gpgrt_lock_lock (posix-lock.c:154) 3 VLC 0x00720067 -[VLCTime .cxx_destruct] + 3974922 4 ??? 0x7f000000 0x0 + 0 5 VLC 0x007200c3 do_deinit (estream.c:501)
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Author
i can reproduce the crash with the version 1.18 of libgpg-error.
Iphone 6 plus / iOS 8.1.3 / latest build from today with vlckit 2.2.0 / release build (!! not debug !!)
- Start the app
- Start any mpeg stream
- Close the app (complete close ) -> crash
You can see the crash only in organizer or with any crash reporter like quincy kit.
posix-lock.c line 154 gpgrt_lock_lock
posix-lock.c line 200 _gpgrt_lock_unlock
estream.c line 402 _gpgrt_fflush
estream.c line 488 do_deinit
- Author
This patch can fix the problem. !!! NOT TESTED !!
diff --git a/contrib/src/gpg-error/rules.mak b/contrib/src/gpg-error/rules.mak index acfcea8..95f2cdd 100644 --- a/contrib/src/gpg-error/rules.mak +++ b/contrib/src/gpg-error/rules.mak @@ -16,7 +16,10 @@ endif $(MOVE) cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.linux-android.h ifdef HAVE_IOS - cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.$(HOST).h + cp $@/src/syscfg/lock-obj-pub.arm-apple-darwin.h $@/src/syscfg/lock-obj-pub.$(HOST).h +endif +ifeq ($(ARCH),aarch64) + cp $@/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h $@/src/syscfg/lock-obj-pub.$(HOST).h endif .gpg-error: libgpg-error
- Author
Update:
the if
ifeq ($(ARCH),aarch64)
did not working
???
- Author
Update: VLC for iOS 2.4.1 from the App Store has the issue too.
- start
- close the app (not in background)
- restart the app -> crash report
Suppose that ARCH should be
arm64
, or you can rely on HAVE_ARMV7A- Felix Paul Kühne assigned to @fkuehne
assigned to @fkuehne
added Component::Build system: Contribs Difficulty::medium labels
- Felix Paul Kühne changed milestone to %iOS 2.6
changed milestone to %iOS 2.6
This patch works for me on iOS device:
From 2f3fef8b5bad9b1d646e9bceba9d8e573d5b497b Mon Sep 17 00:00:00 2001 From: Gleb Pinigin <gpinigin@gmail.com> Date: Wed, 18 Mar 2015 12:21:09 +0600 Subject: [PATCH] gpg-error: duplicate lock object data using by VLC build system (fixes [#13194](https://code.videolan.org/videolan/vlc/-/issues/13194)) --- contrib/src/gpg-error/rules.mak | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/src/gpg-error/rules.mak b/contrib/src/gpg-error/rules.mak index acfcea8..7ce5519 100644 --- a/contrib/src/gpg-error/rules.mak +++ b/contrib/src/gpg-error/rules.mak @@ -16,7 +16,11 @@ endif $(MOVE) cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.linux-android.h ifdef HAVE_IOS - cp $@/src/syscfg/lock-obj-pub.arm-unknown-linux-androideabi.h $@/src/syscfg/lock-obj-pub.$(HOST).h +ifdef HAVE_ARMV7A + cp $@/src/syscfg/lock-obj-pub.arm-apple-darwin.h $@/src/syscfg/lock-obj-pub.$(HOST).h +else + cp $@/src/syscfg/lock-obj-pub.aarch64-apple-darwin.h $@/src/syscfg/lock-obj-pub.$(HOST).h +endif endif .gpg-error: libgpg-error -- 1.9.3 (Apple Git-50)
But there are no support for i386/x86_64 arch (simulator builds)
Hope it helps.
- Maintainer
Thanks a lot for sharing! I'll see what I can do for the simulator :)
- Maintainer
FYI, this is the only significant crash we see in the beta shared today. Btw. do you want to be added to our Testflight?
- Author
Replying to [comment:8 fkuehne]:
Thanks a lot for sharing! I'll see what I can do for the simulator :)
The simulator build don't have this issue. It's only arm related.
- Maintainer
Gleb, thanks again for your patch. It is merged now and works great! :)
Fixed in 2.6b2.
- Felix Paul Kühne added Status::fixed label
added Status::fixed label
- Felix Paul Kühne closed
closed
commit c417e384 Author: Gleb Pinigin gpinigin@gmail.com Date: Wed Mar 18 12:21:09 2015 +0600
contrib/gpg-error: fix crash in lock object on iOS (fixes [#13194](https://code.videolan.org/videolan/vlc/-/issues/13194)) Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Original author: gpinigin@gmail.com