Skip to content

Instantly share code, notes, and snippets.

@tagomoris
Created May 11, 2014 10:00
Show Gist options
  • Save tagomoris/a173bb6317ddc55dcfb3 to your computer and use it in GitHub Desktop.
Save tagomoris/a173bb6317ddc55dcfb3 to your computer and use it in GitHub Desktop.
jruby occurs segmentation fault with command line argument including '%d' and '%S'
$ 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