How do I run gdb if I use the init.d script and my process for ape
looks like this?

/usr/bin/aped --cfg /etc/ape/ape.conf

On Mar 7, 12:07 pm, Anthony Catel <[email protected]> wrote:
> Hi,
>
> Can you please run APE with gdb and send me a backtrace when it segfault?
>
> Simply use :
>
> gdb ./aped
> run
>
> and "bt" when it crashes.
>
> (Btw, do you use 1.0 or 1.01dev?)
>
> Thanks.
>
> Anthony.
>
> kristo a crit :
>
>
>
> > Hi,
> > i've got similar problem with this version, here is an entry from my /
> > var/log/messages:
> > kernel: [3517842.188047] aped[27942]: segfault at 7f4feba6cc20 rip
> > 7f4feba6cc20 rsp 7ffff884e3a8 error 15
>
> > my script (simple inlinepush) had been running for few hours sending
> > every 10 seconds messages to the channel, but suddenly i got this
> > error and ape server stoped working.
>
> > another problem i discovered in working of ape: i send data to the
> > channel and after sometime i get response "Bad params", however
> > structure and data i sent to channel didn't change. when i reboot the
> > ape server everything goes back to right working.
>
> > i will be very thankful for help.
> > btw. i don't use any custom server side modules.
>
> > On 5 Mar, 15:36, Tallstop <[email protected]> wrote:
>
> >> On Mar 4, 5:36 pm, Anthony Catel <[email protected]> wrote:
>
> >>> Hi,
>
> >>> What version do you run?
> >>> Do you have some custom modules? server-side JS modules?
>
> >>> Thanks
>
> >>> Anthony
>
> >> Running version 1.0.  Yes server-side JS modules:
>
> >> stats.js:
>
> >> Ape.registerCmd('getUsers', true, function(params,info) {
> >>         var responseArr = [];
> >>         var channel = Ape.getChannelByName('*testChannel');
> >>         if(channel != null)
> >>         {
> >>                 channel.userslist.each(function(user) {
> >>                         if(user.getProperty("ClientName") !=
> >> 'undefined')
> >>                         {
>
> >> responseArr.push({"ClientName":user.getProperty("ClientName"),
>
> >> "ClientIP":user.getProperty("ClientIP"),
>
> >> "ClientUserAgent":user.getProperty("ClientUserAgent"),
> >>                                     "ClientConnectTime":
> >> user.getProperty("ClientConnectTime")});
> >>                         }
> >>                 });
> >>                 var outChannel =
> >> Ape.getChannelByName('*statsChannel');
> >>                         if(outChannel == null)
> >>                         outChannel = Ape.mkChan('*statsChannel');
> >>                 outChannel.pipe.sendRaw("USERS_LIST", responseArr);
> >>         }
> >>         return 1;
>
> >>         });
>
> >> Ape.registerHookCmd('join', function(params, info) {
> >>         var channel = Ape.getChannelByName('*statsChannel');
> >>         if(channel == null)
> >>                 channel = Ape.mkChan('*statsChannel');
> >>         channel.pipe.sendRaw("USER_CONNECT",
> >>                 {"ClientName":info.user.getProperty("ClientName"),
> >> "ClientConnectTime": info.user.getProperty("ClientConnectTi
> >> me"),
> >>                  "ClientIP": info.ip, "ClientUserAgent":
> >> info.user.getProperty("ClientUserAgent")});
> >>         });
>
> >> Ape.registerHookCmd('left', function(params, info) {
> >>         var channel = Ape.getChannelByName('*statsChannel');
> >>         if(channel == null)
> >>                 channel = Ape.mkChan('*statsChannel');
> >>         channel.pipe.sendRaw("USER_DISCONNECT",
> >>                 {"ClientName":info.user.getProperty("ClientName") });
> >>         });
>
> >> Ape.registerHookCmd('deluser', function(user) {
> >>         var channel = Ape.getChannelByName('*statsChannel');
> >>         if(channel == null)
> >>                 channel = Ape.mkChan('*statsChannel');
> >>         channel.pipe.sendRaw("USER_DISCONNECT",
> >>                 {"ClientName":user.getProperty("ClientName") });
> >>         });
>
> >> Ape.registerHookCmd('connect', function(params, info) {
> >>         info.user.setProperty('ClientName', params.name);
> >>         info.user.setProperty('ClientIP', info.ip);
> >>         info.user.setProperty('ClientUserAgent',
> >> params.clientUserAgent);
> >>         info.user.setProperty('ClientConnectTime', new
> >> Date().toTimeString());
> >>         });
>
> >> ---------------------------------------------------------------------------­----------------------------------------------
> >> bid.js:
>
> >> Ape.registerCmd('bid', true, function(params, info) {
> >> Ape.log('bid placed from ' + info.ip);
> >> Ape.getPipe(params.pubid).sendRaw("OUTGOING_BID", {"Bid":params.msg,
> >> "Bidder":params.clientName, "ClientIP": params.clientIP,
> >> "ClientUserAgent": params.clientUserAgent});
>
> >> });- Hide quoted text -
>
> - Show quoted text -

-- 
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