Metadata refresh deadlock (spring-security-saml) - spring-security

every couple of days our web app that uses Spring Security SAML has deadlock. Deadlock happens on refreshing metadata.
I tried too understand what is the problem from source code but without success.
This is stacktrace from three threads that are in deadlock:
1.
Stack Trace
Metadata-reload [136] (BLOCKED)
org.opensaml.saml2.metadata.provider.AbstractMetadataProvider.initialize line: 402
org.springframework.security.saml.metadata.ExtendedMetadataDelegate.initialize line: 167
org.springframework.security.saml.metadata.MetadataManager.initializeProvider line: 398
org.springframework.security.saml.metadata.MetadataManager.refreshMetadata line: 246
org.springframework.security.saml.metadata.CachingMetadataManager.refreshMetadata line: 86
org.springframework.security.saml.metadata.MetadataManager$RefreshTask.run line: 1027
java.util.TimerThread.mainLoop line: 555
java.util.TimerThread.run line: 505
2.
Stack Trace
Timer-5 [135] (WAITING)
sun.misc.Unsafe.park line: not available [native method]
java.util.concurrent.locks.LockSupport.park line: 186
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt line: 834
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued line: 867
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire line: 1197
java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.lock line: 945
org.springframework.security.saml.metadata.MetadataManager.setRefreshRequired line: 983
org.springframework.security.saml.metadata.MetadataManager$MetadataProviderObserver.onEvent line: 1047
org.opensaml.saml2.metadata.provider.ChainingMetadataProvider.emitChangeEvent line: 359
org.opensaml.saml2.metadata.provider.ChainingMetadataProvider$ContainedProviderObserver.onEvent line: 371
org.opensaml.saml2.metadata.provider.AbstractObservableMetadataProvider.emitChangeEvent line: 62
org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider.processNonExpiredMetadata line: 427
org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider.processNewMetadata line: 355
org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider.refresh line: 261
org.opensaml.saml2.metadata.provider.AbstractReloadingMetadataProvider$RefreshMetadataTask.run line: 513
java.util.TimerThread.mainLoop line: 555
java.util.TimerThread.run line: 505
3.
Stack Trace
http-bio-7020-exec-548 [614] (WAITING)
sun.misc.Unsafe.park line: not available [native method]
java.util.concurrent.locks.LockSupport.park line: 186
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt line: 834
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared line: 964
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared line: 1282
java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock line: 731
org.springframework.security.saml.metadata.CachingMetadataManager.getFromCacheOrUpdate line: 160
org.springframework.security.saml.metadata.CachingMetadataManager.getEntityDescriptor line: 116
org.springframework.security.saml.context.SAMLContextProviderImpl.populateLocalEntity line: 314
org.springframework.security.saml.context.SAMLContextProviderImpl.populateLocalContext line: 216
org.springframework.security.saml.context.SAMLContextProviderImpl.getLocalAndPeerEntity line: 126
org.springframework.security.saml.SAMLEntryPoint.commence line: 146
org.springframework.security.saml.SAMLEntryPoint.doFilter line: 107
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.FilterChainProxy.doFilterInternal line: 192
org.springframework.security.web.FilterChainProxy.doFilter line: 166
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter line: 199
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter line: 110
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal line: 50
org.springframework.web.filter.OncePerRequestFilter.doFilter line: 106
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.session.ConcurrentSessionFilter.doFilter line: 125
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter line: 87
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.saml.metadata.MetadataGeneratorFilter.doFilter line: 87
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter line: 342
org.springframework.security.web.FilterChainProxy.doFilterInternal line: 192
org.springframework.security.web.FilterChainProxy.doFilter line: 160
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate line: 343
org.springframework.web.filter.DelegatingFilterProxy.doFilter line: 260
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter line: 241
org.apache.catalina.core.ApplicationFilterChain.doFilter line: 208
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal line: 88
org.springframework.web.filter.OncePerRequestFilter.doFilter line: 106
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter line: 241
org.apache.catalina.core.ApplicationFilterChain.doFilter line: 208
hr.isvu.studomat.web.filter.RequestLoggerFilter.proslijediObraduZahtjeva line: 126
hr.isvu.studomat.web.filter.RequestLoggerFilter.doFilter line: 57
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter line: 241
org.apache.catalina.core.ApplicationFilterChain.doFilter line: 208
org.apache.catalina.core.StandardWrapperValve.invoke line: 220
org.apache.catalina.core.StandardContextValve.invoke line: 122
org.apache.catalina.authenticator.AuthenticatorBase.invoke line: 501
org.apache.catalina.core.StandardHostValve.invoke line: 171
org.apache.catalina.valves.ErrorReportValve.invoke line: 102
org.apache.catalina.valves.AccessLogValve.invoke line: 950
org.apache.catalina.core.StandardEngineValve.invoke line: 116
org.apache.catalina.connector.CoyoteAdapter.service line: 408
org.apache.coyote.http11.AbstractHttp11Processor.process line: 1040
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process line: 607
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run line: 314
java.util.concurrent.ThreadPoolExecutor.runWorker line: 1145
java.util.concurrent.ThreadPoolExecutor$Worker.run line: 615
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run line: 61
java.lang.Thread.run line: 722
We use:
spring-security-saml2-core 1.0.0.RELEASE
org.opensaml.opensaml 2.6.1
This is metadata refresh config:
...
<!-- IDP Metadata configuration - paths to metadata of IDPs in circle of
trust is here -->
<bean id="metadata"
class="org.springframework.security.saml.metadata.CachingMetadataManager">
<constructor-arg>
<list>
<bean class="org.opensaml.saml2.metadata.provider.HTTPMetadataProvider">
<constructor-arg>
<value>https://www.example.org/saml2/idp/metadata.php</value>
</constructor-arg>
<constructor-arg>
<value type="int">5000</value>
</constructor-arg>
<property name="parserPool" ref="parserPool" />
</bean>
</list>
</constructor-arg>
</bean>
...
How can we solve this deadlock?
Thanks in advance,
Denis

This is a valid issue, I opened a ticket in Jira and pushed a fix to master. There should be a new build available tomorrow at snapshot repo, can you please re-test with it?

Related

iOS Swift You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome

Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36: [BUG] Illegal instruction at 0x0000000102818000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
-- Control frame information -----------------------------------------------
c:0054 p:---- s:0314 e:000313 CFUNC :getdtablesize
c:0053 p:0050 s:0310 e:000309 CLASS /Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36
.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:3:in `<module:Ethon>'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:27:in `<module:Curl>'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36:in `<class:FDSet>'
/Library/Ruby/Gems/2.6.0/gems/ethon-0.15.0/lib/ethon/curls/classes.rb:36:in `getdtablesize'
-- Other runtime information -----------------------------------------------
* Loaded script: /usr/local/bin/pod
* Loaded features:
0 enumerator.so
1 thread.rb
2 rational.so
3 complex.so
4
337 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/nodes/alias.rb
338 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/nodes.rb
339 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/streaming.rb
340 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/visitor.rb
341 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/to_ruby.rb
342 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/emitter.rb
343 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/handler.rb
344 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/tree_builder.rb
345 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/yaml_tree.rb
346 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/json/ruby_events.rb
347 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/json_tree.rb
348 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors/depth_first.rb
349 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/visitors.rb
350 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/parser.rb
351 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/coder.rb
352 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/core_ext.rb
353 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/stream.rb
354 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/json/yaml_events.rb
355 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/json/tree_builder.rb
356 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/json/stream.rb
357 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych/handlers/document_stream.rb
358 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/psych.rb
359 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/yaml.rb
360 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/executable.rb
361 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/version.rb
362 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/errors.rb
363 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/event.rb
364 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/dereferenceable.rb
365 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/obligation.rb
366 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/logger.rb
367 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/logging.rb
368 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/deprecation.rb
369 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/executor_service.rb
370 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/abstract_executor_service.rb
371 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serial_executor_service.rb
372 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/immediate_executor.rb
373 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/delay.rb
374 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic_reference/numeric_cas_wrapper.rb
375 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic_reference/mutex_atomic.rb
376 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_reference.rb
377 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_executor_service.rb
378 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/monotonic_time.rb
379 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb
380 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/thread_pool_executor.rb
381 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/cached_thread_pool.rb
382 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/processor_counter.rb
383 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/configuration.rb
384 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_boolean.rb
385 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_boolean.rb
386 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/utility/native_integer.rb
387 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_atomic_fixnum.rb
388 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_fixnum.rb
389 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/cyclic_barrier.rb
390 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_count_down_latch.rb
391 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/java_count_down_latch.rb
392 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/count_down_latch.rb
393 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/read_write_lock.rb
394 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/abstract_thread_local_var.rb
395 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/ruby_thread_local_var.rb
396 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/java_thread_local_var.rb
397 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/thread_local_var.rb
398 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/reentrant_read_write_lock.rb
399 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/mutex_semaphore.rb
400 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/semaphore.rb
401 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomics.rb
402 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/fixed_thread_pool.rb
403 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/simple_executor_service.rb
404 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/indirect_immediate_executor.rb
405 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_executor_service.rb
406 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_single_thread_executor.rb
407 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/java_thread_pool_executor.rb
408 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/ruby_single_thread_executor.rb
409 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb
410 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serialized_execution.rb
411 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/serialized_execution_delegator.rb
412 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/single_thread_executor.rb
413 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/copy_on_write_observer_set.rb
414 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/copy_on_notify_observer_set.rb
415 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/concern/observable.rb
416 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/ivar.rb
417 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/options.rb
418 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/scheduled_task.rb
419 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/java_non_concurrent_priority_queue.rb
420 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/ruby_non_concurrent_priority_queue.rb
421 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/non_concurrent_priority_queue.rb
422 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executor/timer_set.rb
423 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/executors.rb
424 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atomic/atomic_markable_reference.rb
425 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/agent.rb
426 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/atom.rb
427 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/array.rb
428 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb
429 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/set.rb
430 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/tuple.rb
431 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/async.rb
432 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/future.rb
433 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/dataflow.rb
434 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/maybe.rb
435 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/exchanger.rb
436 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/synchronization/abstract_struct.rb
437 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/immutable_struct.rb
438 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/mutable_struct.rb
439 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/mvar.rb
440 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promise.rb
441 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/settable_struct.rb
442 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/timer_task.rb
443 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/tvar.rb
444 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/collection/lock_free_stack.rb
445 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/re_include.rb
446 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/promises.rb
447 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent/thread_safe/synchronized_delegator.rb
448 /Library/Ruby/Gems/2.6.0/gems/concurrent-ruby-1.1.9/lib/concurrent-ruby/concurrent.rb
449 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/cdn_source.rb
450 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/trunk_source.rb
451 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sources_manager.rb
452 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/core_overrides.rb
453 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods.rb
454 /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/delegates/specification_provider.rb
455 /Library/Ruby/Gems/2.6.0/gems/molinillo-0.8.0/lib/molinillo/errors.rb
456 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/options/repo_update.rb
457 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/options/project_directory.rb
458 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/cache/list.rb
459 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/cache/clean.rb
460 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/cache.rb
461 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/env.rb
462 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/init.rb
463 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb
464 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/list.rb
465 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/podfile.rb
466 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/podfile_json.rb
467 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/repl.rb
468 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/spec.rb
469 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc/update_search_index.rb
470 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/ipc.rb
471 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/lib/create.rb
472 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/lib/lint.rb
473 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/lib.rb
474 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/list.rb
475 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/outdated.rb
476 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/add.rb
477 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/add_cdn.rb
478 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/lint.rb
479 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/list.rb
480 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/tempfile.rb
481 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/push.rb
482 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/remove.rb
483 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo/update.rb
484 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/repo.rb
485 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/setup.rb
486 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec/create.rb
487 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec/lint.rb
488 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec/which.rb
489 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec/cat.rb
490 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec/edit.rb
491 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/spec.rb
492 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/update.rb
493 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb
494 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/open3.rb
495 /Library/Ruby/Gems/2.6.0/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods/deintegrate/gem_version.rb
496 /Library/Ruby/Gems/2.6.0/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods/deintegrator.rb
497 /Library/Ruby/Gems/2.6.0/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods_deintegrate.rb
498 /Library/Ruby/Gems/2.6.0/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods/command/deintegrate.rb
499 /Library/Ruby/Gems/2.6.0/gems/cocoapods-deintegrate-1.0.5/lib/cocoapods_plugin.rb
500 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/gem_index_cache.rb
501 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/gem_helper.rb
502 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins_helper.rb
503 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins/list.rb
504 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins/search.rb
505 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins/create.rb
506 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins/publish.rb
507 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins/installed.rb
508 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/pod/command/plugins.rb
509 /Library/Ruby/Gems/2.6.0/gems/cocoapods-plugins-1.0.0/lib/cocoapods_plugin.rb
510 /Library/Ruby/Gems/2.6.0/gems/cocoapods-search-1.0.1/lib/cocoapods-search/command/search.rb
511 /Library/Ruby/Gems/2.6.0/gems/cocoapods-search-1.0.1/lib/cocoapods-search/command.rb
512 /Library/Ruby/Gems/2.6.0/gems/cocoapods-search-1.0.1/lib/cocoapods_plugin.rb
513 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/add_owner.rb
514 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/delete.rb
515 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/deprecate.rb
516 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/info.rb
517 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/me.rb
518 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/push.rb
519 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/register.rb
520 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk/remove_owner.rb
521 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/pod/command/trunk.rb
522 /Library/Ruby/Gems/2.6.0/gems/cocoapods-trunk-1.6.0/lib/cocoapods_plugin.rb
523 /Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.2.0/lib/pod/try_settings.rb
524 /Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.2.0/lib/pod/command/try.rb
525 /Library/Ruby/Gems/2.6.0/gems/cocoapods-try-1.2.0/lib/cocoapods_plugin.rb
526 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/tables.rb
527 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb
528 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/podfile/dsl.rb
529 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/podfile/target_definition.rb
530 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/podfile.rb
531 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/build_type.rb
532 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/podfile.rb
533 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb
534 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sandbox.rb
535 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/sandbox/headers_store.rb
536 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/lockfile.rb
537 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/yaml_helper.rb
538 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/enc/utf_16le.bundle
539 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin21/enc/utf_16be.bundle
540 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/version.rb
541 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/pre_install_hooks_context.rb
542 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/hooks_manager.rb
543 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/source_provider_hooks_context.rb
544 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb
545 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/installation_options.rb
546 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer/podfile_dependency_cache.rb
547 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/dependency.rb
548 /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.11.2/lib/cocoapods-core/requirement.rb
549 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/podfile_validator.rb
550 /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer/target_inspector.rb
551 /Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos/version.rb
552 /Library/Ruby/Gems/2.6.0/gems/atomos-0.1.3/lib/atomos.rb
553 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/securerandom.rb
554 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/case_converter.rb
555 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object_attributes.rb
556 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object_dictionary.rb
557 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object_list.rb
558 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/constants.rb
559 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/swift_package_remote_reference.rb
560 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/swift_package_product_dependency.rb
561 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/helpers/build_settings_array_settings_by_object_version.rb
562 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/build_configuration.rb
563 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/build_file.rb
564 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/build_phase.rb
565 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/build_rule.rb
566 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/configuration_list.rb
567 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/container_item_proxy.rb
568 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/helpers/groupable_helper.rb
569 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/file_reference.rb
570 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/helpers/file_references_factory.rb
571 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/group.rb
572 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/native_target.rb
573 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/root_object.rb
574 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/target_dependency.rb
575 /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.21.0/lib/xcodeproj/project/object/reference_proxy.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: https://www.ruby-lang.org/bugreport.html
[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
zsh: abort pod install
Xcode 13, Swift 5, and MACOS Monterey
If you faced this issue
you should do these steps
1- Install Homebrew from here
2- Open terminal and type brew install cocoapods
3- Open your Xcode project's directory in terminal and type
sudo arch -x86_64 gem install ffi
Then
arch -x86_64 pod install
as this
after it Open you Xcode project.
Just do,
sudo arch -x86_64 gem install ffi
Then
arch -x86_64 pod install
Seems it's related to Ruby ffi, works as a gen for programmatically loading dynamically-linked native libraries. To solve the issue just run the following commands:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install

JSR 352 Batch | java.sql.SQLRecoverableException: Closed Connection

I am trying to run a jee batch application. It works fine in my local machine but when I am trying to run the same jee application in a docker container, I am getting the below exception in joblogs
com.ibm.jbatch.container.exception.BatchContainerRuntimeException: Failure in Read-Process-Write Loop
89 at com.ibm.jbatch.container.controller.impl.ChunkStepControllerImpl.invokeChunk(ChunkStepControllerImpl.java:704)
90 at com.ibm.jbatch.container.controller.impl.ChunkStepControllerImpl.invokeCoreStep(ChunkStepControllerImpl.java:795)
91 at com.ibm.jbatch.container.controller.impl.BaseStepControllerImpl.execute(BaseStepControllerImpl.java:295)
92 at com.ibm.jbatch.container.controller.impl.ExecutionTransitioner.doExecutionLoop(ExecutionTransitioner.java:118)
93 at com.ibm.jbatch.container.controller.impl.WorkUnitThreadControllerImpl.executeCoreTransitionLoop(WorkUnitThreadControllerImpl.java:96)
94 at com.ibm.jbatch.container.controller.impl.WorkUnitThreadControllerImpl.executeWorkUnit(WorkUnitThreadControllerImpl.java:178)
95 at com.ibm.jbatch.container.controller.impl.WorkUnitThreadControllerImpl$AbstractControllerHelper.runExecutionOnThread(WorkUnitThreadControllerImpl.java:503)
96 at com.ibm.jbatch.container.controller.impl.WorkUnitThreadControllerImpl.runExecutionOnThread(WorkUnitThreadControllerImpl.java:92)
97 at com.ibm.jbatch.container.util.BatchWorkUnit.run(BatchWorkUnit.java:117)
98 at com.ibm.ws.context.service.serializable.ContextualRunnable.run(ContextualRunnable.java:79)
99 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
100 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
101 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
102 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
103 at java.lang.Thread.run(Thread.java:748)
104 Caused by: com.ibm.jbatch.container.exception.TransactionManagementException: javax.transaction.RollbackException
105 at com.ibm.jbatch.container.transaction.impl.JTAUserTransactionAdapter.commit(JTAUserTransactionAdapter.java:108)
106 at com.ibm.jbatch.container.controller.impl.ChunkStepControllerImpl.invokeChunk(ChunkStepControllerImpl.java:656)
107 ... 14 more
108 Caused by: javax.transaction.RollbackException
109 at com.ibm.tx.jta.impl.TransactionImpl.stage3CommitProcessing(TransactionImpl.java:980)
110 at com.ibm.tx.jta.impl.TransactionImpl.processCommit(TransactionImpl.java:778)
111 at com.ibm.tx.jta.impl.TransactionImpl.commit(TransactionImpl.java:711)
112 at com.ibm.tx.jta.impl.TranManagerImpl.commit(TranManagerImpl.java:165)
113 at com.ibm.tx.jta.impl.TranManagerSet.commit(TranManagerSet.java:113)
114 at com.ibm.tx.jta.impl.UserTransactionImpl.commit(UserTransactionImpl.java:162)
115 at com.ibm.tx.jta.embeddable.impl.EmbeddableUserTransactionImpl.commit(EmbeddableUserTransactionImpl.java:101)
116 at com.ibm.ws.transaction.services.UserTransactionService.commit(UserTransactionService.java:72)
117 at com.ibm.jbatch.container.transaction.impl.JTAUserTransactionAdapter.commit(JTAUserTransactionAdapter.java:101)
118 ... 15 more
119 Caused by: oracle.jdbc.xa.OracleXAException: XAErr (-7): Resource manager is unavailable. ORA-17008 SQLErr (0)
120 at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1112)
121 at oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:466)
122 at com.ibm.ws.rsadapter.impl.WSRdbXaResourceImpl.end(WSRdbXaResourceImpl.java:417)
123 at com.ibm.ejs.j2c.XATransactionWrapper.end(XATransactionWrapper.java:384)
124 at com.ibm.ws.Transaction.JTA.JTAResourceBase.end(JTAResourceBase.java:218)
125 at com.ibm.tx.jta.impl.RegisteredResources.sendEnd(RegisteredResources.java:941)
126 at com.ibm.tx.jta.impl.RegisteredResources.distributeEnd(RegisteredResources.java:920)
127 at com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:1624)
128 at com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:1594)
129 at com.ibm.tx.jta.impl.TransactionImpl.coreStage2CommitProcessing(TransactionImpl.java:865)
130 at com.ibm.tx.jta.impl.TransactionImpl.stage2CommitProcessing(TransactionImpl.java:891)
131 at com.ibm.tx.jta.impl.TransactionImpl.processCommit(TransactionImpl.java:771)
132 ... 22 more
133 Caused by: java.sql.SQLRecoverableException: Closed Connection
134 at oracle.jdbc.driver.PhysicalConnection.needLine(PhysicalConnection.java:3247)
135 at oracle.jdbc.driver.T4CXAResource.doEnd(T4CXAResource.java:384)
136 at oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:461)
137 ... 32 more
used <transaction totalTranLifetimeTimeout="1200s" propogatedOrBMTTranLifetimeTimeout="1300s"/> for transaction timeout

FirebaseApp.configure() crashes for unit test target

I've encountered a strange problem where the FirebaseApp.configure() call causes my app to instantly crash for my unit test target. It runs just fine for my standard builds.
Any ideas why this is happening?
Here's the stack trace:
2018-04-18 11:42:57.252405+0100 Avalanche[14289:124354] 4.8.1 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40007000 started
2018-04-18 11:42:57.252454+0100 Avalanche[14289:124361] 4.8.1 - [Firebase/Core][I-COR000005] No app has been configured yet.
2018-04-18 11:42:57.252712+0100 Avalanche[14289:124354] 4.8.1 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://googl/RfcP7r)
2018-04-18 11:42:57.371588+0100 Avalanche[14289:124278] [Crashlytics] Version 3.9.3 (128)
2018-04-18 11:42:57.390507+0100 Avalanche[14289:124278] *** Terminating app due to uncaught exception 'FABException', reason: '[Fabric] Value of Info.plist key "Fabric" must be a NSDictionary.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113c0a1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x000000011329f031 objc_exception_throw + 48
2 CoreFoundation 0x0000000113c7f975 +[NSException raise:format:] + 197
3 Avalanche 0x000000010f654dec -[Fabric validFabricConfigFromInfoPlist:] + 353
4 Avalanche 0x000000010f654a16 -[Fabric fabricConfig] + 127
5 Avalanche 0x000000010f654bce -[Fabric APIKey] + 392
6 Avalanche 0x000000010f61e6d7 -[Crashlytics APIKey] + 55
7 Avalanche 0x000000010f62a087 -[CLSCrashReportingController APIKey] + 57
8 Avalanche 0x000000010f62977f -[CLSCrashReportingController startWithProfilingMark:betaToken:] + 257
9 Avalanche 0x000000010f61e088 __20-[Crashlytics start]_block_invoke + 637
10 libdispatch.dylib 0x0000000114b93779 _dispatch_client_callout + 8
11 libdispatch.dylib 0x0000000114b94c0a dispatch_once_f + 55
12 Avalanche 0x000000010f61de05 -[Crashlytics start] + 106
13 Avalanche 0x000000010f61e23a +[Crashlytics initializeIfNeeded] + 48
14 Avalanche Tests 0x0000000129cd440a __15+[Fabric with:]_block_invoke + 538
15 libdispatch.dylib 0x0000000114b93779 _dispatch_client_callout + 8
16 libdispatch.dylib 0x0000000114b94c0a dispatch_once_f + 55
17 Avalanche Tests 0x0000000129cd41ee +[Fabric with:] + 222
18 Avalanche Tests 0x0000000129cd5dea __14+[Fabric load]_block_invoke + 580
19 Foundation 0x0000000112cc0324 -[__NSObserver _doit:] + 298
20 CoreFoundation 0x0000000113ba5b8c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
21 CoreFoundation 0x0000000113ba5a65 _CFXRegistrationPost + 453
22 CoreFoundation 0x0000000113ba57a1 ___CFXNotificationPost_block_invoke + 225
23 CoreFoundation 0x0000000113b67422 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1826
24 CoreFoundation 0x0000000113b665a1 _CFXNotificationPost + 609
25 Foundation 0x0000000112c80e57 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
26 Avalanche 0x000000010f6d41a7 +[FIRApp sendNotificationsToSDKs:] + 393
27 Avalanche 0x000000010f6d309e +[FIRApp configureDefaultAppWithOptions:sendingNotifications:] + 302
28 Avalanche 0x000000010f6d2eda +[FIRApp configure] + 380
29 Avalanche 0x000000010f609490 _T09Avalanche11AppDelegateCACycfc + 192
30 Avalanche 0x000000010f6094c3 _T09Avalanche11AppDelegateCACycfcTo + 19
31 UIKit 0x00000001109eb6c4 _UIApplicationMainPreparations + 1491
32 UIKit 0x00000001109eb087 UIApplicationMain + 111
33 Avalanche 0x000000010f60b447 main + 55
34 libdyld.dylib 0x0000000114c08955 start + 1
)
li
bc++abi.dylib: terminating with uncaught exception of type NSException
Before the crash, I also see a large number of log entries like:
objc[14289]: Class RCNKeyValue is implemented in both /Users/sammcneilly/Library/Developer/CoreSimulator/Devices/E62EC87E-0B07-4A83-A165-819E693AEB87/data/Containers/Bundle/Application/6C3F993F-4CEB-462F-9257-0F3C8E088BC0/Avalanche.app/Avalanche (0x10f7bdd50) and /Users/sammcneilly/Library/Developer/Xcode/DerivedData/Avalanche-ewiqmxxekhpknrhhfuyljlekgzat/Build/Products/Development-iphonesimulator/Avalanche.app/PlugIns/Avalanche Tests.xctest/Avalanche Tests (0x129e075d8). One of the two will be used. Which one is undefined.
I've installed Firebase and Firebase/Crashlytics via CocoaPods.
I'm not sure if this is related to Xcode 9.3 - this is happening on two separate projects, and I'm fairly certain it didn't happen previously for the older project.
I've printed out the bundle contents and the GoogleService-Info.plist file appears to be there.
Any help would be much appreciated!
Ok so this turned out to be caused by an incorrectly-configured Pod file.
My main target and unit test target were configured to use the following pods:
pod 'Crashlytics', '~> 3.10.1'
pod 'Fabric', '~> 1.7.6'
pod 'Firebase/Core', '~> 4.8'
pod 'FirebaseRemoteConfig', '~> 2.1'
Removing the additional Firebase pods for the test target ONLY (other than Firebase/Core) and running pod install again helped.
I'm not altogether sure why this worked, so would be very grateful if someone could explain this to me.
The "${PODS_ROOT}/Fabric/run" build phase script was configured on my primary target as detailed in Google's docs here: https://firebase.google.com/docs/crashlytics/get-started, and adding it to the test target didn't help either...
Thanks to everyone for their input, but adding the Fabric details manually to the Info.plist file just caused a build error. I believe this step is automatically handled for Firebase.
We had the same crash when running XCTest. We use the following to get around it.
if NSClassFromString("XCTest") != nil {
return true
} else {
FirebaseApp.configure()
}
Put this code in info.plist
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>YOUR APIKEY</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
Hope it's helps.!

Jenkins slave error reading zip file

We are running Jenkins ver (1.614) on SUSE Linux Enterprise Server 11 (x86_64) and am trying to diagnose a failure on one of our slave nodes.
The exception that I am seeing is the following;
My question is how to diagnose what JAR file it was trying to process upon failure?
272 slave setup done.
273 Slave successfully connected and online
274 log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
275 log4j:WARN Please initialize the log4j system properly.
276 Sep 25, 2015 12:22:07 PM hudson.remoting.SynchronousCommandTransport$ReaderThread run
277 SEVERE: Unexpected error in channel channel
278 java.lang.NoClassDefFoundError: hudson/remoting/Channel$OrderlyShutdown
279 at java.lang.Class.getDeclaredFields0(Native Method)
280 at java.lang.Class.privateGetDeclaredFields(Class.java:2308)
281 at java.lang.Class.getDeclaredField(Class.java:1897)
282 at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1639)
283 at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:69)
284 at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:467)
285 at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:455)
286 at java.security.AccessController.doPrivileged(Native Method)
287 at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:455)
288 at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:352)
289 at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:589)
290 at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
291 at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1514)
292 at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1750)
293 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
294 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
295 at hudson.remoting.Command.readFrom(Command.java:92)
296 at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
297 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
298 Caused by: java.lang.ClassNotFoundException: hudson.remoting.Channel$OrderlyShutdown
299 at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
300 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
301 at java.security.AccessController.doPrivileged(Native Method)
302 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
303 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
304 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
305 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
306 ... 19 more
307 Caused by: java.util.zip.ZipException: error reading zip file
308 at java.util.zip.ZipFile.read(Native Method)
309 at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
310 at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677)
311 at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413)
312 at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
313 at java.io.DataInputStream.readFully(DataInputStream.java:195)
314 at java.util.jar.JarFile.getBytes(JarFile.java:380)
315 at java.util.jar.JarFile.getManifestFromReference(JarFile.java:178)
316 at java.util.jar.JarFile.getManifest(JarFile.java:165)
317 at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:756)
318 at java.net.URLClassLoader.defineClass(URLClassLoader.java:416)
319 at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
320 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
321 ... 25 more
322
323 channel stopped
324 Exception in thread "Channel reader thread: channel" java.lang.NoClassDefFoundError: hudson/remoting/Channel$OrderlyShutdown
325 at hudson.remoting.Channel.terminate(Channel.java:831)
326 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:76)
327 Caused by: java.lang.ClassNotFoundException: hudson.remoting.Channel$OrderlyShutdown
328 at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
329 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
330 at java.security.AccessController.doPrivileged(Native Method)
331 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
332 at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
333 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
334 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
335 ... 2 more
336 Caused by: java.util.zip.ZipException: error reading zip file
337 at java.util.zip.ZipFile.read(Native Method)
338 at java.util.zip.ZipFile.access$1400(ZipFile.java:56)
339 at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:677)
340 at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:413)
341 at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)
342 at java.io.DataInputStream.readFully(DataInputStream.java:195)
343 at java.util.jar.JarFile.getBytes(JarFile.java:380)
344 at java.util.jar.JarFile.getManifestFromReference(JarFile.java:178)
345 at java.util.jar.JarFile.getManifest(JarFile.java:165)
346 at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:756)
347 at java.net.URLClassLoader.defineClass(URLClassLoader.java:416)
348 at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
349 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
350 ... 8 more
351 Slave JVM has terminated. Exit code=0
352 ERROR: Connection terminated
353 ^[[8mha:AAAAWB+LCAAAAAAAAP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWAAAAA=^[[0mjava.io.IOException: Unexpected termination of the channel
354 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:50)
355 Caused by: java.io.EOFException
356 at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2325)
357 at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2794)
358 at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
359 at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299)
360 at hudson.remoting.ObjectInputStreamEx.<init>(ObjectInputStreamEx.java:40)
361 at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
362 at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48)
363 [09/25/15 12:42:32] [SSH] Connection closed.

Why is Ruby throwing a Segmentation fault on only my system, and only in this Rails application?

I'm not exactly sure how to properly debug this but have tried a few different approaches that have chewed up time, but not solved the problem. At least 4 other people in my office can execute this code on identical machines with the same version of ruby and rubygems installed with no error.
Here is the code that I'm executing:
status = Open4::popen4( "swfmill simple stdin stdout" ) do | pid, stdin, stdout, stderr |
stdin.write( config )
stdin.close
bytes = stdout.read
errors = stderr.read
end
I am getting a "bus error" on this line:
errors = stderr.read
If I comment that line, I get a "Segementation Fault" on this line:
bytes = stdout.read
I'm obviously using the Open4 library and executing an external process. This external process works perfectly when executed directly from the terminal, and also when this Ruby code is run outside of this particular Rails application, even in a different, simpler Rails application.
To reproduce the error, I need only to execute my particular test method like this:
ruby test/unit/swf_generator_test.rb --name test_get_bytes
I am running Snow Leopard Mac OS X 10.6.2 (10C540) on a MacBook Pro with Intel Core 2 Duo 2.53 GHz and 8GB of RAM.
ruby -v && gem -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]
1.3.5
I executed this code inside of GDB and discovered that my libxml and libxslt libraries were both improperly installed. I was able to get both of these libraries installed and now GDB no longer tells me anything that I can see as helpful. Here is the current output from GDB:
gdb ruby
GNU gdb 6.3.50-20050815 (Apple version gdb-1344) (Fri Jul 3 01:19:56 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries .... done
(gdb) run test/unit/swf_generator_test.rb --name test_get_bytes
Starting program: /usr/local/bin/ruby test/unit/swf_generator_test.rb --name test_get_bytes
Reading symbols for shared libraries +++... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries .... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done
Loaded suite test/unit/swf_generator_test
Started
Reading symbols for shared libraries .. done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff81973e90
0x0000000100045bf1 in gc_mark ()
(gdb)
I have also rebuilt/reinstalled all of my gems after updating my libxml and libxslt libraries. I did this by running:
sudo gem pristine --all
And finally, here is my console log entry for this particular exception:
Process: ruby [5059]
Path: /usr/local/bin/ruby
Identifier: ruby
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [5050]
Date/Time: 2010-01-21 11:31:45.468 -0800
OS Version: Mac OS X 10.6.2 (10C540)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000000e
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Application Specific Information:
abort() called
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff819befe6 __kill + 10
1 libSystem.B.dylib 0x00007fff81a5fe32 abort + 83
2 libruby.dylib 0x000000010001b887 rb_check_type + 0
3 libruby.dylib 0x00000001000a5427 sigsegv + 84
4 libSystem.B.dylib 0x00007fff819d0eaa _sigtramp + 26
5 ??? 0x00007fff5fbd7410 0 + 140734799639568
6 libruby.dylib 0x0000000100045a50 mark_tbl + 44
7 libruby.dylib 0x0000000100045a71 rb_mark_tbl + 31
8 libruby.dylib 0x0000000100059286 mark_load_arg + 40
9 libruby.dylib 0x000000010004635f gc_mark_children + 1687
10 libruby.dylib 0x0000000100045c74 gc_mark + 221
11 libruby.dylib 0x0000000100045882 mark_locations_array + 61
12 libruby.dylib 0x00000001000459fc rb_gc_mark_locations + 59
13 libruby.dylib 0x0000000100047620 garbage_collect + 389
14 libruby.dylib 0x0000000100044c2d ruby_xmalloc + 107
15 libruby.dylib 0x0000000100033a76 scope_dup + 100
16 libruby.dylib 0x000000010002ab7d rb_yield_0 + 2646
17 libruby.dylib 0x0000000100034dbd proc_invoke + 1020
18 libruby.dylib 0x0000000100034f73 rb_proc_call + 39
19 libruby.dylib 0x000000010002e061 call_cfunc + 252
20 libruby.dylib 0x000000010002d16a rb_call0 + 1548
21 libruby.dylib 0x000000010002ebca rb_call + 711
22 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
23 libruby.dylib 0x00000001000251d0 rb_eval + 6859
24 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
25 libruby.dylib 0x000000010002ebca rb_call + 711
26 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
27 libruby.dylib 0x00000001000249fc rb_eval + 4855
28 libruby.dylib 0x000000010002716e rb_eval + 14953
29 libruby.dylib 0x000000010002a8f8 rb_yield_0 + 2001
30 libruby.dylib 0x0000000100034dbd proc_invoke + 1020
31 libruby.dylib 0x0000000100034f73 rb_proc_call + 39
32 libruby.dylib 0x000000010002e061 call_cfunc + 252
33 libruby.dylib 0x000000010002d16a rb_call0 + 1548
34 libruby.dylib 0x000000010002ebca rb_call + 711
35 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
36 libruby.dylib 0x00000001000251d0 rb_eval + 6859
37 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
38 libruby.dylib 0x000000010002ebca rb_call + 711
39 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
40 libruby.dylib 0x00000001000249fc rb_eval + 4855
41 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
42 libruby.dylib 0x000000010002ebca rb_call + 711
43 libruby.dylib 0x00000001000260fb rb_eval + 10742
44 libruby.dylib 0x0000000100025617 rb_eval + 7954
45 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
46 libruby.dylib 0x000000010002ebca rb_call + 711
47 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
48 libruby.dylib 0x00000001000270e5 rb_eval + 14816
49 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
50 libruby.dylib 0x000000010002ebca rb_call + 711
51 libruby.dylib 0x000000010002ed88 rb_f_send + 170
52 libruby.dylib 0x000000010002e080 call_cfunc + 283
53 libruby.dylib 0x000000010002d16a rb_call0 + 1548
54 libruby.dylib 0x000000010002ebca rb_call + 711
55 libruby.dylib 0x00000001000260fb rb_eval + 10742
56 libruby.dylib 0x0000000100024f5a rb_eval + 6229
57 libruby.dylib 0x00000001000251d0 rb_eval + 6859
58 libruby.dylib 0x00000001000251d0 rb_eval + 6859
59 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
60 libruby.dylib 0x000000010002ebca rb_call + 711
61 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
62 libruby.dylib 0x0000000100035764 block_pass + 460
63 libruby.dylib 0x000000010002473a rb_eval + 4149
64 libruby.dylib 0x000000010002a8f8 rb_yield_0 + 2001
65 libruby.dylib 0x000000010002ad2f rb_yield + 42
66 libruby.dylib 0x00000001000061e4 rb_ary_each + 100
67 libruby.dylib 0x000000010002e098 call_cfunc + 307
68 libruby.dylib 0x000000010002d16a rb_call0 + 1548
69 libruby.dylib 0x000000010002ebca rb_call + 711
70 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
71 libruby.dylib 0x00000001000249fc rb_eval + 4855
72 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
73 libruby.dylib 0x000000010002ebca rb_call + 711
74 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
75 libruby.dylib 0x0000000100035764 block_pass + 460
76 libruby.dylib 0x000000010002473a rb_eval + 4149
77 libruby.dylib 0x000000010002a8f8 rb_yield_0 + 2001
78 libruby.dylib 0x000000010002ad2f rb_yield + 42
79 libruby.dylib 0x00000001000061e4 rb_ary_each + 100
80 libruby.dylib 0x000000010002e098 call_cfunc + 307
81 libruby.dylib 0x000000010002d16a rb_call0 + 1548
82 libruby.dylib 0x000000010002ebca rb_call + 711
83 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
84 libruby.dylib 0x00000001000249fc rb_eval + 4855
85 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
86 libruby.dylib 0x000000010002ebca rb_call + 711
87 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
88 libruby.dylib 0x00000001000249fc rb_eval + 4855
89 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
90 libruby.dylib 0x000000010002ebca rb_call + 711
91 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
92 libruby.dylib 0x0000000100025617 rb_eval + 7954
93 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
94 libruby.dylib 0x000000010002ebca rb_call + 711
95 libruby.dylib 0x000000010002614c rb_eval + 10823
96 libruby.dylib 0x0000000100025617 rb_eval + 7954
97 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
98 libruby.dylib 0x000000010002ebca rb_call + 711
99 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
100 libruby.dylib 0x0000000100025617 rb_eval + 7954
101 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
102 libruby.dylib 0x000000010002ebca rb_call + 711
103 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
104 libruby.dylib 0x0000000100025b16 rb_eval + 9233
105 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
106 libruby.dylib 0x000000010002ebca rb_call + 711
107 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
108 libruby.dylib 0x000000010002dc1b rb_call0 + 4285
109 libruby.dylib 0x000000010002ebca rb_call + 711
110 libruby.dylib 0x0000000100025dc4 rb_eval + 9919
111 libruby.dylib 0x0000000100025f54 rb_eval + 10319
112 libruby.dylib 0x000000010002a8f8 rb_yield_0 + 2001
113 libruby.dylib 0x0000000100034dbd proc_invoke + 1020
114 libruby.dylib 0x0000000100032ba5 call_end_proc + 230
115 libruby.dylib 0x0000000100032eea rb_exec_end_proc + 559
116 libruby.dylib 0x000000010002051c ruby_finalize_0 + 170
117 libruby.dylib 0x00000001000205ab ruby_cleanup + 57
118 libruby.dylib 0x00000001000208c8 ruby_stop + 19
119 libruby.dylib 0x0000000100020937 compile_error + 0
120 ruby 0x0000000100000ebe dyld_stub_exit + 0
121 ruby 0x0000000100000e74 start + 52
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007fff5fbd7318 rcx: 0x00007fff5fbd6a68 rdx: 0x0000000000000000
rdi: 0x00000000000013c3 rsi: 0x0000000000000006 rbp: 0x00007fff5fbd6a80 rsp: 0x00007fff5fbd6a68
r8: 0x0000000000000002 r9: 0x0000000000000000 r10: 0x00007fff819bb026 r11: 0x0000000000000202
r12: 0x0000000000000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x0000000000000000
rip: 0x00007fff819befe6 rfl: 0x0000000000000202 cr2: 0x00007fff702e71f0
Binary Images:
0x100000000 - 0x100000fff +ruby ??? (???) <C71E7FFC-4129-BB10-8FCE-28CE6753E31E> /usr/local/bin/ruby
0x100003000 - 0x1000fefef +libruby.dylib ??? (???) <A02414BE-9EFE-F690-D8C0-997BC2330549> /usr/local/lib/libruby.dylib
0x1001e1000 - 0x1001e4fff +thread.bundle ??? (???) <CB4AF257-267F-182F-66B6-8A56E01A3843> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/thread.bundle
0x1001e8000 - 0x1001e9ff7 +etc.bundle ??? (???) <356F8541-C0F9-1A34-2C0A-A24035D55960> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/etc.bundle
0x1001ed000 - 0x1001f1ff7 +stringio.bundle ??? (???) <5890BE07-0D66-D7E5-B87B-37A0B06A901D> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/stringio.bundle
0x1001f5000 - 0x1001f9ff7 +strscan.bundle ??? (???) <E6F3DCE7-603E-9472-9C6D-99CD225C494C> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/strscan.bundle
0x1001fd000 - 0x1001fdfff +fcntl.bundle ??? (???) <0F2B8F5B-9F5F-0F82-D1B8-7AB339B5ADA3> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/fcntl.bundle
0x1004b0000 - 0x1004d0fff +syck.bundle ??? (???) <D34A7A9E-C28F-77A5-F95E-5F8A22F19676> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/syck.bundle
0x1004d8000 - 0x1004e5ff7 +bigdecimal.bundle ??? (???) <D9C91EF5-3814-8624-6601-23BF6AD032A3> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/bigdecimal.bundle
0x1004e9000 - 0x1004eaff7 +fast_xs.bundle ??? (???) <7A793C27-7A68-F8E2-DFAB-9F4ABADBBC14> /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.2/lib/fast_xs.bundle
0x1004ed000 - 0x1004f5ff7 +zlib.bundle ??? (???) <83CB4E6E-F717-CB1F-D410-BC6F305B4AF4> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/zlib.bundle
0x1004fa000 - 0x1004fafff +md5.bundle ??? (???) <71A83C69-A0CB-3682-18E2-09B644E687D5> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/digest/md5.bundle
0x1004fd000 - 0x1004fdfff +sha1.bundle ??? (???) <049D08F4-BC16-D2E7-04B9-CBB1E89CC01D> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/digest/sha1.bundle
0x10073d000 - 0x10076efff +nkf.bundle ??? (???) <CB4E2B49-D8D7-29B2-9215-67BECCD45AA3> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/nkf.bundle
0x100781000 - 0x10078bfff +socket.bundle ??? (???) <431898C6-794A-BF22-A125-B7D60D554CDA> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/socket.bundle
0x100790000 - 0x100791fff +digest.bundle ??? (???) <955B9322-A593-9926-110F-449CBDA89DF9> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/digest.bundle
0x100795000 - 0x1007a1fff +bluecloth_ext.bundle ??? (???) <875327C8-E817-9F12-0EE4-6A49562C3F8E> /usr/local/lib/ruby/gems/1.8/gems/bluecloth-2.0.5/lib/bluecloth_ext.bundle
0x1007a6000 - 0x1007e2ff7 +openssl.bundle ??? (???) <499510E9-913B-A675-3075-9A0AEC5634B8> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/openssl.bundle
0x10123a000 - 0x1012abfff +redcloth_scan.bundle ??? (???) <96734FEE-7F82-4F10-D8C2-DA1FDC433DAC> /usr/local/lib/ruby/gems/1.8/gems/RedCloth-4.2.2/lib/redcloth_scan.bundle
0x1012af000 - 0x1012b2ff7 +cparse.bundle ??? (???) <EF75611D-1C93-CF58-C128-85D7CF8A061B> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/racc/cparse.bundle
0x1012b5000 - 0x1012b7ff7 +iconv.bundle ??? (???) <BDB48C60-66D8-036F-D6E9-F7669CBDA16C> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/iconv.bundle
0x1012bb000 - 0x1012bffff +parser.bundle ??? (???) <261FDCD0-29C8-8A3B-9B72-D4BC51715B67> /usr/local/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser.bundle
0x1012c3000 - 0x1012c7ff7 +generator.bundle ??? (???) <B354DFF3-AE88-AC13-2D6A-C8827C0033F2> /usr/local/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/generator.bundle
0x1012cb000 - 0x1012dafff +nokogiri.bundle ??? (???) <81F28AEC-FF97-8911-4728-9253F14205F3> /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
0x1012eb000 - 0x1012f2ff7 +ruby_debug.bundle ??? (???) <2AA2B821-3C45-14A6-9573-38D651556B36> /Users/lbayes/.gem/ruby/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
0x1012f7000 - 0x1012f9fff +trace_nums.bundle ??? (???) <70D184EC-461F-D2E6-8094-B56FB2BACE83> /Users/lbayes/.gem/ruby/1.8/gems/linecache-0.43/ext/trace_nums.bundle
0x101802000 - 0x101815fe7 +libexslt.0.dylib ??? (???) <FD064ED5-7CC6-E58E-00DD-06775F1BBE72> /usr/local/lib/libexslt.0.dylib
0x10181b000 - 0x10185bff7 +libxslt.1.dylib ??? (???) <8A989A1C-85AE-2CE9-068A-C6DCDF839566> /usr/local/lib/libxslt.1.dylib
0x101867000 - 0x101869ff7 +readline.bundle ??? (???) <79F5B425-0C27-CF59-2EE6-E05AFE3EF850> /usr/local/lib/ruby/1.8/i686-darwin10.0.0/readline.bundle
0x10186d000 - 0x101889ff7 libedit.2.dylib ??? (???) <F9D005F8-74B8-CC05-2697-24C49E0CC1EF> /usr/lib/libedit.2.dylib
0x101898000 - 0x1018a6fff +sqlite3_api.bundle ??? (???) <50ED247E-9C93-8CA1-8E7E-18F715A60DE9> /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5/lib/sqlite3_api.bundle
0x103900000 - 0x103a83fe7 +libxml2.2.dylib ??? (???) <0B99B8DC-820C-FCE2-B37E-3D4B6BA67EDE> /usr/local/lib/libxml2.2.dylib
0x7fff5fc00000 - 0x7fff5fc3bdef dyld 132.1 (???) <B633F790-4DDB-53CD-7ACF-2A3682BCEA9F> /usr/lib/dyld
0x7fff808d1000 - 0x7fff808d2ff7 com.apple.TrustEvaluationAgent 1.1 (1) <51867586-1C71-AE37-EAAD-535A58DD3550> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff81877000 - 0x7fff8196ffe7 libiconv.2.dylib ??? (???) <ECEE3D93-B5E3-F0E0-803E-CA3DC3B33D57> /usr/lib/libiconv.2.dylib
0x7fff81970000 - 0x7fff81b2eff7 libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
0x7fff833f5000 - 0x7fff834aefff libsqlite3.dylib ??? (???) <5A15E12A-AE8F-1A36-BBC7-564E7D7AD0FB> /usr/lib/libsqlite3.dylib
0x7fff85363000 - 0x7fff853e0fef libstdc++.6.dylib ??? (???) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
0x7fff853e1000 - 0x7fff853f2fef libz.1.dylib ??? (???) <3A7A4C48-A4C8-A78A-8B87-C0DDF6601AC8> /usr/lib/libz.1.dylib
0x7fff85cf9000 - 0x7fff85d38fef libncurses.5.4.dylib ??? (???) <E0A07C12-D912-DF26-9E38-C50484D96EB0> /usr/lib/libncurses.5.4.dylib
0x7fff86662000 - 0x7fff86783fe7 libcrypto.0.9.8.dylib ??? (???) <32F2A87F-B146-BBF2-3AD1-494C686F1EE3> /usr/lib/libcrypto.0.9.8.dylib
0x7fff87f25000 - 0x7fff87f5ffff libssl.0.9.8.dylib ??? (???) <0714FA32-C193-CD96-80D1-6FCF06A0ED2E> /usr/lib/libssl.0.9.8.dylib
0x7fff886ad000 - 0x7fff886f9fff libauto.dylib ??? (???) <072804DF-36AD-2DBE-7EF8-639CFB79077F> /usr/lib/libauto.dylib
0x7fff88894000 - 0x7fff8894afff libobjc.A.dylib ??? (???) <F206BE6D-8777-AE6C-B367-7BEA76C14241> /usr/lib/libobjc.A.dylib
0x7fff88c99000 - 0x7fff88c9dff7 libmathCommon.A.dylib ??? (???) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <526DD3E5-2A8B-4512-ED97-01B832369959> /usr/lib/libSystem.B.dylib
Ok, I've fixed this on my machine. I'm not sure exactly why, but downgrading the ruby-debug gem to version 0.10.0 solves the problem for me.
The specific fix is running the following commands:
sudo gem uninstall ruby-debug
sudo gem install ruby-debug --version 0.10.0
I just ran into a similar issue myself.
It's typically caused by a gem with natively compiled bits that's loading a library compiled for a different architecture. (Sounds like you've been down that path already.)
Unfortunately, this also includes libraries that are compiled as universal binaries.
In my case the problem was caused because Ruby was loading the wrong version of OpenSSL. Perhaps the problem is similar for you. Based on the answers above it sounds like ruby-debug is causing the problem. Could it be linking against the wrong library?
Here are some links about the problem that helped me:
openssl, eventmachine, and the ruby 1.8.7 (and ree, too) bus error
gitjour, dnssd bus error
(More) RVM and MacPorts Hell
SSL! Abort Trap! Egad!
I don't have a solution, but I've identified a way to reproduce this issue.
After installing the ruby-debug-0.10.3 gem today, my Rails 2.1.1 test that calls 'stderr.read' within an
Open4::popen4( "FOO" ) do | pid, stdin, stdout, stderr |
stderr.read
end
block has started throwing same '[BUG] Bus Error ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]' that you're getting.
If I 'sudo gem uninstall ruby-debug', the test runs and passes. If I then 'sudo gem install ruby-debug' again, the test throws.
I'm running a Rails 2.1.1 project on Snow Leopard with Ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0] installed.
Rebuilding the ruby-debug gem for 64-bit isn't fixing the issue for me.
Sounds like you have the wrong gem version, or it's incompatible with MacOS. From the RDoc:
Users of Linux, Unix, BSD, etc., will want the unix package. Ara’s Open4 gem is a dependency.
Users of the Ruby One-Click Installer
(OCI) will want to select the gem
appropriate their version of Ruby. The
real issue here is compiler version.
The wrong version will SEGFAULT due to
some incompatibility somewhere in the
VC++ compiler or libraries
It sounds like these are hardware errors rather than software errors. Get your machine checked out, especially the memory.

Resources