Created
May 3, 2012 20:33
-
-
Save ratnikov/2589054 to your computer and use it in GitHub Desktop.
Reproducing file access on defined?(OpenSSL)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> strace -e trace=file -f -p `ps -ef | grep java | grep test | awk '{ print $2 }'` 2>&1 | |
.... | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/1.9/openssl.class", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/1.9/openssl.rb", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/shared/openssl.class", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/shared/openssl.rb", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/1.8/openssl.class", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/site_ruby/1.8/openssl.rb", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/1.9/openssl.class", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) | |
[pid 30072] stat64("/home/ratnikov/jruby.git/lib/ruby/1.9/openssl.rb", 0xcd3fe7ec) = -1 ENOENT (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "sleeping..." | |
sleep 5 | |
puts "woke up!" | |
Gem.post_reset { Gem::Specification.all = [] } | |
Gem.clear_paths | |
require 'net/https' | |
Thread.start { | |
while true do | |
puts "requiring opensll" | |
defined = defined?(OpenSSL) | |
sleep 2 | |
end | |
} | |
while true do | |
sleep(2) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment