• 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
CFURLCreateDataAndPropertiesFromResource issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CFURLCreateDataAndPropertiesFromResource issue


  • Subject: CFURLCreateDataAndPropertiesFromResource issue
  • From: Arjun SM <email@hidden>
  • Date: Fri, 08 Mar 2013 11:21:37 +0530

Hi all,

I have an issue with CFURLCreateDataAndPropertiesFromResource() as the stack trace shows below. I am using CFURLCreateDataAndPropertiesFromResource() function in the daemon to pull some data from Google's server.  I was doing stress testing on my daemon and left it over night to run. I found in the morning that daemon had crashed. Below is an excerpt from the crash log.

Can anyone suggest what are the "alternatives/example code"  that i can use to accomplish the same task of making a HTTP request to pull data.

thanks for all the help,
~Arjun


Process:         sefiltd [793]
Path:            /usr/sbin/sefiltd
Identifier:      sefiltd
Version:         ???
Code Type:       X86 (Native)
Parent Process:  launchd [1]
User ID:         0

Date/Time:       2013-03-08 01:21:41.179 +0530
OS Version:      Mac OS X 10.8.2 (12C60)
Report Version:  10

Crashed Thread:  6  Dispatch queue: com.apple.cfprefsd.daemon.xpcq

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000

Application Specific Information:
Could not get context from Mach port: 0x10004002

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib            0x924d891a __psynch_mutexwait + 10
1   libsystem_c.dylib                 0x96e8b13b pthread_mutex_lock + 595
2   sefiltd                           0x00007edf CFilter::LogOut(LogOutMode) + 47
3   sefiltd                           0x00008688 CFilter::Idle() + 152
4   sefiltd                           0x00010e4a CFilter::FilterWorkLoop() + 1674
5   sefiltd                           0x00002f40 main + 640
6   sefiltd                           0x000028f9 start + 53

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib            0x924d99ae kevent + 10
1   libdispatch.dylib                 0x9a632c71 _dispatch_mgr_invoke + 993
2   libdispatch.dylib                 0x9a6327a9 _dispatch_mgr_thread + 53

Thread 2:
0   libsystem_kernel.dylib            0x924d88e2 __psynch_cvwait + 10
1   libsystem_c.dylib                 0x96e8a220 _pthread_cond_wait + 833
2   libsystem_c.dylib                 0x96f100a1 pthread_cond_wait$UNIX2003 + 71
3   sefiltd                           0x00003d0f ReportThread::Run() + 79
4   sefiltd                           0x00011831 McThread::ThreadFunc(void*) + 17
5   libsystem_c.dylib                 0x96e85557 _pthread_start + 344
6   libsystem_c.dylib                 0x96e6fcee thread_start + 34

Thread 3:
0   libsystem_kernel.dylib            0x924d8c8e __semwait_signal_nocancel + 10
1   libsystem_c.dylib                 0x96e79a8d nanosleep$NOCANCEL$UNIX2003 + 162
2   libsystem_c.dylib                 0x96edab09 sleep$NOCANCEL$UNIX2003 + 66
3   libdispatch.dylib                 0x9a634e4a _dispatch_thread_semaphore_create + 103
4   libdispatch.dylib                 0x9a634c5b _dispatch_barrier_sync_f_slow + 36
5   libdispatch.dylib                 0x9a6313fb dispatch_barrier_sync_f + 37
6   libdispatch.dylib                 0x9a633c3e dispatch_sync + 45
7   libsystem_network.dylib           0x9a0fd3ff tcp_connection_cancel + 116
8   com.apple.CFNetwork               0x956711a0 SocketStream::close(void const*) + 490
9   com.apple.CFNetwork               0x956d86e5 non-virtual thunk to SocketStream::close(void const*) + 29
10  com.apple.CFNetwork               0x95670fb1 ReadStreamCallbacks::_close(__CoreReadStream*, void*) + 37
11  com.apple.CFNetwork               0x9572775f non-virtual thunk to CoreReadStreamWithCallBacks::_streamImpl_Close() + 34
12  com.apple.CFNetwork               0x95670f41 CoreStreamBase::_streamInterface_Close() + 49
13  com.apple.CFNetwork               0x956a18f3 HTTPReadFilter::_streamImpl_Close() + 97
14  com.apple.CFNetwork               0x956d6aa3 non-virtual thunk to HTTPReadFilter::_streamImpl_Close() + 20
15  com.apple.CFNetwork               0x95670f41 CoreStreamBase::_streamInterface_Close() + 49
16  com.apple.CFNetwork               0x956a1797 NetConnection::shutdownConnectionStreams() + 163
17  com.apple.CFNetwork               0x956d3a72 NetConnection::errorOccurred(CFStreamError*) + 92
18  com.apple.CFNetwork               0x956987aa HTTPNetStreamInfo::_streamImpl_Read(unsigned char*, long, CFStreamError*, unsigned char*) + 724
19  com.apple.CFNetwork               0x956d6164 non-virtual thunk to HTTPNetStreamInfo::_streamImpl_Read(unsigned char*, long, CFStreamError*, unsigned char*) + 48
20  com.apple.CFNetwork               0x95668303 CoreStreamBase::_streamInterface_Read(unsigned char*, long) + 141
21  com.apple.CFNetwork               0x956a0e16 HTTPReadStream::_streamImpl_Read(unsigned char*, long, CFStreamError*, unsigned char*) + 450
22  com.apple.CFNetwork               0x956d73fb non-virtual thunk to HTTPReadStream::_streamImpl_Read(unsigned char*, long, CFStreamError*, unsigned char*) + 48
23  com.apple.CFNetwork               0x95668303 CoreStreamBase::_streamInterface_Read(unsigned char*, long) + 141
24  com.apple.CFNetwork               0x95668238 CoreReadStreamCFStreamSupport::_stream_read(__CFReadStream*, unsigned char*, long, CFStreamError*, unsigned char*, void*) + 64
25  com.apple.CoreFoundation          0x94c5eea7 CFReadStreamRead + 375
26  com.apple.CFNetwork               0x956d0fd9 _CFHTTPMessageSendRequest(__CFHTTPMessage*) + 234
27  com.apple.CFNetwork               0x956d1235 _CFURLCreateDataAndPropertiesFromResource + 334
28  com.apple.CoreFoundation          0x94c29201 CFURLCreateDataAndPropertiesFromResource + 5089
29  sefiltd                           0x0003a6b8 CYouTubeFilter::ShouldBlockYouTubeVideo(std::string, std::string&, std::string&, std::string&) + 200
30  sefiltd                           0x0003b2d6 CYouTubeFilter::ShouldBlockVideo(std::string, std::string&, std::string&, std::string&) + 678
31  sefiltd                           0x0000aa1f CFilter::ProcessURLRequest(std::string const&) + 7727
32  sefiltd                           0x0000feff CFilter::ProcessRequest() + 431
33  sefiltd                           0x000101c0 CFilter::Run() + 176
34  sefiltd                           0x00011831 McThread::ThreadFunc(void*) + 17
35  libsystem_c.dylib                 0x96e85557 _pthread_start + 344
36  libsystem_c.dylib                 0x96e6fcee thread_start + 34

Thread 4:: com.apple.CFSocket.private
0   libsystem_kernel.dylib            0x924d8be6 __select + 10
1   com.apple.CoreFoundation          0x94c7dc00 __CFSocketManager + 1632
2   libsystem_c.dylib                 0x96e85557 _pthread_start + 344
3   libsystem_c.dylib                 0x96e6fcee thread_start + 34

Thread 5:: Dispatch queue: tcpConnWorkQueue
0   libsystem_kernel.dylib            0x924d891a __psynch_mutexwait + 10
1   libsystem_c.dylib                 0x96e8b13b pthread_mutex_lock + 595
2   com.apple.CFNetwork               0x95665689 __startTCPConnection_block_invoke_0 + 582
3   libsystem_network.dylib           0x9a0ff2d6 __tcp_connection_event_notify_block_invoke_065 + 26
4   libdispatch.dylib                 0x9a633f8f _dispatch_call_block_and_release + 15
5   libdispatch.dylib                 0x9a631160 _dispatch_queue_drain + 206
6   libdispatch.dylib                 0x9a630ffa _dispatch_queue_invoke + 50
7   libdispatch.dylib                 0x9a630ecb _dispatch_worker_thread2 + 230
8   libsystem_c.dylib                 0x96e87e12 _pthread_wqthread + 441
9   libsystem_c.dylib                 0x96e6fcca start_wqthread + 30

Thread 6 Crashed:: Dispatch queue: com.apple.cfprefsd.daemon.xpcq
0   libxpc.dylib                      0x9059c09d _xpc_mach_port_get_context + 154
1   libxpc.dylib                      0x9059bebb do_mach_notify_port_destroyed + 25
2   libxpc.dylib                      0x9059be96 _Xmach_notify_port_destroyed + 120
3   libxpc.dylib                      0x9059bcbf notify_server + 117
4   libxpc.dylib                      0x9059afc2 _xpc_connection_recv_message + 971
5   libxpc.dylib                      0x9059ab7e _xpc_connection_wakeup_recv + 181
6   libxpc.dylib                      0x905990ca _xpc_connection_wakeup2 + 2003
7   libxpc.dylib                      0x905988ae _xpc_connection_wakeup + 189
8   libdispatch.dylib                 0x9a632007 _dispatch_source_invoke + 699
9   libdispatch.dylib                 0x9a63100a _dispatch_queue_invoke + 66
10  libdispatch.dylib                 0x9a63112c _dispatch_queue_drain + 154
11  libdispatch.dylib                 0x9a630ffa _dispatch_queue_invoke + 50
12  libdispatch.dylib                 0x9a630ecb _dispatch_worker_thread2 + 230
13  libsystem_c.dylib                 0x96e87e12 _pthread_wqthread + 441
14  libsystem_c.dylib                 0x96e6fcca start_wqthread + 30

Thread 6 crashed with X86 Thread State (32-bit):
  eax: 0xac07c240  ebx: 0xb0102798  ecx: 0xb01027c8  edx: 0x00000008
  edi: 0x9059c014  esi: 0xac8e0174  ebp: 0xb0102848  esp: 0xb0102770
   ss: 0x00000023  efl: 0x00010282  eip: 0x9059c09d   cs: 0x0000001b
   ds: 0x00000023   es: 0x00000023   fs: 0x00000023   gs: 0x0000000f
  cr2: 0xb010300c


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

This email sent to email@hidden

  • Follow-Ups:
    • Re: CFURLCreateDataAndPropertiesFromResource issue
      • From: Jens Alfke <email@hidden>
    • Re: CFURLCreateDataAndPropertiesFromResource issue
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Next by Date: Re: CFURLCreateDataAndPropertiesFromResource issue
  • Next by thread: Re: CFURLCreateDataAndPropertiesFromResource issue
  • Index(es):
    • Date
    • Thread