Displaying 13 results from an estimated 13 matches for "ruby_stop".
2006 May 02
1
Converting rb_protect + ruby_stop to pure Ruby
Hi,
Within process.c, in the fork method, there''s this bit of code:
if(rb_block_given_p()){
int status;
rb_protect(rb_yield, Qundef, &status);
ruby_stop(status);
}
I translated that as this:
if block_given?
status = 0
begin
yield
rescue Exception
status = -1 # Any non-zero result is failure
end
exit(status)
end
Is there a way to get the actual status? The $? global isn''t set at this
point so that does...
2006 Apr 27
1
Ferret crashing Ruby
...3f00bc in frt_ind_free (p=0x829ebc0) at r_search.c:1564
#4 0xb7f04dca in rb_gc_call_finalizer_at_exit ()
from /usr/lib/libruby1.8.so.1.8
#5 0xb7ee627d in is_ruby_native_thread ()
from /usr/lib/libruby1.8.so.1.8
#6 0xb7efe2b5 in ruby_cleanup () from /usr/lib/libruby1.8.so.1.8
#7 0xb7efe3cc in ruby_stop () from /usr/lib/libruby1.8.so.1.8
#8 0xb7efeabf in ruby_run () from /usr/lib/libruby1.8.so.1.8
#9 0x080486b1 in main ()
This was while doing several identical searches ordered by a field.
The same code without the extensions throws this exception:
RuntimeError: no terms in field start_date to...
2008 May 25
9
Segmentation Fault.
Hi there,
I am relative new to the wxRuby so please bear with me.
I use Ubuntu Hardy Heron 8.04 release. I have installed the wxwidgets C
libraries
and then did a
gem install wxruby
The ruby extensions were downloaded and installed correctly. If i do
$gem list --local
..
wxruby (1.9.7)
..
Then I tried to run a simple example "Hello World" as described in the
tutorial
2007 Apr 07
0
[ wxruby-Bugs-9930 ] StaticBoxSizer causes segfault on exit
...0x00836264 in ?? ()
(gdb) whe
#0 0x00836264 in ?? ()
#1 0x034a9850 in wxStaticBoxSizer::~wxStaticBoxSizer() ()
#2 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858
#3 0x000041d4 in ruby_finalize_1 () at eval.c:1418
#4 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453
#5 0x000044b8 in ruby_stop (ex=5200144) at eval.c:1484
#6 0x00004544 in ruby_run () at eval.c:1505
#7 0x0000209c in main (argc=3, argv=0xbffff958, envp=0x2) at main.c:46
#8 0x00001b5c in _start (argc=3, argv=0xbffff958, envp=0xbffff968) at /SourceCache/Csu/Csu-47/crt.c:267
#9 0x8fe1a31c in __dyld__dyld_start ()
(gdb)
Th...
2007 Apr 29
0
[ wxruby-Bugs-10438 ] ClientDC segfault on exit
...034ce24c in wxClientDC::~wxClientDC() ()
#7 0x030c63ec in SwigDirector_wxClientDC::~SwigDirector_wxClientDC() ()
#8 0x0001f018 in rb_gc_call_finalizer_at_exit () at gc.c:1928
#9 0x000048f8 in ruby_finalize_1 () at eval.c:1548
#10 0x00004a50 in ruby_cleanup (ex=0) at eval.c:1582
#11 0x00004c10 in ruby_stop (ex=-235798546) at eval.c:1619
#12 0x00004c9c in ruby_run () at eval.c:1640
#13 0x000026c0 in main (argc=3, argv=0xbffff95c, envp=0x2) at main.c:48
#14 0x00002178 in _start (argc=3, argv=0xbffff95c, envp=0xbffff96c) at /SourceCache/Csu/Csu-47/crt.c:267
#15 0x8fe1a31c in __dyld__dyld_start ()
---...
2007 Jan 25
0
[ wxruby-Bugs-8130 ] Crash-on-exit when dialogs have been used
...78 in wxDialog::~wxDialog() ()
#4 0x030fccfc in SwigDirector_wxMessageDialog::~SwigDirector_wxMessageDialog() ()
#5 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858
#6 0x000041d4 in ruby_finalize_1 () at eval.c:1418
#7 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453
#8 0x000044b8 in ruby_stop (ex=71295648) at eval.c:1484
#9 0x00004544 in ruby_run () at eval.c:1505
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=8130&group_id=35
2007 Jan 26
0
[ wxruby-Bugs-8179 ] Segfaults when Kernel#exit is called
...78 in wxDialog::~wxDialog() ()
#4 0x030fccfc in SwigDirector_wxMessageDialog::~SwigDirector_wxMessageDialog() ()
#5 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858
#6 0x000041d4 in ruby_finalize_1 () at eval.c:1418
#7 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453
#8 0x000044b8 in ruby_stop (ex=71295648) at eval.c:1484
#9 0x00004544 in ruby_run () at eval.c:1505
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=8179&group_id=35
2006 Dec 30
0
[ wxruby-Bugs-7503 ] Segfaults on exception, related to sizer
...54 in wxSizer::~wxSizer() ()
#3 0x031aeec8 in SwigDirector_wxStaticBoxSizer::~SwigDirector_wxStaticBoxSizer() ()
#4 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858
#5 0x000041d4 in ruby_finalize_1 () at eval.c:1418
#6 0x00004340 in ruby_cleanup (ex=1) at eval.c:1453
#7 0x000044b8 in ruby_stop (ex=6831776) at eval.c:1484
#8 0x00004544 in ruby_run () at eval.c:1505
#9 0x0000209c in main (argc=4, argv=0xbffff93c, envp=0x2) at main.c:46
#10 0x00001b5c in _start (argc=4, argv=0xbffff93c, envp=0xbffff950) at /SourceCache/Csu/Csu-47/crt.c:267
#11 0x8fe1a31c in __dyld__dyld_start ()
----...
2006 Nov 21
0
[ wxruby-Bugs-6808 ] Double-free segfault on closing app when BitmapButton has been used
...)
#4 0x031d87a0 in wxBitmap::~wxBitmap() ()
#5 0x02e17ad0 in SwigDirector_wxBitmap::~SwigDirector_wxBitmap() ()
#6 0x0001d6f0 in rb_gc_call_finalizer_at_exit () at gc.c:1858
#7 0x000041d4 in ruby_finalize_1 () at eval.c:1418
#8 0x00004340 in ruby_cleanup (ex=0) at eval.c:1453
#9 0x000044b8 in ruby_stop (ex=105048432) at eval.c:1484
#10 0x00004544 in ruby_run () at eval.c:1505
#11 0x0000209c in main (argc=3, argv=0xbffff95c, envp=0xa02b08c8) at main.c:46
#12 0x00001b5c in _start (argc=3, argv=0xbffff95c, envp=0xbffff96c) at /SourceCache/Csu/Csu-47/crt.c:267
#13 0x8fe1a31c in __dyld__dyld_start ()...
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
.../gems/gems/ferret-0.11.4/lib/ferret_ext.so[0x247d75]
/usr/lib/ruby/gems/gems/ferret-0.11.4/lib/ferret_ext.so[0x219745]
/usr/lib/libruby.so.1.8(rb_gc_call_finalizer_at_exit+0xa7)[0xc3e237]
/usr/lib/libruby.so.1.8[0xc239e7]
/usr/lib/libruby.so.1.8(ruby_cleanup+0x100)[0xc2c280]
/usr/lib/libruby.so.1.8(ruby_stop+0x1d)[0xc2c3ad]
/usr/lib/libruby.so.1.8[0xc372c1]
irb[0x804868d]
/lib/libc.so.6(__libc_start_main+0xe0)[0x5e5390]
irb[0x8048581]
Here is the code of my class. Any sign of what is wrong with the memory handling?
class IndexSearcher
attr_accessor :searcher, :sub_searchers, :object_type
# @para...
2004 May 01
4
wxruby-swig 0.0.13 is up
This fixes the wxRED Mac link error. Thanks to Nick for pointing out
that I hadn''t removed some wxRED code related to an earlier experiment.
Hopefully this one will build on Mac, end-to-end.
I also found and fixed a problem that was causing the crash on exit:
wxWindows automatically deletes the C++ app object as soon as the last
frame is closed. Later, when ruby garbage collected the
2006 Aug 01
8
Problem importing lots of records
I run a script that imports a few thousand records into the database.
The script runs once for each of several XML files. What it does is
parse the XML and for each element of a certain type creates a record in
a rails database that gets indexed with acts_as_ferret. This worked fine
before but today after a few files (70000 records) this started to
happen for any file I tried:
2008 Mar 31
16
Mongrels stop responding
I have a Rails 1.2.3 app (due for an update, I know) running on a
Mongrel 1.1.4 behind Apache 2.2.3 mod_proxy on Debian 4.0. It keeps
hanging up for no reason I can tell. I have tried everything that anyone
has ever hinted at being a solution for this problem:
- The application doesn''t use MySQL, so setting the connection timeout
won''t help.
- Using AR not PStore for sessions.
-