From: Masao M. <mu...@hi...> - 2004-11-17 16:29:36
|
Hi emmanuel, I tested your scripts. And I could reproduce them on ruby-gtk-0.10.1. But, it seems to work on ruby-gtk-0.11.0 ! On Sun, 14 Nov 2004 12:35:43 +0100 Emmanuel Touzery <emm...@wa...> wrote: > Hello, > > Recently I reported a crash when running a ruby-gtk2 program I wrote on the > windows ruby one-click installer, but said it was working fine with a > self-compiled ruby-mingw under windows and under linux. > Now I went further with that program, it's more complicated, and I have now a > crash that happens under ruby-mingw but not under linux (so, under > self-compiled ruby using mingw it already crashes, no need anymore to use the > ms compiler, and linux works fine). > > Under both platforms i used ruby 1.8.1 (I also tried 1.8.2pre2 under windows) > and ruby-gtk 0.10.1, however under linux i used only gtk 2.2.4 while windows > had 2.4.13 but I don't think that's what's causing the problem. > > I have a program that reproduces 100% of the time the problem. > > http://www.chez.com/powerpeanuts/study-crash-win32.tar.gz [27kb] > > To reproduce it, unzip the program, run it with > ruby gstudy_app.rb questions.txt > ------------------ > reproduction #1 > click on "add" in the toolbar. in the new window click "OK" > select the row you just added in the main window. click "remove" on the > toolbar. confirm you want to remove => crash on win32. > ----------------- > reproduction #2 > double-click on the questionnary "3" (line in the table with the value 3). go > to the tab 46 (you can right-click on the tab list and pick in the menu). > change the part of the text where it's written "NOT FINISHED" with anything > (eg jsheje). click OK. the window will close properly under linux, it will > crash SIGSEGV under windows. > ------------------- > > Any help will be appreciated. for now I gave up running this program under > windows and plan to force my user to run linux for this once (it's not > handy...). > > Thanks for all, > > emmanuel > > PS: I ran it under gdb, but I got a really weird stack I can't make sense of. > > > C:\study-crash-win32>gdb ruby > GNU gdb 5.2.1 > 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 "i686-pc-mingw32"... > (gdb) start gstudy_app.rb questions.txt > Undefined command: "start". Try "help". > (gdb) run gstudy_app.rb questions.txt > Starting program: c:\MinGW\bin/ruby.exe gstudy_app.rb questions.txt > > Program received signal SIGSEGV, Segmentation fault. > 0x00000001 in ?? () > (gdb) bt > #0 0x00000001 in ?? () > #1 0x65896960 in _size_of_stack_reserve__ () > #2 0x65895e2c in _size_of_stack_reserve__ () > #3 0x6589b4f4 in _size_of_stack_reserve__ () > #4 0x6589ba67 in _size_of_stack_reserve__ () > #5 0x65896960 in _size_of_stack_reserve__ () > #6 0x6589b4f4 in _size_of_stack_reserve__ () > #7 0x6589ba67 in _size_of_stack_reserve__ () > #8 0x65896960 in _size_of_stack_reserve__ () > #9 0x658992f2 in _size_of_stack_reserve__ () > #10 0x658a03b6 in _size_of_stack_reserve__ () > #11 0x658a0456 in _size_of_stack_reserve__ () > #12 0x658a6eef in _size_of_stack_reserve__ () > #13 0x6589b204 in _size_of_stack_reserve__ () > #14 0x6589ba67 in _size_of_stack_reserve__ () > #15 0x6589bb55 in _size_of_stack_reserve__ () > #16 0x6a1851ce in _size_of_stack_reserve__ () > #17 0x6589a561 in _size_of_stack_reserve__ () > #18 0x6a185254 in _size_of_stack_reserve__ () > #19 0x02c52e88 in ?? () > #20 0x02c61d8d in ?? () > #21 0x02c610bc in ?? () > #22 0x02c6131a in ?? () > #23 0x02ef6f60 in ?? () > #24 0x02f0128e in ?? () > #25 0x02e468aa in ?? () > #26 0x02c530d7 in ?? () > #27 0x02c52e88 in ?? () > #28 0x02c618e3 in ?? () > #29 0x02c60ed8 in ?? () > #30 0x02c6131a in ?? () > #31 0x02f113d7 in ?? () > #32 0x02e44f1b in ?? () > #33 0x02e451d9 in ?? () > #34 0x02d24e5c in ?? () > #35 0x10012429 in _size_of_stack_reserve__ () > #36 0x100130b9 in _size_of_stack_reserve__ () > #37 0x1001332b in _size_of_stack_reserve__ () > #38 0x10013790 in _size_of_stack_reserve__ () > #39 0x02e44756 in ?? () > #40 0x625785be in _size_of_stack_reserve__ () > #41 0x658a6eef in _size_of_stack_reserve__ () > #42 0x6589b204 in _size_of_stack_reserve__ () > #43 0x6589ba67 in _size_of_stack_reserve__ () > #44 0x65896960 in _size_of_stack_reserve__ () > #45 0x65896119 in _size_of_stack_reserve__ () > #46 0x658927ec in _size_of_stack_reserve__ () > #47 0x65892845 in _size_of_stack_reserve__ () > #48 0x0040130c in main () at main.c:50 > (gdb) > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > -- .:% Masao Mutoh<mu...@hi...> |