Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KSCrash dependency crashing #136

Closed
ferrous777 opened this issue Mar 24, 2017 · 13 comments
Closed

KSCrash dependency crashing #136

ferrous777 opened this issue Mar 24, 2017 · 13 comments
Assignees

Comments

@ferrous777
Copy link

This is my #1 crash right now.

in KSThread.c, EXC_BAD_ACCESS

-->if(dispatch_queue_ptr == NULL || idInfo->thread_handle == 0 || *dispatch_queue_ptr == NULL)
{
KSLOG_TRACE("This thread doesn't have a dispatch queue attached : %p", thread);
return false;
}

Crashed: Thread
0 KSCrash 0x10056738c ksthread_getQueueName (KSThread.c:82)
1 KSCrash 0x100567370 ksthread_getQueueName (KSThread.c:75)
2 KSCrash 0x10053f6c8 monitorCachedData (KSCrashCachedData.c:84)
3 libsystem_pthread.dylib 0x18d021850 + 240
4 libsystem_pthread.dylib 0x18d021760 _pthread_start + 282
5 libsystem_pthread.dylib 0x18d01ed94 thread_start + 4

@HazAT HazAT self-assigned this Mar 24, 2017
@HazAT
Copy link
Member

HazAT commented Mar 24, 2017

Can you please add some more information.
What version of sentry-swift are you running?
Cocoapods or Carthage?

@ferrous777
Copy link
Author

Cocoapods. I believe the issue is that when dispatch_queue_ptr is NULL attempting to dereference with *dispatch_queue_ptr is causing a crash.

from Podfile.lock

  • Sentry (2.1.2):
    • KSCrash (~> 1.15.3)

@JagCesar
Copy link

JagCesar commented Apr 5, 2017

Same here, this is the most common crash in our app too. :(

Versions we are using, from our Cartfile.resolved:

github "getsentry/sentry-swift" "2.1.5"
github "kstenerud/KSCrash" "1.15.3"

@HazAT
Copy link
Member

HazAT commented Apr 5, 2017

hey can you guys try to update to KSCrash 1.15.5 see kstenerud/KSCrash@e8977a4
This should fix the problem.

@JagCesar
Copy link

JagCesar commented Apr 5, 2017

Thank you @HazAT, will update this in the next rls.

@JagCesar
Copy link

JagCesar commented Apr 5, 2017

@HazAT You need to update https://github.com/getsentry/sentry-swift/blob/master/Cartfile and set the version to 1.15.5 if you want us to try it out.

@HazAT
Copy link
Member

HazAT commented Apr 5, 2017

@JagCesar it's in master now but I guess I need to make a new release

@JagCesar
Copy link

JagCesar commented Apr 5, 2017

8c299d2a966128b201f2cba394819d70_that-would-be-great-that-would-be-great-memes_526-440

@JagCesar
Copy link

@HazAT We're submitting an update to the App Store on Thursday, could you plz create a new release asap so we can get this issue fixed?

@HazAT
Copy link
Member

HazAT commented Apr 11, 2017

@JagCesar done ... I had to change the kscrash dependency to my fork because there was a misconfig in the header files (thats also the reason why it took so long).
But it should work now.

@JagCesar
Copy link

@HazAT Thank you! :) A minor thing would be to move your fork of KSCrash to the "getsentry" organisation instead of having it on your own private user. No need to do it right now, but would be great if you can do this for the next release. Keep up the good work!

@HazAT
Copy link
Member

HazAT commented Apr 12, 2017

@JagCesar will send a PR to KSCrash ... this is just temporary

@HazAT HazAT closed this as completed Apr 12, 2017
@ferrous777
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants