<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/tool/lib/leakchecker.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) f6adc5be94a9f70a5b9897b81dabdeb49b573393,bccdc041665032b819fab1c04ed4dbdfeeeb366b: [Backport #19582]</title>
<updated>2023-07-17T00:54:51+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2023-07-17T00:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9d8d0585ec35070099e4fdeef5ee18f6fbf339b6'/>
<id>9d8d0585ec35070099e4fdeef5ee18f6fbf339b6</id>
<content type='text'>
	Check if Bundler is defined

	---
	 tool/lib/leakchecker.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	Check if `Bundler::EnvironmentPreserver` is defined

	Only `Bundler` might be defined.  `EnvironmentPreserver` and its
	`BUNDLER_PREFIX` would be defined together in the same file.
	---
	 tool/lib/leakchecker.rb | 5 ++++-
	 1 file changed, 4 insertions(+), 1 deletion(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Check if Bundler is defined

	---
	 tool/lib/leakchecker.rb | 2 +-
	 1 file changed, 1 insertion(+), 1 deletion(-)

	Check if `Bundler::EnvironmentPreserver` is defined

	Only `Bundler` might be defined.  `EnvironmentPreserver` and its
	`BUNDLER_PREFIX` would be defined together in the same file.
	---
	 tool/lib/leakchecker.rb | 5 ++++-
	 1 file changed, 4 insertions(+), 1 deletion(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't report changed ENV caused by Bundler</title>
<updated>2022-11-04T19:36:30+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2022-11-04T19:36:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6d835901575d58e7db404665801a1c455ee982a8'/>
<id>6d835901575d58e7db404665801a1c455ee982a8</id>
<content type='text'>
Bundler's backups changes environment variables starting with
BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker
reports them as changed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bundler's backups changes environment variables starting with
BUNDLER_ORIG_. This causes a lot of noise in tests as the leakchecker
reports them as changed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Hack to avoid leak checker</title>
<updated>2022-05-25T09:48:01+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-05-25T09:47:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=983f2688db3cb856589b5bab5d09147d0a180be5'/>
<id>983f2688db3cb856589b5bab5d09147d0a180be5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Consider environment variable case-insensitiveness</title>
<updated>2021-11-29T14:00:20+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-11-28T12:49:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4acc7563a111fd35524b07150990dc3ef842a685'/>
<id>4acc7563a111fd35524b07150990dc3ef842a685</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace MiniTest::Unit to Test::Unit::Runner</title>
<updated>2021-09-10T23:48:03+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2021-09-08T01:35:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8ec187c091537aa5d25f19eee522aaec12bc7c26'/>
<id>8ec187c091537aa5d25f19eee522aaec12bc7c26</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Show leaked file descriptors only, without cwd, txt, and so on</title>
<updated>2021-06-27T12:17:58+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-06-27T12:17:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e724857f42280fe285e6d0de69b4832458b80b0a'/>
<id>e724857f42280fe285e6d0de69b4832458b80b0a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Check warning flags only if available to run with old versions</title>
<updated>2020-07-15T14:33:24+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-07-15T14:30:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9f4b7fc82e45531e0057f807548a4d1c2b248186'/>
<id>9f4b7fc82e45531e0057f807548a4d1c2b248186</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>test/drb/test_drbssl.rb: skip LeakChecker as openssl keeps /dev/random</title>
<updated>2020-05-26T17:07:38+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2020-05-26T17:07:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=962c302a1ae8e50738c36adb61c8ec9c9fa5a49b'/>
<id>962c302a1ae8e50738c36adb61c8ec9c9fa5a49b</id>
<content type='text'>
and /dev/urandom intentionally.  OpenSSL::PKey::RSA.new opens the two
random generators and keeps the file descriptors.

https://github.com/openssl/openssl/blob/93f99b681ab5a1cf7062053323e09b0cad5ff854/crypto/rand/rand_unix.c#L674

They are detected by the LeakChecker as fd leak, but it is intentional.

http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T160005Z.log.html.gz
```
[  597/20199] DRbTests::TestDRbSSLAry#test_01 = 0.29 s
Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 8 #&lt;File::Stat dev=0x6, ino=11, mode=020666, nlink=1, uid=0, gid=0, rdev=0x109, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.751999995 +0000, mtime=2020-05-23 14:45:13.751999995 +0000, ctime=2020-05-23 14:45:13.751999995 +0000&gt;
Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 9 #&lt;File::Stat dev=0x6, ino=10, mode=020666, nlink=1, uid=0, gid=0, rdev=0x108, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.755999995 +0000, mtime=2020-05-23 14:45:13.755999995 +0000, ctime=2020-05-23 14:45:13.755999995 +0000&gt;
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and /dev/urandom intentionally.  OpenSSL::PKey::RSA.new opens the two
random generators and keeps the file descriptors.

https://github.com/openssl/openssl/blob/93f99b681ab5a1cf7062053323e09b0cad5ff854/crypto/rand/rand_unix.c#L674

They are detected by the LeakChecker as fd leak, but it is intentional.

http://rubyci.s3.amazonaws.com/graviton2/ruby-master/log/20200526T160005Z.log.html.gz
```
[  597/20199] DRbTests::TestDRbSSLAry#test_01 = 0.29 s
Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 8 #&lt;File::Stat dev=0x6, ino=11, mode=020666, nlink=1, uid=0, gid=0, rdev=0x109, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.751999995 +0000, mtime=2020-05-23 14:45:13.751999995 +0000, ctime=2020-05-23 14:45:13.751999995 +0000&gt;
Leaked file descriptor: DRbTests::TestDRbSSLAry#test_01: 9 #&lt;File::Stat dev=0x6, ino=10, mode=020666, nlink=1, uid=0, gid=0, rdev=0x108, size=0, blksize=4096, blocks=0, atime=2020-05-23 14:45:13.755999995 +0000, mtime=2020-05-23 14:45:13.755999995 +0000, ctime=2020-05-23 14:45:13.755999995 +0000&gt;
```
</pre>
</div>
</content>
</entry>
<entry>
<title>leakchecker.rb: show test name</title>
<updated>2020-05-16T08:35:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2020-05-16T08:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8c3a60df2a671a538f9f7aef57adaa77ec817de9'/>
<id>8c3a60df2a671a538f9f7aef57adaa77ec817de9</id>
<content type='text'>
When multiple autoclose IO objects are leaked too.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When multiple autoclose IO objects are leaked too.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check encodings of STDIN,STDOUT,STDERR too</title>
<updated>2020-05-07T15:12:48+00:00</updated>
<author>
<name>Kazuhiro NISHIYAMA</name>
<email>zn@mbf.nifty.com</email>
</author>
<published>2020-05-07T15:12:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=22b1e824d736d394c9efaabf882e9a6110135a57'/>
<id>22b1e824d736d394c9efaabf882e9a6110135a57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
