endless loop & how to use gdb?

6 views
Skip to first unread message

niknah

unread,
Jun 14, 2010, 9:29:10 PM6/14/10
to v8cgi
I"m having a problem with an endless loop that happens randomly when I
run a server overnight, don't know if it's a problem with v8 or
v8cgi. I am using fastcgi

Here's the stack trace...



#0 0x00007f55b24e38b2 in v8::IsDeadCheck(char const*) ()
from /usr/local/lib/libv8.so
#1 0x00007f55b24e9804 in v8::Object::CheckedGetInternalField(int) ()
from /usr/local/lib/libv8.so
#2 0x0000000000405bfd in (anonymous namespace)::_stdin(v8::Arguments
const&)
()
#3 0x00007f55b25031b8 in
v8::internal::Builtin_HandleApiCall(v8::internal::(anonymous
namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)1>)
()
from /usr/local/lib/libv8.so
#4 0x00007f558cf4416a in ?? ()
#5 0x00007fff44969880 in ?? ()
#6 0x00007f558cf44101 in ?? ()
#7 0x00007fff44969840 in ?? ()
#8 0x00007fff449698b8 in ?? ()
#9 0x00007f558cf833b4 in ?? ()
#10 0x00007f556da3e569 in ?? ()
#11 0x00007f55b2a921a9 in ?? ()
#12 0x00005ce700000000 in ?? ()
#13 0x00007f556d9a95b9 in ?? ()
#14 0x00007f556d9a9629 in ?? ()
#15 0x00007f55af83c3e1 in ?? ()
#16 0x00007f55b2a92159 in ?? ()
#17 0x0000000000000000 in ?? ()



I've compiled v8cgi with debug=1 but when I run it with gdb I can
only get the stack trace in libv8 but not v8cgi like above.
How do I use gdb with v8cgi?

Ondřej Žára

unread,
Jun 15, 2010, 2:15:55 AM6/15/10
to v8...@googlegroups.com
Hi,

when compiled with debug=1, v8cgi's sources are normally shown in gdb. I am not sure what causes the behavior you show, as my gdb skills are very low. After a brief look at your backtrace, it looks like there might have been an interrupted stdin read (such as aborting a HTTP request by hitting "esc" in browser). I will double-check that v8cgi's fastcgi support can handle this case.

In the meantime, please try in cgi / apache module mode to check if the problem is fastcgi-specific.


Sincerely,
Ondrej Zara





2010/6/15 niknah <nik...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "v8cgi" group.
To post to this group, send email to v8...@googlegroups.com.
To unsubscribe from this group, send email to v8cgi+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/v8cgi?hl=en.


Ondřej Žára

unread,
Jun 15, 2010, 12:42:43 PM6/15/10
to v8...@googlegroups.com
Hi,

please try updating to rev. 808, recompiling with fcgi=1 and restarting your (fastcgi) server(s). I made one minor adjustments...


Thanks,
Ondrej




2010/6/15 niknah <nik...@gmail.com>

niknah

unread,
Jun 16, 2010, 9:30:23 AM6/16/10
to v8cgi
Thanks. I tried the latest. But it didn't help, I don't get any
debug info when I run it from plain command line like either, so it
maybe a problem with my computer.

Maybe I'll stop using fastcgi, I don't like the way it forks so many
processes when I only have a small amount of requests and it seems to
kill those processes in the middle of a request sometimes.
> > v8cgi+un...@googlegroups.com <v8cgi%2Bunsu...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages