[Mono-list] How to debug a segmentation fault?

Julien Sobrier julien at sobrier.net
Fri Feb 24 17:41:03 EST 2006


Hello,
I have a main executable assembly called Core which loads dll assemblies
called plugins using System.Reflections. These plugins can send events,
and the Core register to them. I've noticed that if a Plugin send an
event, but the COre has notregistered (+= ) to this event, I have a
segmentation fault.

Right now, I have a similar problem that I'm trying to debug. Plugin is
a dll assembly that uses GTK#. When loaded through System.Reflection by
the Core, it starts a GTK UI (Application.Init). Then, it can send
events. Core has registered to these events. However, whenever an event
is sent, I have a segmentation fault.

I didn't see any other solutuion that using the option --trace to try to
debug the issue. The last lines are:
ENTER: (wrapper managed-to-native) System.Array:SetValueImpl
(object,int)(this:0x9b8cea0[System.Object[] Platine.exe],
[Mono.Globalization.Unicode.Contraction:0x9b8e0d8], 1, )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . LEAVE: (wrapper managed-to-native) System.Array:SetValueImpl
(object,int)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . ENTER: (wrapper managed-to-native) System.Array:SetValueImpl
(object,int)(this:0x9b8cea0[System.Object[] Platine.exe],
[Mono.Globalization.Unicode.Contraction:0x9b8e0d8], 1, )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . LEAVE: (wrapper managed-to-native) System.Array:SetValueImpl
(object,int)
. . . . . . . . . . . . . . . . . . . . . . . . . . . .Segmentation fault

It doesn't tell me much ...

Any idea to isolate the problem?

Thank you
Julien


More information about the Mono-list mailing list