#814: SegFault running CGI script from command line -------------------------------+-------------------------------------------- Reporter: pwil...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- With latest MacRuby nightly (July 27), the following code causes a seg fault if run directly from the command line:
{{{ require 'cgi' c = CGI.new }}} It works OK when run through the web server. When ruby 1.9 runs this from the command line it asks for data from stdin to serve as query parameters. Under MacRuby I get this crash: {{{ (offline mode: enter name=value pairs on standard input) Segmentation fault }}} and this stack trace: {{{ Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x0000000000000000 0x000000010005818a in rb_f_open () (gdb) bt #0 0x000000010005818a in rb_f_open () #1 0x000000010005b7cd in rb_io_gets () #2 0x0000000100140a39 in rb_vm_dispatch () #3 0x0000000102f004d0 in ?? () #4 0x0000000102f0c32c in ?? () #5 0x0000000100140996 in rb_vm_dispatch () #6 0x0000000102f004d0 in ?? () #7 0x0000000102f0d319 in ?? () #8 0x0000000100140996 in rb_vm_dispatch () #9 0x0000000102f004d0 in ?? () #10 0x0000000102f0e43f in ?? () #11 0x000000010014097b in rb_vm_dispatch () #12 0x000000010006e342 in rb_class_new_instance_imp () #13 0x0000000100140a39 in rb_vm_dispatch () #14 0x0000000102f004d0 in ?? () #15 0x0000000102f000bd in ?? () #16 0x000000010014d708 in rb_vm_run () #17 0x000000010003fef0 in ruby_run_node () #18 0x0000000100000d28 in main () }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/814> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel