calling IdleNotification from an InvocationCallback?

26 views
Skip to first unread message

Stephan Beal

unread,
Jan 22, 2011, 3:12:08 PM1/22/11
to v8-users
Hi, all!

i just bound v8::V8::IdleNotification() to JS during some experimentation (with function binding templates, not with IdleNotification() itself) and accidentally found that when i call it in the context of an InvocationCallback, it's crashing on me. gdb unfortunately doesn't say very much here:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffd283d3ad in ?? ()
(gdb) bt
#0  0x00007fffd283d3ad in ?? ()
#1  0x00007ffff4041dd9 in ?? ()
#2  0x00007ffff7f00089 in ?? ()
#3  0x00007fffd283d321 in ?? ()
#4  0x0000000600000000 in ?? ()
#5  0x0000000000000000 in ?? ()

Is this behaviour expected? If so, is there a way we can trigger gc from an InvocationCallback? (Maybe add an Unlocker before calling it?)

--
----- stephan beal
http://wanderinghorse.net/home/stephan/

Anton Muhin

unread,
Jan 24, 2011, 10:52:01 AM1/24/11
to v8-u...@googlegroups.com
Stephan,

That's not ok, may you post the sample code to repro the problem?

yours,
anton.

> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users

Stephan Beal

unread,
Jan 24, 2011, 1:22:20 PM1/24/11
to v8-u...@googlegroups.com
On Mon, Jan 24, 2011 at 4:52 PM, Anton Muhin <ant...@chromium.org> wrote:
That's not ok, may you post the sample code to repro the problem?

Hi, Anton!

i'm trying to put together a test case, and suddenly it is working, so i'm going to assume that the crash before was some error on my part. If i can can trigger it again i'll post more info.
Reply all
Reply to author
Forward
0 new messages