# Cfp-consistency error

**URL:** <https://www.ruby-forum.com/t/cfp-consistency-error/235730>\
**Category:** Ruby\
**Created:** [July 11, 2013, 5:06pm UTC](https://www.ruby-forum.com/t/cfp-consistency-error/235730 "2013-07-11T17:06:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 11, 2013, 5:06pm UTC](https://www.ruby-forum.com/t/cfp-consistency-error/235730/1 "2013-07-11T17:06:41Z")

</div>

Hi,

I am running Rails test suite with DB2 for providing compatibility with  
Rails-4. I am continuously running into a crash with cfp consistency  
error. Interestingly this error is occurring at different places, hence  
making it difficult to diagnose.

Could you let me know why does a cfp consistency error occurs, like ehat  
conditions can cause this error to be thrown.

The C code of the ibm\_db driver can be found at  
[http://rubyibm.rubyforge.org/svn/trunk/IBM\_DB\_Driver/ibm\_db.c](http://rubyibm.rubyforge.org/svn/trunk/IBM_DB_Driver/ibm_db.c)

Could anyone point me to where I can start to diagnose and correct the  
problem.

I am on ruby 1.9.3p125 (2012-02-16 revision 34643) [x86\_64-linux]  
OS - Ubuntu 12.04.2 LTS  
gcc version with which Ruby is compiled - gcc (Ubuntu/Linaro  
4.6.3-1ubuntu5) 4.6.3  
Here is the initial stack trace… The full trace can be found in the  
file attached.

* * *

/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activesupport-4.0.0/lib/active\_support/per\_thread\_registry.rb:49:  
[BUG] cfp consistency error - send  
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86\_64-linux]

## – Control frame information

c:0010 p:---- s:0033 b:0033 l:000032 d:000032 CFUNC :[]  
c:0009 p:0029 s:0029 b:0026 l:000025 d:000025 METHOD  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activesupport-4.0.0/lib/active\_support/per\_thread\_registry.rb:49  
c:0008 p:0009 s:0023 b:0023 l:001450 d:000022 LAMBDA  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activesupport-4.0.0/lib/active\_support/per\_thread\_registry.rb:40  
c:0007 p:---- s:0019 b:0019 l:000018 d:000018 FINISH  
c:0006 p:0019 s:0017 b:0017 l:000016 d:000016 METHOD  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/lib/active\_record/connection\_handling.rb:57  
c:0005 p:0018 s:0014 b:0013 l:000012 d:000012 METHOD  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/lib/active\_record/connection\_adapters/abstract/connection  
c:0004 p:0014 s:0010 b:0009 l:000008 d:000008 METHOD  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/lib/active\_record/connection\_adapters/abstract/connection  
c:0003 p:0011 s:0006 b:0006 l:001230 d:000005 BLOCK  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/test/cases/connection\_pool\_test.rb:189  
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH  
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP

## – Ruby level backtrace information

/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/test/cases/connection\_pool\_test.rb:189:in  
`block (2 levels) in test_checkout_behaviour' /home/praveen/GEM_HOME/gems_home_rb193_rails4/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:264:in `connection’  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activerecord-4.0.0/lib/active\_record/connection\_adapters/abstract/connection\_pool.rb:444:in  
`current_connection_id' /home/praveen/GEM_HOME/gems_home_rb193_rails4/gems/activerecord-4.0.0/lib/active_record/connection_handling.rb:57:in `connection\_id’  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activesupport-4.0.0/lib/active\_support/per\_thread\_registry.rb:40:in  
`block in method_missing' /home/praveen/GEM_HOME/gems_home_rb193_rails4/gems/activesupport-4.0.0/lib/active_support/per_thread_registry.rb:49:in `per\_thread\_registry\_instance’  
/home/praveen/GEM\_HOME/gems\_home\_rb193\_rails4/gems/activesupport-4.0.0/lib/active\_support/per\_thread\_registry.rb:49:in  
`[]’

## – C level backtrace information

## /home/praveen/ruby193\_exe/bin/ruby() [0x52b387] vm\_dump.c:796 /home/praveen/ruby193\_exe/bin/ruby() [0x5787b8] error.c:258 /home/praveen/ruby193\_exe/bin/ruby(rb\_bug+0xb1) [0x579c21] error.c:277 /home/praveen/ruby193\_exe/bin/ruby() [0x527b0a] vm\_insnhelper.c:407 /home/praveen/ruby193\_exe/bin/ruby() [0x51cb0a] insns.def:1915 /home/praveen/ruby193\_exe/bin/ruby() [0x52173e] vm.c:1220 /home/praveen/ruby193\_exe/bin/ruby() [0x522492] vm.c:624 /home/praveen/ruby193\_exe/bin/ruby() [0x522c01] vm.c:670 /home/praveen/ruby193\_exe/bin/ruby() [0x52796e] vm\_insnhelper.c:433 /home/praveen/ruby193\_exe/bin/ruby() [0x51b95f] insns.def:1015 /home/praveen/ruby193\_exe/bin/ruby() [0x52173e] vm.c:1220 /home/praveen/ruby193\_exe/bin/ruby() [0x522492] vm.c:624 /home/praveen/ruby193\_exe/bin/ruby() [0x522c01] vm.c:670 /home/praveen/ruby193\_exe/bin/ruby() [0x532491] thread.c:453 /home/praveen/ruby193\_exe/bin/ruby() [0x53265f] thread\_pthread.c:653

Thanks

Praveen
