[Mono-list] Help in Launching c# application through mono in embedded(arm) environment

Muthukumar S muthu.smk at gmail.com
Wed Jul 20 07:17:27 EDT 2011


Hi Kumpera,
                      Thank you for your reply.
We tried mono-2.8/samples/embed - hello.cs in x86 its working fine.Its not
throwing any signal(exception)
But when we tired mono-2.8 cross compiled for* arm* and tried running the
same sample (mono-2.8/samples/embed -hello.cs)
we are getting the * *the below output.

*Hello Mono World*
*send signal from USER, SIG : 30, sys_tgkill*
*send signal from USER, SIG : 24, sys_tgkill*
*
*
*It seems the hello.cs application is running fine in arm ,but with
exception .*
*These signals are (30 -SIGPWR )and (24-SIGXCPU) and iam sure why these
signals are coming in arm platform.*
*
*
*
*
*1. And also i need to know mono itself handling the above signals proper or
not for arm platform ,because the same app is running in x-86?*
*
*
*2. We also tried to capture the signals(code snippet is shown below)  in
"hello world.cs" application ,but  we could not able to catch any
signal **because
of early application termination.*
*
*
*
struct sigaction        actions;
*
*
int                     rc;
*
*
memset(&actions, 0, sizeof(actions));
*
*
sigemptyset(&actions.sa_mask);
*
*
actions.sa_flags = 0;
actions.sa_handler = sighand;
*
*
rc = sigaction(SIGXCPU,&actions,NULL);
*
*
rc = sigaction(SIGPWR,&actions,NULL);
*
*

*
*
*
*Sorry to ask you this question again and again,*
*
*
*3. Can you please clarify this and can you tell me what i need to add and
where to add to catch the signal and process in *
*properly to avoid crash .*
*
*
*
*
*
*
Thanks and Regards
Muthukumar

On Tue, Jul 19, 2011 at 6:31 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:

> Hi,
>
> Mono requires a bunch of unix signals to be available to it in order to
> function correctly, check if your C host app isn't trapping them
> incorrectly.
>
>
> On Tue, Jul 19, 2011 at 2:19 AM, Muthukumar S <muthu.smk at gmail.com> wrote:
>
>> Hi Kumpera,
>>                 Sorry, iam not clear about the signals what you have
>> replied me. I have few more queries regarding the same ,
>>
>> *1. Did u mean to say i need to handle all these exceptions in my
>> application (c# hello world application) or it will get handled by mono
>> frame work itself.*
>> *
>> *
>> *2. Iam not sure why my "C# hello world application" is getting crashed
>> by throwing the exception (**USER, SIG : 30, and **USER, SIG : 24) ?*
>> *
>> *
>> *3. According to my platform (arm) i have just cross compiled mono and
>> made it to shared object (.so) and i made "C# hello world" application as
>> DLL and i launched this application though a launcher (since my launcher is
>> written in 'C').
>> *
>> *
>> *
>> *
>> *
>> *Please help me some solution to  fix this issue . If i need to change or
>> add some thing in the mono framework please*
>> *let me know.*
>> *
>> *
>> *Once again thank you very much for your valuable input.*
>> *
>> *
>> *Thanks*
>> *-Muthukumar*
>> *
>> *
>> On Mon, Jul 18, 2011 at 8:11 PM, Rodrigo Kumpera <kumpera at gmail.com>wrote:
>>
>>>
>>>
>>> On Mon, Jul 18, 2011 at 8:56 AM, Muthukumar S <muthu.smk at gmail.com>wrote:
>>>
>>>> Hi All,
>>>>             We have created a "hello world c# application" through mono
>>>> and we try to launch it in
>>>> arm (embedded ) environment using launcher application(which is written
>>>> in c).
>>>> When we launch the application through launcher at first time,we are
>>>> getting the following output.
>>>>
>>>> * Hello Mono World*
>>>> *send signal from USER, SIG : 30, Launcher(1224)->Launcher(1225)
>>>> sys_tgkill*
>>>> *
>>>> *
>>>> *send signal from USER, SIG : 24, Launcher(1224)->Launcher(1225)
>>>> sys_tgkill*
>>>> *
>>>> *
>>>> Here launcher is running in one thread ,and the output is generated as
>>>> above.
>>>> when we try to launch it at second time my system get crashed by showing
>>>> the above output.
>>>>
>>>> My launcher is working fine in launching native application. I believe
>>>> there is some issue in
>>>> mono signal handing mechanism.
>>>>
>>>>
>>> Mono needs a bunch of signals to function properly. This includes trap
>>> signals (BUS, SEGV, FPE, etc) and
>>> for internal workings (USR1, XCPU, PWR, 33 and 35).
>>>
>>>
>>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20110720/dc942bd1/attachment.html 


More information about the Mono-list mailing list