[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev:1016

From: "Hiroyuki Iwatsuki" <don na.rim.or.jp>
Date: Fri, 26 May 2006 11:00:38 +0900
Subject: [yarv-dev:1016] open>YARV invoking with not existence file dumps core

岩月と申します。

次のように存在しないファイルとともにYARVを実行すると
coreを吐きます。

% ./ruby -v a
ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [i386-freebsd6.1]
YARVCore 0.4.0 Rev: 503 (2006-05-25) [opts: ]
-- stack frame ------------
-- control frame ----------
c:0001 p:---- s:0000 b:-001 l:000000 d:000000 ------
---------------------------
[BUG] Segmentation fault
ruby 2.0.0 (2006-04-08) [i386-freebsd6.1]

[1]    2769 abort (core dumped)  ./ruby -v a

% gdb --args ./ruby -v a
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run
Starting program: /mnt/.private/ruby/src/ruby-yarv/_build_/ruby -v a
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100083]
ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [i386-freebsd6.1]
YARVCore 0.4.0 Rev: 503 (2006-05-25) [opts: ]
[New Thread 0x818a000 (LWP 100142)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x818a000 (LWP 100142)]
frame_func_id (cfp=0x82e5000) at ../eval.c:1825
warning: Source file is more recent than executable.

1825        yarv_iseq_t *iseq = cfp->iseq;
(gdb) bt
#0  frame_func_id (cfp=0x82e5000) at ../eval.c:1825
#1  0x080a43a9 in error_pos () at eval_error.h:45
#2  0x080a4631 in error_print () at eval_error.h:108
#3  0x080a4902 in error_handle (ex=6) at eval_error.h:250
#4  0x080a498a in ruby_options (argc=3, argv=0xbfbfe6f0) at ../eval.c:149
#5  0x08061faf in main (argc=3, argv=0xbfbfe6f0, envp=0xbfbfe700) at
../main.c:45

-- 
IWATSUKI Hiroyuki <URL:mailto:don na.rim.or.jp>

-- 
ML: yarv-dev quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

->    1016 2006-05-26 11:00 [don na.rim.or.jp    ] open>YARV invoking with not existence file dumps core
      1017 2006-06-05 17:13 ┗[ko1 atdot.net       ]                                       
      1019 2006-06-05 19:33  ┗[don na.rim.or.jp    ]                                     
      1020 2006-06-07 23:57   ┗[ko1 atdot.net       ]