Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kosaki on github.
  • I am kosaki (https://keybase.io/kosaki) on keybase.
  • I have a public key ASDLkRbWumMwiiXdyBZztYXqRvFvb1iOSMkz7hiXDH1A3wo

To claim this, I am signing this object:

######## EXCEPTION: 0xC0000005 at address: 0x01C27CBB: ACCESS VIOLATION read attempt to address 0x0000006C
Version: Unknown Version
09/11/18 17:12:54
######## EXCEPTION: 0xC0000005 at address: 0x01F323FB: ACCESS VIOLATION read attempt to address 0x0000000D
Version: Unknown Version
09/11/18 17:25:12
require 'mail'
Mail.defaults do
options = { :address => "smtp.gmail.com",
:port => 587,
:user_name => 'kosaki.motohiro',
:password => 'パスワード',
:authentication => 'plain',
:enable_starttls_auto => true }
#!/usr/bin/ruby
require 'date'
changelog = nil
# find out ChangeLog file
diff = `git diff --stat HEAD`
diff.scan(/^ (ChangeLog) +\|/) { |ary|
changelog = ary[0]
main: efd=3
main: spawn worker(0)
main: spawn worker(1)
main: spawn worker(2)
main: spawn worker(3)
main: spawn worker(4)
main: spawn worker(5)
main: spawn worker(6)
main: spawn worker(7)
main: spawn worker(8)
$ dieharder -a -f securerandom.bin
#=============================================================================#
# dieharder version 3.31.1 Copyright 2003 Robert G. Brown #
#=============================================================================#
rng_name | filename |rands/second|
mt19937| securerandom.bin| 1.21e+08 |
#=============================================================================#
test_name |ntup| tsamples |psamples| p-value |Assessment
#=============================================================================#
diehard_birthdays| 0| 100| 100|0.47983538| PASSED
$ dieharder -a -f securerandom.bin
#=============================================================================#
# dieharder version 3.31.1 Copyright 2003 Robert G. Brown #
#=============================================================================#
rng_name | filename |rands/second|
mt19937| securerandom.bin| 1.27e+08 |
#=============================================================================#
test_name |ntup| tsamples |psamples| p-value |Assessment
#=============================================================================#
diehard_birthdays| 0| 100| 100|0.19425766| PASSED
Binary compatibility report for the libruby library between unspecified and
unspecified versions on x86_64
Test Info
-------------------------------------------------------------------------------
Library Name libruby
Version #1 unspecified
Version #2 unspecified
commit d84ba638e4ba3c40023ff997aa5e8d3ed002af36
Author: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Date: Tue Aug 24 16:05:48 2010 +0000
tcp: select(writefds) don't hang up when a peer close connection
This issue come from ruby language community. Below test program
hang up when only run on Linux.
% uname -mrsv
% make
cc -D_FORTIFY_SOURCE=2 -Wall -g -O2 memcpy_test.c memcpy_chk.c -o memcpy_test
In function ‘my_memcpy’,
inlined from ‘main’ at memcpy_test.c:29:
memcpy_test.c:17: 警告: call to ‘my_memcpy_warn’ declared with attribute warning: my warning
% ./memcpy_test
my buffer overflow detection
[1] 27873 abort (core dumped) ./memcpy_test