Created
May 11, 2014 10:00
-
-
Save tagomoris/a173bb6317ddc55dcfb3 to your computer and use it in GitHub Desktop.
jruby occurs segmentation fault with command line argument including '%d' and '%S'
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
$ jruby -e 'p ARGV' '%Y%m%d' | |
["%Y%m%d"] | |
$ jruby -e 'p ARGV' '%Y%m%d%H' | |
["%Y%m%d%H"] | |
$ jruby -e 'p ARGV' '%Y%m%d%H%M' | |
["%Y%m%d%H%M"] | |
$ jruby -e 'p ARGV' '%Y%m%d%H%M%S' | |
Segmentation fault: 11 | |
$ jruby -e 'p ARGV' '%S' | |
["%S"] | |
$ jruby -e 'p ARGV' '%M%S' | |
["%M%S"] | |
$ jruby -e 'p ARGV' '%H%M%S' | |
["%H%M%S"] | |
$ jruby -e 'p ARGV' '%d%H%M%S' | |
Segmentation fault: 11 | |
$ jruby -e 'p ARGV' '%d%S' | |
Segmentation fault: 11 | |
$ jruby -v | |
jruby 1.7.11 (1.9.3p392) 2014-02-24 86339bb on Java HotSpot(TM) 64-Bit Server VM 1.7.0_55-b13 [darwin-x86_64] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment