# Problem! :-) I need to turn off the Cairo support for testin

**URL:** <https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503>\
**Category:** Ruby-Gnome 2\
**Created:** [April 11, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503 "2006-04-11T16:37:03Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 11, 2006, 4:37pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/1 "2006-04-11T16:37:03Z")

</div>

Hi,

I’m getting some crashes with the latest Ruby-GNOME2 with the Cairo  
support  
on Ubuntu Dapper  
Ruby 1.8.4 and 1.9 ( I tested both).

I want to try to track it down, and so far I know it happens from  
launching  
new windows  
from menu items. But first I want a work around, thus I want to try to  
turn  
off Cairo and  
see what happens.

When I use Ruby-GTK2 from the last release I don’t get the problem.

I used Ruby Cairo from the CVS, BTW.

Thanks.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 11, 2006, 6:42pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/2 "2006-04-11T18:42:30Z")

</div>

Hi,

On Tue, 11 Apr 2006 13:16:55 -0300  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I want to try to track it down, and so far I know it happens from  
> > I’m not sure were the problem is. I make use of Gtk.main\_quit to exit modal  
> > dialogues; has it changed?

Hmm. It hasn’t changed… AFAIK.  
I didn’t find your problem with your gdb log.  
Could you write small sample to reproduce your problem?

–  
.:% Masao M.[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 12, 2006, 4:38am UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/3 "2006-04-12T04:38:55Z")

</div>

Hi,

> I’m not sure were the problem is. I make use of Gtk.main\_quit to exit  
> modal
> 
> > dialogues; has it changed?
> 
> Hmm. It hasn’t changed… AFAIK.  
> I didn’t find your problem with your gdb log.  
> Could you write small sample to reproduce your problem?

I’m trying to create an example, but it’s hard, because I use plenty of  
abstractions.  
But it’s happening all the time for me.

So far, I have discovered that in at least one case it does not happen  
when  
the new  
windows are launched from buttons, but it happens when the windows are  
launched from the main menu.

I’ll keep trying to create an example.

Thanks.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 12, 2006, 1:08pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/4 "2006-04-12T13:08:16Z")

</div>

Hi,

On 4/11/06, Joao P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> I’ll keep trying to create an example.

I have tried to create the example, but I couldn’t. The good news for  
all of  
you is that  
it’s probably a conflict in my libraries with the CVS version of  
Ruby-GNOME2, because  
if I change the required library I get (or not) the result:

1. I don’t get the crash:  
#require ‘gr/gr’  
require ‘gr/gtk\_rules’

2. I get the crash:  
require ‘gr/gr’  
#require ‘gr/gtk\_rules’

Now I need to rewrite the libraries to make them work without the crash.

Well, I hope you enjoyed the good news. 🙂

Thanks.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 11, 2006, 6:18pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/5 "2006-04-11T18:18:02Z")

</div>

Hi,

On 4/11/06, Joao P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> turn off Cairo and  
> see what happens.
> 
> When I use Ruby-GTK2 from the last release I don’t get the problem.
> 
> I used Ruby Cairo from the CVS, BTW.

I’m not sure were the problem is. I make use of Gtk.main\_quit to exit  
modal  
dialogues; has it changed?

Here is a backtrace:

dewd@marieta:~/workspace/pilar/db\_admin/lib/db\_admin$ gdb ruby  
GNU gdb 6.4-debian  
Copyright 2005 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 “i486-linux-gnu”…Using host libthread\_db  
library “/lib/tls/i686/cmov/libthread\_db.so.1”.

(gdb) run db\_admin.rb  
Starting program: /usr/bin/ruby db\_admin.rb  
[Thread debugging using libthread\_db enabled]  
[New Thread -1210657088 (LWP 16405)]  
db\_admin.rb:162: warning: multiple values for a block parameter (3 for  
1)  
from /home/dewd/workspace/pilar/gtk\_rules/lib/gr/fast.rb:115  
“showing…”  
“showing…”  
“hide”  
“destroying”

Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread -1210657088 (LWP 16405)]  
st\_lookup (table=0x0, key=3070239124, value=0xbfd1f9dc) at st.c:245  
245 st.c: Arquivo ou diretÃ³rio nÃ£o encontrado.  
in st.c  
(gdb) bt  
#0 st\_lookup (table=0x0, key=3070239124, value=0xbfd1f9dc) at st.c:245  
#1 0x0806ee9f in rb\_hash\_aref (hash=3081693536, key=3070239124) at  
hash.c  
:419  
#2 0xb7c1943c in rclosure\_marshal\_body (arg=0x0) at rbgobj\_closure.c:82  
#3 0x08052bd1 in rb\_protect (proc=0xb7c193d5 \<rclosure\_marshal\_body\>,  
data=3218209752, state=0xbfd1fbf0) at eval.c:5385  
#4 0xb7c19548 in rclosure\_marshal (closure=0x83676a8, return\_value=0x0,  
n\_param\_values=0, param\_values=0x0,  
invocation\_hint=0x0, marshal\_data=0x0) at rbgobj\_closure.c:123  
#5 0xb7bd879f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#6 0xb7be72ea in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#7 0xb7be8b19 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#8 0xb7be8e89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#9 0xb759e82d in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#10 0xb74cb27f in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#11 0xb74cb551 in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#12 0xb74c1d04 in gtk\_menu\_reorder\_child () from /usr/lib/libgtk-  
x11-2.0.so.0  
#13 0xb74bc610 in \_gtk\_marshal\_BOOLEAN\_\_BOXED () from /usr/lib/libgtk-  
x11-2.0.so.0  
#14 0xb7bd816f in g\_cclosure\_new\_swap () from  
/usr/lib/libgobject-2.0.so.0  
#15 0xb7bd879f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#16 0xb7be79ce in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#17 0xb7be8886 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#18 0xb7be8e89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#19 0xb759ea0f in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#20 0xb74bad8d in gtk\_propagate\_event () from  
/usr/lib/libgtk-x11-2.0.so.0  
#21 0xb74bb19b in gtk\_main\_do\_event () from /usr/lib/libgtk-x11-2.0.so.0  
#22 0xb735ee1c in \_gdk\_events\_queue () from /usr/lib/libgdk-x11-2.0.so.0  
#23 0xb7b6e876 in g\_main\_context\_dispatch () from  
/usr/lib/libglib-2.0.so.0  
#24 0xb7b71936 in g\_main\_context\_check () from /usr/lib/libglib-2.0.so.0  
#25 0xb7b71c58 in g\_main\_loop\_run () from /usr/lib/libglib-2.0.so.0  
#26 0xb74ba495 in gtk\_main () from /usr/lib/libgtk-x11-2.0.so.0  
#27 0xb76e2f14 in gtk\_m\_main (self=3081679436) at rbgtkmain.c:159  
#28 0x0805ce4c in rb\_call0 (klass=,  
recv=3081679436,  
id=5097, oid=0, argc=0, argv=0x0,  
body=0xb7a52218, flags=0) at eval.c:5742  
#29 0x0805d829 in rb\_call (klass=3081676816, recv=3081679436, mid=5097,  
argc=0, argv=0x0, scope=0) at eval.c:5970  
#30 0x0805b62b in rb\_eval (self=3083361316, n=) at  
eval.c:3430  
#31 0x0805c011 in rb\_eval (self=3083361316, n=) at  
eval.c:3245  
—Type to continue, or q to quit—

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 12, 2006, 4:01pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/6 "2006-04-12T16:01:16Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Re: Problem! 🙂 I need to turn off the Cairo  
support for testing a bug” on Tue, 11 Apr 2006 13:16:55 -0300,  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> When I use Ruby-GTK2 from the last release I don't get the problem.
> 
> ```

> dewd@marieta:~/workspace/pilar/db\_admin/lib/db\_admin$ gdb ruby  
> …  
> (gdb) run db\_admin.rb

Could you show me your script? (db\_admin.rb or other script  
reproduces the problem)

…

> Program received signal SIGSEGV, Segmentation fault.  
> …  
> (gdb) bt  
> …  
> #2 0xb7c1943c in rclosure\_marshal\_body (arg=0x0) at rbgobj\_closure.c:82  
> #3 0x08052bd1 in rb\_protect (proc=0xb7c193d5 \<rclosure\_marshal\_body\>, data=  
> 3218209752, state=0xbfd1fbf0) at eval.c:5385  
> #4 0xb7c19548 in rclosure\_marshal (closure=0x83676a8, return\_value=0x0,  
> n\_param\_values=0, param\_values=0x0,  
> invocation\_hint=0x0, marshal\_data=0x0) at rbgobj\_closure.c:123  
> #5 0xb7bd879f in g\_closure\_invoke () from /usr/lib/libgobject- 2.0.so.0

This problem may be caused my change for GRClosure in HEAD.

## Thanks,

kou

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 13, 2006, 12:01pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/7 "2006-04-13T12:01:54Z")

</div>

Hi,

> > This problem may be caused my change for GRClosure in HEAD.
> 
> Please, help me. 🙂 It might be the cause of my problems indeed. I’m  
> refactoring my  
> libraries but I still am having lots of problems. I will email you  
> privately libraries, examples,  
> and instructions. I just need to refactor some more files.

I can confirm that the problem is related to the GRClosure, because I  
reverted the  
files to the revisions prior to the GRClosure changes and now I have  
Ruby-GNOME2  
from the CVS working like a charm for my applications.

I know your changes to GRClosure were to try to fix memory leaks.

Also, I sent to you an email containing my libraries and examples.

Now I’m more calm. 🙂 It was two days of uncertainty to me.

Luckily we found these problems before the next release. 🙂 I’m anxious  
to  
try the  
Cairo extensions. Also I want to test it on Windows.

Thanks.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 12, 2006, 5:15pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/8 "2006-04-12T17:15:11Z")

</div>

Hi,

On 4/12/06, Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > dewd@marieta:~/workspace/pilar/db\_admin/lib/db\_admin$ gdb ruby  
> > …

Please, help me. 🙂 It might be the cause of my problems indeed. I’m  
refactoring my  
libraries but I still am having lots of problems. I will email you  
privately  
libraries, examples,  
and instructions. I just need to refactor some more files.

Thanks.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 14, 2006, 3:23pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/9 "2006-04-14T15:23:58Z")

</div>

Hi,

Thanks for your help. 🙂

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Re: Problem! 🙂 I need to turn off the  
Cairo support for testing a bug” on Thu, 13 Apr 2006 06:58:21 -0300,  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I can confirm that the problem is related to the GRClosure, because I reverted  
> the  
> files to the revisions prior to the GRClosure changes and now I have  
> Ruby-GNOME2  
> from the CVS working like a charm for my applications.

I fixed the problem. But this fix isn’t complete. Some  
problems are sure to remain.

Could you try HEAD again? I can fix the problem if you find  
a script which produces the problem. 🙂  
If you use GC.start, you can find the problem easily.

## Thanks,

kou

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 14, 2006, 3:45pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/10 "2006-04-14T15:45:24Z")

</div>

Hi,

> Could you try HEAD again? I can fix the problem if you find  
> a script which produces the problem. 🙂  
> If you use GC.start, you can find the problem easily.

That’s cool, Kouhei. 🙂

If you want to send your Ruby-GNOME2 with the fixes directly  
to me I will test it as soon as possible. If not, I will wait for the  
fix  
to show up in the anonymous CVS and I will test it, surely.

Thanks!!

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 14, 2006, 3:30pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/11 "2006-04-14T15:30:05Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Re: Problem! 🙂 I need to turn off the  
Cairo support for testing a bug” on Fri, 14 Apr 2006 22:21:14 +0900  
(JST),  
Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I can confirm that the problem is related to the GRClosure, because I reverted  
> > the  
> > files to the revisions prior to the GRClosure changes and now I have  
> > Ruby-GNOME2  
> > from the CVS working like a charm for my applications.
> 
> I fixed the problem. But this fix isn’t complete. Some  
> problems are sure to remain.
> 
> Could you try HEAD again?

I’m sorry. I haven’t committed this fix. I will commit this  
fix after Masao confirmed this fix.

## Thanks,

kou

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 14, 2006, 3:54pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/12 "2006-04-14T15:54:42Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Re: Problem! 🙂 I need to turn off the  
Cairo support for testing a bug” on Fri, 14 Apr 2006 10:35:21 -0300,  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you want to send your Ruby-GNOME2 with the fixes directly  
> to me I will test it as soon as possible. If not, I will wait for the fix  
> to show up in the anonymous CVS and I will test it, surely.

Try the attached patch. 🙂

Thanks,

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 15, 2006, 4:04am UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/13 "2006-04-15T04:04:37Z")

</div>

Hi,

I committed the fix into HEAD.

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] Re: Problem! 🙂 I need to turn off the  
Cairo support for testing a bug” on Fri, 14 Apr 2006 11:19:35 -0300,  
“Joao P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I see improvements, but crashes are too easy still. Ruby Editor and Database  
> Administrator  
> have crashed already:

> If you need help just ask.

Could you show me your instructions?  
I couldn’t crash both Ruby Editor and Database  
Administrator.

## Thanks,

kou

* * *

This [SF.Net](http://SF.Net) email is sponsored by xPML, a groundbreaking scripting  
language  
that extends applications into web and mobile media. Attend the live  
webcast  
and join the prime developer group breaking into this new coding  
territory!  
[http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642](http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642)

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 14, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/14 "2006-04-14T16:28:35Z")

</div>

Hi,

On 4/14/06, Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> fix
> 
> > to show up in the anonymous CVS and I will test it, surely.
> 
> Try the attached patch. 🙂

I see improvements, but crashes are too easy still. Ruby Editor and  
Database  
Administrator  
have crashed already:

dewd@marieta:~/workspace/pilar/db\_admin/lib/db\_admin$ gdb ruby  
GNU gdb 6.4-debian  
Copyright 2005 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 “i486-linux-gnu”…Using host libthread\_db  
library “/lib/tls/i686/cmov/libthread\_db.so.1”.

(gdb) run db\_admin.rb  
Starting program: /usr/bin/ruby db\_admin.rb  
[Thread debugging using libthread\_db enabled]  
[New Thread -1210542400 (LWP 9543)]  
“def show\_modal parent”  
“def msg parent\_window, s, format = false, &block”  
“22222 def msg parent\_window, s, format = false, &block”  
“def show\_modal parent”  
“hide”  
“def show\_modal parent”  
“def show\_modal parent”  
“hide”  
“destroying”  
“def show\_modal parent”  
“hide”  
“destroying”  
“hide”  
“destroying”  
“hide”  
“destroying”  
“showing…”  
“showing…”

Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread -1210542400 (LWP 9543)]  
st\_lookup (table=0x141d1, key=3070233956, value=0xbf93ee9c) at st.c:245  
245 st.c: Arquivo ou diretÃ³rio nÃ£o encontrado.  
in st.c  
(gdb) bt  
#0 st\_lookup (table=0x141d1, key=3070233956, value=0xbf93ee9c) at  
st.c:245  
#1 0x0806ee9f in rb\_hash\_aref (hash=3084099484, key=3070233956) at  
hash.c  
:419  
#2 0xb7cee43c in rclosure\_marshal\_body (arg=0x141d1) at  
rbgobj\_closure.c:82  
#3 0x08052bd1 in rb\_protect (proc=0xb7cee3d5 \<rclosure\_marshal\_body\>,  
data=3214143640, state=0xbf93f0b0) at eval.c:5385  
#4 0xb7cee548 in rclosure\_marshal (closure=0x82ed300,  
return\_value=0x141d1,  
n\_param\_values=82385, param\_values=0x141d1,  
invocation\_hint=0x141d1, marshal\_data=0x141d1) at  
rbgobj\_closure.c:123  
#5 0xb7cad79f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#6 0xb7cbc2ea in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#7 0xb7cbdb19 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#8 0xb7cbde89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#9 0xb76f482d in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#10 0xb762127f in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#11 0xb7621551 in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#12 0xb7617d04 in gtk\_menu\_reorder\_child () from /usr/lib/libgtk-  
x11-2.0.so.0  
#13 0xb7612610 in \_gtk\_marshal\_BOOLEAN\_\_BOXED () from /usr/lib/libgtk-  
x11-2.0.so.0  
#14 0xb7cad16f in g\_cclosure\_new\_swap () from  
/usr/lib/libgobject-2.0.so.0  
#15 0xb7cad79f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#16 0xb7cbc9ce in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#17 0xb7cbd886 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#18 0xb7cbde89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#19 0xb76f4a0f in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#20 0xb7610d8d in gtk\_propagate\_event () from  
/usr/lib/libgtk-x11-2.0.so.0  
#21 0xb761119b in gtk\_main\_do\_event () from /usr/lib/libgtk-x11-2.0.so.0  
#22 0xb74b4e1c in \_gdk\_events\_queue () from /usr/lib/libgdk-x11-2.0.so.0  
#23 0xb7c43876 in g\_main\_context\_dispatch () from  
/usr/lib/libglib-2.0.so.0  
#24 0xb7c46936 in g\_main\_context\_check () from /usr/lib/libglib-2.0.so.0  
#25 0xb7c46c58 in g\_main\_loop\_run () from /usr/lib/libglib-2.0.so.0  
#26 0xb7610495 in gtk\_main () from /usr/lib/libgtk-x11-2.0.so.0  
#27 0xb7838f14 in gtk\_m\_main (self=3079697628) at rbgtkmain.c:159  
#28 0x0805ce4c in rb\_call0 (klass=,  
recv=3079697628,  
id=5097, oid=82385, argc=0, argv=0x0,  
body=0xb7d59110, flags=0) at eval.c:5742  
#29 0x0805d829 in rb\_call (klass=3079695008, recv=3079697628, mid=5097,  
argc=0, argv=0x0, scope=0) at eval.c:5970  
#30 0x0805b62b in rb\_eval (self=3074018692, n=) at  
eval.c:3430  
#31 0x0805c011 in rb\_eval (self=3074018692, n=) at  
eval.c:3245  
#32 0x0805f827 in rb\_yield\_0 (val=,  
self=3074018692,  
klass=, flags=0, avalue=0)  
at eval.c:4947  
—Type to continue, or q to quit—

And:

dewd@marieta:~/workspace/pilar/ruby\_editor/lib/ruby\_editor$ gdb ruby  
GNU gdb 6.4-debian  
Copyright 2005 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 “i486-linux-gnu”…Using host libthread\_db  
library “/lib/tls/i686/cmov/libthread\_db.so.1”.

(gdb) run ruby\_editor.rb  
Starting program: /usr/bin/ruby ruby\_editor.rb  
[Thread debugging using libthread\_db enabled]  
[New Thread -1210816832 (LWP 9550)]  
[New Thread -1232114768 (LWP 9553)]  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
"HHHHHHM: (undefined method `db_str=' for nil:NilClass)" SHHHHHHHHHHHHIIIIIIIIITTTTTTTT undefined method `db\_str=’ for nil:NilClass  
/home/dewd/workspace/pilar/db\_rules/lib/dr/db.rb:97:in `db_str=' /home/dewd/workspace/pilar/ruby_editor/lib/ruby_editor/text_boosters.rb:198:in `insert\_linked\_views\_of\_tables’  
/home/dewd/workspace/pilar/ruby\_editor/lib/ruby\_editor/text\_boosters.rb:20:in  
`menu' /home/dewd/workspace/pilar/gtk_rules/lib/gr/gtk_rules.rb:2189:in `append’  
/home/dewd/workspace/pilar/gtk\_rules/lib/gr/gtk\_rules.rb:2255:in `sc' /home/dewd/workspace/pilar/gtk_rules/lib/gr/gtk_rules.rb:39:in `sc’  
/home/dewd/workspace/pilar/gtk\_rules/lib/gr/gtk\_rules.rb:2403:in `app' /home/dewd/workspace/pilar/gtk_rules/lib/gr/gtk_rules.rb:2356:in `app’  
/home/dewd/workspace/pilar/gtk\_rules/lib/gr/gr.rb:1317:in `app' /home/dewd/workspace/pilar/gtk_rules/lib/gr/gr.rb:1337:in `start’  
ruby\_editor.rb:11  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”  
“def show\_modal parent”  
“delete-event”  
“def close”  
“AAAAAAAAAAAAAA”  
“destroying”  
“hide”  
“destroying”  
“destroy nah”  
“OOOOOOOOOO1111111111”  
“xxxxxxxxxxxxxx def Gtk.main\_quit”

Program received signal SIGSEGV, Segmentation fault.  
[Switching to Thread -1210816832 (LWP 9550)]  
st\_lookup (table=0xa, key=3072208288, value=0xbfaf97fc) at st.c:245  
245 st.c: Arquivo ou diretÃ³rio nÃ£o encontrado.  
in st.c  
(gdb) bt  
#0 st\_lookup (table=0xa, key=3072208288, value=0xbfaf97fc) at st.c:245  
#1 0x0806ee9f in rb\_hash\_aref (hash=3072829068, key=3072208288) at  
hash.c  
:419  
#2 0xb7cab43c in rclosure\_marshal\_body (arg=0xa) at rbgobj\_closure.c:82  
#3 0x08052bd1 in rb\_protect (proc=0xb7cab3d5 \<rclosure\_marshal\_body\>,  
data=3215956472, state=0xbfaf9a10) at eval.c:5385  
#4 0xb7cab548 in rclosure\_marshal (closure=0x86580e8, return\_value=0xa,  
n\_param\_values=10, param\_values=0xa,  
invocation\_hint=0xa, marshal\_data=0xa) at rbgobj\_closure.c:123  
#5 0xb7c6a79f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#6 0xb7c792ea in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#7 0xb7c7ab19 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#8 0xb7c7ae89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#9 0xb775082d in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#10 0xb767d27f in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#11 0xb767d551 in gtk\_menu\_shell\_activate\_item () from /usr/lib/libgtk-  
x11-2.0.so.0  
#12 0xb7673d04 in gtk\_menu\_reorder\_child () from /usr/lib/libgtk-  
x11-2.0.so.0  
#13 0xb766e610 in \_gtk\_marshal\_BOOLEAN\_\_BOXED () from /usr/lib/libgtk-  
x11-2.0.so.0  
#14 0xb7c6a16f in g\_cclosure\_new\_swap () from  
/usr/lib/libgobject-2.0.so.0  
#15 0xb7c6a79f in g\_closure\_invoke () from /usr/lib/libgobject-2.0.so.0  
#16 0xb7c799ce in g\_signal\_stop\_emission () from /usr/lib/libgobject-  
2.0.so.0  
#17 0xb7c7a886 in g\_signal\_emit\_valist () from  
/usr/lib/libgobject-2.0.so.0  
#18 0xb7c7ae89 in g\_signal\_emit () from /usr/lib/libgobject-2.0.so.0  
#19 0xb7750a0f in gtk\_widget\_activate () from  
/usr/lib/libgtk-x11-2.0.so.0  
#20 0xb766cd8d in gtk\_propagate\_event () from  
/usr/lib/libgtk-x11-2.0.so.0  
#21 0xb766d19b in gtk\_main\_do\_event () from /usr/lib/libgtk-x11-2.0.so.0  
#22 0xb7510e1c in \_gdk\_events\_queue () from /usr/lib/libgdk-x11-2.0.so.0  
#23 0xb7c00876 in g\_main\_context\_dispatch () from  
/usr/lib/libglib-2.0.so.0  
#24 0xb7c03936 in g\_main\_context\_check () from /usr/lib/libglib-2.0.so.0  
#25 0xb7c03c58 in g\_main\_loop\_run () from /usr/lib/libglib-2.0.so.0  
#26 0xb766c495 in gtk\_main () from /usr/lib/libgtk-x11-2.0.so.0  
#27 0xb7894f14 in gtk\_m\_main (self=3083617192) at rbgtkmain.c:159  
#28 0x0805ce4c in rb\_call0 (klass=,  
recv=3083617192,  
id=5097, oid=10, argc=0, argv=0x0,  
body=0xb73fe2d0, flags=0) at eval.c:5742  
#29 0x0805d829 in rb\_call (klass=3083607732, recv=3083617192, mid=5097,  
argc=0, argv=0x0, scope=0) at eval.c:5970  
#30 0x0805b62b in rb\_eval (self=3073840780, n=) at  
eval.c:3430  
#31 0x0805c011 in rb\_eval (self=3073840780, n=) at  
eval.c:3245  
#32 0x0805f827 in rb\_yield\_0 (val=,  
self=3073840780,  
klass=, flags=0, avalue=0)  
at eval.c:4947  
—Type to continue, or q to quit—

If you need help just ask.

Cheers,  
Joao

---

<div class="post-metadata">

**Author:** ![jpedrosa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecae2f/32.png) [@jpedrosa](https://www.ruby-forum.com/u/jpedrosa)\
**Post date:** [April 15, 2006, 6:52am UTC](https://www.ruby-forum.com/t/problem-i-need-to-turn-off-the-cairo-support-for-testin/57503/15 "2006-04-15T06:52:15Z")

</div>

Hi,

Could you show me your instructions?

> I couldn’t crash both Ruby Editor and Database  
> Administrator.

Sure. I will test your fix as soon as SourceForge updates  
the anonymous CVS. Thanks a lot for the efforts. If I find  
any problem I will send you the instructions.

Cheers,  
Joao
