Ticket #64 (closed defect: fixed)
Requiring an empty file
| Reported by: | z@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | minor | Milestone: | MacRuby 0.2 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
(Revision 221) This probably isn't a common use case. However, it would be nice not to barf like that.
annyong:Desktop wzph$ cat empty.rb annyong:Desktop wzph$ cat empty_require.rb require File.dirname( __FILE__ ) << '/empty' puts 'hi' annyong:Desktop wzph$ ruby empty_require.rb hi annyong:Desktop wzph$ macruby empty_require.rb empty_require.rb:1: [BUG] Bus Error MacRuby version 0.2 (ruby 1.9.0 2008-05-17) [universal-darwin9.0] -- control frame ---------- c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :require c:0003 p:0025 s:0006 b:0006 l:000005 d:000005 TOP empty_require.rb:1 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH :inherited c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP --------------------------- DBG> : "empty_require.rb:1:in `<main>'" -- backtrace of native function call (Use addr2line) -- 0x2d6206 0x1fefcc 0x1ff00b 0x29553b 0x94b0b5eb 0xffffffff 0x293e18 0x2942f8 0x20c862 0x20cd41 0x2d44c0 0x2cd889 0x2d3a71 0x2d3c41 0x202d29 0x208990 0x1fdf 0x1f46 0x2 ------------------------------------------------------- Abort trap
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


