{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/ruby/issues/75","repository_url":"https://api.github.com/repos/docker-library/ruby","labels_url":"https://api.github.com/repos/docker-library/ruby/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/ruby/issues/75/comments","events_url":"https://api.github.com/repos/docker-library/ruby/issues/75/events","html_url":"https://github.com/docker-library/ruby/issues/75","id":144274167,"number":75,"title":"[Alpine] irb causing segmentation fault","user":{"login":"soedar","id":571891,"avatar_url":"https://avatars.githubusercontent.com/u/571891?v=3","gravatar_id":"","url":"https://api.github.com/users/soedar","html_url":"https://github.com/soedar","followers_url":"https://api.github.com/users/soedar/followers","following_url":"https://api.github.com/users/soedar/following{/other_user}","gists_url":"https://api.github.com/users/soedar/gists{/gist_id}","starred_url":"https://api.github.com/users/soedar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soedar/subscriptions","organizations_url":"https://api.github.com/users/soedar/orgs","repos_url":"https://api.github.com/users/soedar/repos","events_url":"https://api.github.com/users/soedar/events{/privacy}","received_events_url":"https://api.github.com/users/soedar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-03-29T14:01:58Z","updated_at":"2016-09-05T13:08:57Z","closed_at":"2016-03-29T22:34:11Z","body":"Using the irb in the `ruby:2.3.0-alpine` container will frequently crash with a segmentation fault after entering a command (or just hitting the enter key several times)\r\n\r\nIt does appear to be crashing because of the readline library. Adding `readline-dev` in the build dependency phase does seem to create an image which does not crash. Any idea if that's the right fix?\r\n\r\nHere is the log when irb crashes:\r\n```\r\nirb(main):001:0> \r\n/usr/local/lib/ruby/2.3.0/irb/input-method.rb:149: [BUG] Segmentation fault at 0x00000000000010\r\nruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux] \r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0022 p:---- s:0081 e:000080 CFUNC  :input= \r\nc:0021 p:0017 s:0077 e:000076 METHOD /usr/local/lib/ruby/2.3.0/irb/input-method.rb:149\r\nc:0020 p:0013 s:0073 e:000072 BLOCK  /usr/local/lib/ruby/2.3.0/irb.rb:469\r\nc:0019 p:0041 s:0070 e:000069 METHOD /usr/local/lib/ruby/2.3.0/irb.rb:623\r\nc:0018 p:0011 s:0065 e:000064 BLOCK  /usr/local/lib/ruby/2.3.0/irb.rb:468 [FINISH]\r\nc:0017 p:0017 s:0063 e:000062 METHOD /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:189\r\nc:0016 p:0016 s:0059 e:000058 METHOD /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:104\r\nc:0015 p:0024 s:0055 e:000054 METHOD /usr/local/lib/ruby/2.3.0/irb/slex.rb:206\r\nc:0014 p:0043 s:0047 e:000046 METHOD /usr/local/lib/ruby/2.3.0/irb/slex.rb:76\r\nc:0013 p:0045 s:0042 e:000041 METHOD /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:283\r\nc:0012 p:0014 s:0038 e:000037 METHOD /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:265\r\nc:0011 p:0024 s:0033 e:000032 BLOCK  /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:236 [FINISH]\r\nc:0010 p:---- s:0030 e:000029 CFUNC  :loop\r\nc:0009 p:0009 s:0027 e:000026 BLOCK  /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:232 [FINISH]\r\nc:0008 p:---- s:0025 e:000024 CFUNC  :catch\r\nc:0007 p:0018 s:0021 e:000020 METHOD /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:231\r\nc:0006 p:0037 s:0018 E:0019d0 METHOD /usr/local/lib/ruby/2.3.0/irb.rb:485\r\nc:0005 p:0009 s:0015 e:000014 BLOCK  /usr/local/lib/ruby/2.3.0/irb.rb:395 [FINISH]\r\nc:0004 p:---- s:0013 e:000012 CFUNC  :catch\r\nc:0003 p:0177 s:0009 E:0024c0 METHOD /usr/local/lib/ruby/2.3.0/irb.rb:394\r\nc:0002 p:0023 s:0004 E:000820 EVAL   /usr/local/bin/irb:11 [FINISH]\r\nc:0001 p:0000 s:0002 E:000af0 (none) [FINISH]\r\n\r\n-- Ruby level backtrace information ----------------------------------------\r\n/usr/local/bin/irb:11:in `<main>'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:394:in `start'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:394:in `catch'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:395:in `block in start'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:485:in `eval_input'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:231:in `each_top_level_statement'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:231:in `catch'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:232:in `block in each_top_level_statement'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:232:in `loop'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:236:in `block (2 levels) in each_top_level_statement'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:265:in `lex'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:283:in `token'\r\n/usr/local/lib/ruby/2.3.0/irb/slex.rb:76:in `match'\r\n/usr/local/lib/ruby/2.3.0/irb/slex.rb:206:in `match_io'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:104:in `getc'\r\n/usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb:189:in `buf_input'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:468:in `block in eval_input'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:623:in `signal_status'\r\n/usr/local/lib/ruby/2.3.0/irb.rb:469:in `block (2 levels) in eval_input'\r\n/usr/local/lib/ruby/2.3.0/irb/input-method.rb:149:in `gets'\r\n/usr/local/lib/ruby/2.3.0/irb/input-method.rb:149:in `input='\r\n\r\n-- Machine register context ------------------------------------------------\r\n RIP: 0x00007f69c8573598 RBP: 0x00005616c5af1890 RSP: 0x00007ffe8e91c838\r\n RAX: 0x0000000000000000 RBX: 0x0000000000000021 RCX: 0x0000000000000421\r\n RDX: 0x00007f69c87d6328 RDI: 0x00005616c5af1890 RSI: 0x0000000000000023\r\n  R8: 0x0000000000000300  R9: 0x0000000000000348 R10: 0x0000000000000003\r\n R11: 0x0000000000000202 R12: 0x0000000000000023 R13: 0x00007f69c87d6330\r\n R14: 0x00007f69c87d6328 R15: 0x00007f69c87d5fe0 EFL: 0x0000000000010297\r\n\r\n-- Other runtime information -----------------------------------------------\r\n\r\n* Loaded script: irb\r\n\r\n* Loaded features:\r\n\r\n    0 enumerator.so\r\n    1 thread.rb\r\n    2 rational.so\r\n    3 complex.so\r\n    4 /usr/local/lib/ruby/2.3.0/x86_64-linux/enc/encdb.so\r\n    5 /usr/local/lib/ruby/2.3.0/x86_64-linux/enc/trans/transdb.so\r\n    6 /usr/local/lib/ruby/2.3.0/unicode_normalize.rb\r\n    7 /usr/local/lib/ruby/2.3.0/x86_64-linux/rbconfig.rb\r\n    8 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/compatibility.rb\r\n    9 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/defaults.rb\r\n   10 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/deprecate.rb\r\n   11 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/errors.rb\r\n   12 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/version.rb\r\n   13 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/requirement.rb\r\n   14 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/platform.rb\r\n   15 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/basic_specification.rb\r\n   16 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb\r\n   17 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/util/list.rb\r\n   18 /usr/local/lib/ruby/2.3.0/x86_64-linux/stringio.so\r\n   19 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb\r\n   20 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/exceptions.rb\r\n   21 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_gem.rb\r\n   22 /usr/local/lib/ruby/2.3.0/monitor.rb\r\n   23 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb\r\n   24 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems.rb\r\n   25 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/path_support.rb\r\n   26 /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/dependency.rb\r\n   27 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/version.rb\r\n   28 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/core_ext/name_error.rb\r\n   29 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/levenshtein.rb\r\n   30 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/jaro_winkler.rb\r\n   31 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkable.rb\r\n   32 /usr/local/lib/ruby/2.3.0/delegate.rb\r\n   33 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb\r\n   34 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb\r\n   35 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb\r\n   36 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/method_name_checker.rb\r\n   37 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/null_checker.rb\r\n   38 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/formatter.rb\r\n   39 /usr/local/lib/ruby/gems/2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean.rb\r\n   40 /usr/local/lib/ruby/2.3.0/e2mmap.rb\r\n   41 /usr/local/lib/ruby/2.3.0/irb/init.rb\r\n   42 /usr/local/lib/ruby/2.3.0/irb/workspace.rb\r\n   43 /usr/local/lib/ruby/2.3.0/irb/inspector.rb\r\n   44 /usr/local/lib/ruby/2.3.0/irb/context.rb\r\n   45 /usr/local/lib/ruby/2.3.0/irb/extend-command.rb\r\n   46 /usr/local/lib/ruby/2.3.0/irb/output-method.rb\r\n   47 /usr/local/lib/ruby/2.3.0/irb/notifier.rb\r\n   48 /usr/local/lib/ruby/2.3.0/irb/slex.rb\r\n   49 /usr/local/lib/ruby/2.3.0/irb/ruby-token.rb\r\n   50 /usr/local/lib/ruby/2.3.0/irb/ruby-lex.rb\r\n   51 /usr/local/lib/ruby/2.3.0/irb/src_encoding.rb\r\n   52 /usr/local/lib/ruby/2.3.0/irb/magic-file.rb\r\n   53 /usr/local/lib/ruby/2.3.0/x86_64-linux/readline.so\r\n   54 /usr/local/lib/ruby/2.3.0/irb/input-method.rb\r\n   55 /usr/local/lib/ruby/2.3.0/irb/locale.rb\r\n   56 /usr/local/lib/ruby/2.3.0/irb.rb\r\n```\r\n\r\n```\r\n$ docker -v                                                                                                                                                                     \r\nDocker version 1.10.3, build 20f81dd\r\n```"},"comment":{"url":"https://api.github.com/repos/docker-library/ruby/issues/comments/244743213","html_url":"https://github.com/docker-library/ruby/issues/75#issuecomment-244743213","issue_url":"https://api.github.com/repos/docker-library/ruby/issues/75","id":244743213,"user":{"login":"pavel-jurasek-bcgdv-com","id":7910967,"avatar_url":"https://avatars.githubusercontent.com/u/7910967?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-jurasek-bcgdv-com","html_url":"https://github.com/pavel-jurasek-bcgdv-com","followers_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/followers","following_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/following{/other_user}","gists_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/subscriptions","organizations_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/orgs","repos_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/repos","events_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-jurasek-bcgdv-com/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T13:08:57Z","updated_at":"2016-09-05T13:08:57Z","body":"@databus23  @emk i need to confirm this... we re-deploy our stack with re-compiled ruby and it works without problems."}}
{"actor":{"display_login":"pavel-jurasek-bcgdv-com"}}