Before it crashed (it hasn't as of writing), it stopped responding.  I
am using vers 1.0.  Here is the bt:

36b9214000-36b9413000 ---p 00014000 fd:00
3324279                        /usr/lib64/libz.so.1.2.3
36b9413000-36b9414000 rw-p 00013000 fd:00
3324279                        /usr/lib64/libz.so.1.2.3
36b9600000-36b9615000 r-xp 00000000 fd:00
9320997                        /lib64/libselinux.so.1
36b9615000-36b9815000 ---p 00015000 fd:00
9320997                        /lib64/libselinux.so.1
36b9815000-36b9817000 rw-p 00015000 fd:00
9320997                        /lib64/libselinux.so.1
36b9817000-36b9818000 rw-p 36b9817000 00:00 0
36b9a00000-36b9a3b000 r-xp 00000000 fd:00
9320996                        /lib64/libsepol.so.1
36b9a3b000-36b9c3b000 ---p 0003b000 fd:00
9320996                        /lib64/libsepol.so.1
36b9c3b000-36b9c3c000 rw-p 0003b000 fd:00
9320996                        /lib64/libsepol.so.1
36b9c3c000-36b9c46000 rw-p 36b9c3c000 00:00 0
36bae00000-36bae15000 r-xp 00000000 fd:00
9320984                        /lib64/libnsl-2.5.so
36bae15000-36bb014000 ---p 00015000 fd:00
9320984                        /lib64/libnsl-2.5.so
36bb014000-36bb015000 r--p 00014000 fd:00
9320984                        /lib64/libnsl-2.5.so
36bb015000-36bb016000 rw-p 00015000 fd:00
9320984                        /lib64/libnsl-2.5.so
36bb016000-36bb018000 rw-p 36bb016000 00:00 0
36bce00000-36bce11000 r-xp 00000000 fd:00
9320995                        /lib64/libres
Program received signal SIGABRT, Aborted.
0x00000036b7e30265 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00000036b7e30265 in raise () from /lib64/libc.so.6
#1  0x00000036b7e31d10 in abort () from /lib64/libc.so.6
#2  0x00000036b7e6a84b in __libc_message () from /lib64/libc.so.6
#3  0x00000036b7e722ef in _int_free () from /lib64/libc.so.6
#4  0x00000036b7e7273b in free () from /lib64/libc.so.6
#5  0x0000000000411f30 in free_raw ()
#6  0x00000000004123a7 in send_raws ()
#7  0x000000000040a6b8 in check_timeout ()
#8  0x00000000004108a1 in process_tick ()
#9  0x00000000004070a5 in sockroutine ()
#10 0x00000000004061c7 in main ()


On Mar 8, 5:10 pm, Anthony Catel <[email protected]> wrote:
> Do not use a init script :
>
> - Start a new TTY screen : screen -S ape
> - turn "daemon mode" off in ape.conf
> - run APE with : "gdb /usr/bin/aped --cfg /etc/ape/ape.conf"
> - hit "run" in gdb
> - hit : CTRL+A CTRL+D to detach the screen session
> - wait for APE to crash
> - "screen -dr ape" to switch on the APE screen
>
> Anthony
>
> Tallstop a crit :
>
>
>
> > 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 -- 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