Skip to content

Instantly share code, notes, and snippets.

@spscream
Created June 25, 2015 19:18
Show Gist options
  • Select an option

  • Save spscream/0c2a6a0758a6f75afbfc to your computer and use it in GitHub Desktop.

Select an option

Save spscream/0c2a6a0758a6f75afbfc to your computer and use it in GitHub Desktop.
rails/rails#19332 leakage test run
Model (call 'Model.connection' to establish a connection)
unknown OID 24: failed to recognize type of 'typinput'. It will be treated as String.
unknown OID 194: failed to recognize type of 'typdefaultbin'. It will be treated as String.
unknown OID 1034: failed to recognize type of 'typacl'. It will be treated as String.
Model(typname: string, typnamespace: integer, typowner: integer, typlen: integer, typbyval: boolean, typtype: string, typcategory: string, typispreferred: boolean, typisdefined: boolean, typdelim: string, typrelid: integer, typelem: integer, typarray: integer, typinput: , typoutput: , typreceive: , typsend: , typmodin: , typmodout: , typanalyze: , typalign: string, typstorage: string, typnotnull: boolean, typbasetype: integer, typtypmod: integer, typndims: integer, typcollation: integer, typdefaultbin: , typdefault: text, typacl: )
initial state:
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
non_leaker:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044076100
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2088088 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044076100
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2088088 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2172908 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044076100
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2088088 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044076100
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2088088 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400}
leaker:
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f2172908 run>=>70098086316260}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 run>=>70098040726940, #<Celluloid::Thread:0x007f81f2172908 run>=>70098040844300}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300, #<Celluloid::Thread:0x007f81f2172908 run>=>70098042215680}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
reserved: {#<Thread:0x007f81f18cb7c8 sleep>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300, #<Celluloid::Thread:0x007f81f2172908 run>=>70098042215680}
err: NameError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300}
----------------------------------------------------------------------------------------------------------------------------------------------------------------
STARTING JOB
thread: 70098044556420
err: ActiveRecord::ConnectionTimeoutError
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300, #<Celluloid::Thread:0x007f81f1fec048 sleep>=>70098042215680}
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300, #<Celluloid::Thread:0x007f81f1fec048 sleep>=>70098042215680}
finished state:
reserved: {#<Thread:0x007f81f18cb7c8 run>=>70098044115400, #<Celluloid::Thread:0x007f81f283f650 sleep>=>70098086316260, #<Celluloid::Thread:0x007f81f18381a8 sleep>=>70098040726940, #<Celluloid::Thread:0x007f81f1feeaa0 sleep>=>70098040844300, #<Celluloid::Thread:0x007f81f1fec048 sleep>=>70098042215680}
Frame number: 0/0
From: /Users/amalaev/work/projects/rails/celluloid-ar-leaker/test.rb @ line 131 :
126: state: actor_state,
127: connection: connection,
128: }
129: end
130:
=> 131: binding.pry
132:
133: # Thread.list.select {|x| @reserved_connections.keys.include?(x.object_id)}.select(&:celluloid?).map(&:actor).map(&:behavior).map(&:subject)
[1] pry(main)>
[1] pry(main)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment