Hi Nicolas,

indeed, my code was bogus, trying to remove non existing channel, though I
still think it should not cause Ape to crash. However, I managed to
reconstruct the whole crash scenario:

1. on "left" event I also remove the channel, sth like this:

Ape.addEvent('left', function(iUser, gameChannel) {
  ....
  Ape.rmChan(gameChannel);
}

2. Somewhere else in the code I called Ape.rmChan(gameChannel), though there
were still active users on the channel. In that case, the "left" event was
called first and removed the gameChannel. After that, the
Ape.rmChan(gameChannel) tried to remove the gameChannel again and it Ape
crashed.

I will obviously have to do something with my code, but I hope you will find
this information helpful as well.

Best,
Matija







2010/3/17 Nicolas Trani <[email protected]>

> Hi,
>
> I think you are using Ape.rmChan in your SSJS script maybe you are calling
> it with without a good channel name/object. You can try to add some debug
> information on your server side code to check if it's the case.
>
> Regards.
>
> On Tue, 16 Mar 2010 23:29:17 +0100, Matija Hiti <[email protected]>
> wrote:
> > Ok, now I'm running the git server version (a3d1686) with gdb and here is
> > what I get on crash:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x001db091 in ape_cb_rmchan () from ../modules/lib/libmod_spidermonkey.so
> > #0  0x001db091 in ape_cb_rmchan () from
> > ../modules/lib/libmod_spidermonkey.so
> > #1  0x08051a35 in rmchan ()
> > #2  0x001d7f1e in ape_sm_rmchan () from
> > ../modules/lib/libmod_spidermonkey.so
> > #3  0x002171b6 in js_Invoke () from ../modules/lib/libmod_spidermonkey.so
> > #4  0x002aed67 in js_Interpret () from
> > ../modules/lib/libmod_spidermonkey.so
> > #5  0x00217477 in js_Invoke () from ../modules/lib/libmod_spidermonkey.so
> > #6  0x00217977 in js_InternalInvoke () from
> > ../modules/lib/libmod_spidermonkey.so
> > #7  0x001dda60 in JS_CallFunctionValue () from
> > ../modules/lib/libmod_spidermonkey.so
> > #8  0x001dc54e in ape_sm_cmd_wrapper () from
> > ../modules/lib/libmod_spidermonkey.so
> > #9  0x0804f5a2 in process_cmd ()
> > #10 0x0804f9b0 in checkcmd ()
> > #11 0x0804e4c8 in checkrecv ()
> > #12 0x0805b8dc in parser_ready_http ()
> > #13 0x08056271 in process_http ()
> > #14 0x0804d4fc in sockroutine ()
> > #15 0x0804c6f7 in main ()
> > Could you tell what went wrong?
> >
> > Matija
> >
> > 2010/3/16 Nicolas Trani <[email protected]>
> >
> >> Hi,
> >>
> >> there are some know bugs in APE 1.0 that can make it segfault. I suggest
> >> you to upgrade to git version. If you still experience some crash, try
> > to
> >> launch APE with gdb
> >> (http://www.ape-project.org/wiki/index.php/How_to_debug_APE_segfault)
> > and
> >> send us the results.
> >>
> >> Regards.
> >>
> >> On Tue, 16 Mar 2010 13:26:50 +0100, Matija Hiti <[email protected]>
> >> wrote:
> >>  > Hi,
> >> >
> >> > I am using Ape server 1.0 version installed on Centos 5.0. While
> > playing
> >> > around on a client side the ape server often crashes. Unfortunately, I
> > am
> >> > not able to repeat the circumstances of the crash - it happens on
> > various
> >> > occasions. The only message about the crash is in the console while
> > not
> >> > run
> >> > as deamon - segmentation fault. It happens quite often and under no
> > heavy
> >> > load - 2 or 3 users maximum.
> >> >
> >> > Is this a known issue that has been fixed on the github version - is
> > it
> >> > worth upgrading?
> >> >
> >> > Best,
> >> > Matija
> >> >
> >> >
> >> --
> >> Nicolas Trani - R&D Web Engineer
> >> Weelya - Improve the web
> >> Tel : 04 67 169 778
> >> http://www.weelya.com / http://www.ape-project.org
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "APE Project" group.
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >>
> >
> [email protected]<ape-project%[email protected]>
> <ape-project%[email protected]<ape-project%[email protected]>
> >
> >> For more options, visit this group at
> >> http://groups.google.com/group/ape-project?hl=en
> >> ---
> >> APE Project (Ajax Push Engine)
> >> Official website : http://www.ape-project.org/
> >> Git Hub : http://github.com/APE-Project/
> >>
> >
> >
> --
> Nicolas Trani - R&D Web Engineer
> Weelya - Improve the web
> Tel : 04 67 169 778
> http://www.weelya.com / http://www.ape-project.org
>
> --
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<ape-project%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>

-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to