Katsutoshi Itoh
cut-s****@maste*****
2005年 8月 6日 (土) 21:09:05 JST
早速ありがとうございます。 >-O2を外したのはなぜでしょう? make失敗しましたか。 > そうです。確かすでに類似の報告があったと思いますが、out of memory...だか そういうやつで、しばらく待たされた後にmakeに失敗したんです。 私の環境ではGCC3.3.3なんで関係ないかとも思ったんですが、これはずしたら 同じエラーが出なくなったんで、これでやってます。 In message <20050****@lava*****>,Shiro Kawai owrites: >ふむぅ。とりあえずインタラクティブのテストでのエラーは別の原因です。 > >% gosh -I./lib -I./src > >のように、サーチパスにlibとsrcの両方を含めて試せば、core dumpが >再現できるんではないかと思います。それで何かもっと情報が得られないでしょうか。 > cut-sea @ nkisi> pwd /usr/home/cut-sea/compile/Gauche-gl-0.4 cut-sea @ nkisi> gosh -I./lib -I./src gosh> (add-load-path "./lib") ("./lib" "./src" "./lib" "./" "/home/cut-sea/kahua/lib/kahua" "/home/cut-sea/lib/Gauche" "/usr/local/share/gauche/site/lib" "/usr/local/share/gauche/0.8.5/lib") gosh> (use gl) Abort (core dumped) あー、再現しますね。 でもってgdbがイマイチ使いこなせてないのですが、 cut-sea @ nkisi> gdb gosh -c gosh.core GNU gdb 5.3nb1 Copyright 2002 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--netbsdelf"... Core was generated by `gosh'. Program terminated with signal 6, Aborted. Reading symbols from /usr/libexec/ld.elf_so...done. Loaded symbols for /usr/libexec/ld.elf_so Reading symbols from /usr/local/lib/libgauche.so.0...done. Loaded symbols for /usr/local/lib/libgauche.so.0 Reading symbols from /usr/lib/libcrypt.so.0...done. Loaded symbols for /usr/lib/libcrypt.so.0 Reading symbols from /usr/lib/libutil.so.7...done. Loaded symbols for /usr/lib/libutil.so.7 Reading symbols from /usr/lib/libm387.so.0...done. Loaded symbols for /usr/lib/libm387.so.0 Reading symbols from /usr/lib/libm.so.0...done. Loaded symbols for /usr/lib/libm.so.0 Reading symbols from /usr/lib/libc.so.12...done. Loaded symbols for /usr/lib/libc.so.12 Reading symbols from /usr/local/lib/gauche/0.8.5/i386-unknown-netbsdelf2.0.2/libgauche-uvector.so...done. Loaded symbols for /usr/local/lib/gauche/0.8.5/i386-unknown-netbsdelf2.0.2/libgauche-uvector.so Reading symbols from ./src/libgauche-math3d.so...done. Loaded symbols for ./src/libgauche-math3d.so Reading symbols from ./src/libgauche-gl.so...done. Loaded symbols for ./src/libgauche-gl.so Reading symbols from /usr/pkg/lib/libGLU.so.1...done. Loaded symbols for /usr/pkg/lib/libGLU.so.1 Reading symbols from /usr/pkg/lib/libGL.so.1...done. Loaded symbols for /usr/pkg/lib/libGL.so.1 Reading symbols from /usr/pkg/xorg/lib/libSM.so.6...done. Loaded symbols for /usr/pkg/xorg/lib/libSM.so.6 ---Type <return> to continue, or q <return> to quit--- Reading symbols from /usr/pkg/xorg/lib/libICE.so.6...done. Loaded symbols for /usr/pkg/xorg/lib/libICE.so.6 Reading symbols from /usr/lib/libstdc++.so.5...done. Loaded symbols for /usr/lib/libstdc++.so.5 Reading symbols from /usr/lib/libgcc_s.so.1...done. Loaded symbols for /usr/lib/libgcc_s.so.1 Reading symbols from /usr/pkg/xorg/lib/libX11.so.6...done. Loaded symbols for /usr/pkg/xorg/lib/libX11.so.6 Reading symbols from /usr/pkg/xorg/lib/libXext.so.6...done. Loaded symbols for /usr/pkg/xorg/lib/libXext.so.6 Reading symbols from /usr/lib/libpthread.so.0...done. Loaded symbols for /usr/lib/libpthread.so.0 #0 0x481a3feb in kill () from /usr/lib/libc.so.12 (gdb) where #0 0x481a3feb in kill () from /usr/lib/libc.so.12 #1 0x481a6073 in __libc_mutex_init_stub () from /usr/lib/libc.so.12 #2 0x4820bdd9 in snprintf () from /usr/lib/libc.so.12 (gdb) list 241 #if defined(__CYGWIN__) || defined(__MINGW32__) 242 /* Cygwin needs explicit initialization for GC module. 243 This code is taken from gc.h and gcconfig.h (I don't want to 244 include private/gcconfig.h) 245 May not work except cygwin 1.3.x */ 246 extern int _data_start__; 247 extern int _bss_end__; 248 GC_add_roots((void*)&_data_start__, (void*)&_bss_end__); 249 #endif 250 Scm_Init(GAUCHE_SIGNATURE); うーん。なんか変なところですねぇ。 コメントにかぶっているわけでもないでしょうがlibc? 伊東