• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Crash with SearchKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash with SearchKit


  • Subject: Crash with SearchKit
  • From: Martin Kahr <email@hidden>
  • Date: Thu, 17 Mar 2005 23:15:44 +0100

Hi

I'm loading a number of SearchKit Index File into memory and aggregate them into one SearchGroup.
Then I start a search on this group.
On some rare situations the app crashes during search. Unfortunatly I am unable to reproduce the problem on a machine to which I have direct access.


The stack trace of the crash dump is really strange. It seems like _StoreStreamWriteBytes (= 0x946511bc) has some infinte loop (e.g. because of some unknown condition).
Unfortunatly the stack trace does not reveal the initial caller but I think it happens when I call SKSearchResultsCreateWithQuery.
btw: Is the stack trace limited to 508 elements?


I have the following function call sequence:
1) initialize IndexRef out of NSData with SKIndexOpenWithData
2) create a SearchGroup out of a NSArray with IndexRefs by using SKSearchGroupCreate
3) search the group by using SKSearchResultsCreateWithQuery
4) copy search results with SKSearchResultsGetInfoInRange -


Initializing the IndexRefs by using SKIndexOpenWithMutableData with an NSMutableData has resulted in the same crash.

So - I am lost on this - has anyone a hint for me?

thanks in advance
   Martin

Crash Log Extract:

Thread 3 Crashed:
0 libSystem.B.dylib 0x90001b00 szone_size + 0
1 libSystem.B.dylib 0x9000a96c malloc_zone_realloc + 0x6c
2 com.apple.CoreFoundation 0x901b41bc __CFDataGrow + 0x64
3 com.apple.CoreFoundation 0x901bf808 CFDataSetLength + 0xdc
4 <<00000000>> 0x9466f080 0 + 0x9466f080
5 <<00000000>> 0x94653b90 0 + 0x94653b90
6 <<00000000>> 0x94652d24 0 + 0x94652d24
7 <<00000000>> 0x94653b24 0 + 0x94653b24
8 <<00000000>> 0x94651164 0 + 0x94651164
9 <<00000000>> 0x946511bc 0 + 0x946511bc
.... the same stack trace element ... as Number 9 until the last one (507)
507 <<00000000>> 0x946511bc 0 + 0x946511bc


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Self-scheduling threading
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: Re: Creating an admin account
  • Next by thread: Masking an NSImage
  • Index(es):
    • Date
    • Thread