Skip to content

Segfault with ncurses 5, rain example #12

Description

@edmundhighcock

Hi All,

Thanks for a great library. I'm writing a console for a tool of mine that runs on high performance computers. I've built ncurses 5 and ruby 2.1.5 using the GCC. Installing ncurses-ruby with gem runs fine. Unfortunately when I try the rain.rb example I get a segfault with the stack trace below. There seems to be a problem with getc

[BUG] Segmentation fault at 0x000000d
e6aaf98
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]

-- Control frame information -----------------------------------------------
c:0003 p:---- s:0009 e:000008 CFUNC  :getch
c:0002 p:0274 s:0006 E:000138 EVAL   /home1/02582/highcock/work/ToolsNew/lib/ruby/gems/2.1.0/gems/ncurses-ruby-1.2.4/examples/rain.rb:200 [
FINISH]
c:0001 p:0000 s:0002 E:000fd8 TOP    [FINISH]

/home1/02582/highcock/work/ToolsNew/lib/ruby/gems/2.1.0/gems/ncurses-ruby-1.2.4/examples/rain.rb:200:in `<main>'
/home1/02582/highcock/work/ToolsNew/lib/ruby/gems/2.1.0/gems/ncurses-ruby-1.2.4/examples/rain.rb:200:in `getch'

-- C level backtrace information -------------------------------------------
ruby(+0x171a6a) [0x2b92d6478a6a]
ruby(+0x171b45) [0x2b92d6478b45]
ruby(+0x1cab4e) [0x2b92d64d1b4e]
ruby(rb_bug+0x108) [0x2b92d64d1cf5]
ruby(+0xea6ee) [0x2b92d63f16ee]
/lib64/libpthread.so.0(+0x300100f7e0) [0x2b92d69ff7e0]
/home1/02582/highcock/work/ToolsNew/lib/libncurses.so.5(is_wintouched+0x13) [0x2b92defccca3]
/home1/02582/highcock/work/ToolsNew/lib/libncurses.so.5(wgetnstr+0xa9) [0x2b92defc5d59] ncurses_wrap.c:2324
/home1/02582/highcock/work/ToolsNew/lib/libncurses.so.5(_nc_wgetch+0x96c) [0x2b92defc5a9c] ncurses_wrap.c:2288
/home1/02582/highcock/work/ToolsNew/lib/libncurses.so.5(wgetch+0x27) [0x2b92defc5bb7] ncurses_wrap.c:2304
/home1/02582/highcock/work/ToolsNew/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ncurses-ruby-1.2.4/ncurses.so(+0x10b1b) [0x2b9
2de779b1b] ncurses_wrap.c:817
/home1/02582/highcock/work/ToolsNew/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ncurses-ruby-1.2.4/ncurses.so(+0x10b63) [0x2b9
2de779b63] ncurses_wrap.c:839
ruby(+0x1580dd) [0x2b92d645f0dd]
ruby(+0x158cbd) [0x2b92d645fcbd]
ruby(+0x158dfd) [0x2b92d645fdfd]
ruby(+0x159976) [0x2b92d6460976]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions