Re: Issue 2166 in v8: Nested v8::TryCatch blocks don't rethrow properly

49 views
Skip to first unread message

codesite...@google.com

unread,
Jun 15, 2012, 6:55:33 AM6/15/12
to v8-...@googlegroups.com
Updates:
Cc: rossb...@chromium.org

Comment #1 on issue 2166 by rossb...@chromium.org: Nested v8::TryCatch
blocks don't rethrow properly
http://code.google.com/p/v8/issues/detail?id=2166

(No comment was entered for this change.)

codesite...@google.com

unread,
Jun 15, 2012, 11:08:42 AM6/15/12
to v8-...@googlegroups.com

Comment #2 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch
Fixed in r11834.

codesite...@google.com

unread,
Jun 15, 2012, 11:10:02 AM6/15/12
to v8-...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch

codesite...@google.com

unread,
Jun 21, 2012, 7:12:16 AM6/21/12
to v8-...@googlegroups.com
Updates:
Status: Assigned

Comment #4 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch
Reverted in r11892 due to Chromium unit test failures. Issue reopened.

codesite...@google.com

unread,
Sep 21, 2012, 4:07:32 AM9/21/12
to v8-...@googlegroups.com
Updates:
Owner: yan...@chromium.org

Comment #5 on issue 2166 by yan...@chromium.org: Nested v8::TryCatch

codesite...@google.com

unread,
Sep 24, 2012, 3:23:48 AM9/24/12
to v8-...@googlegroups.com

Comment #6 on issue 2166 by phi...@gmail.com: Nested v8::TryCatch blocks
I think I just hit this problem in our own code. Is a fix for this still
planned (in the near future), or should I look for a workaround?

codesite...@google.com

unread,
Sep 24, 2012, 3:25:29 AM9/24/12
to v8-...@googlegroups.com

Comment #7 on issue 2166 by yan...@chromium.org: Nested v8::TryCatch
Apparently there are wrong usages of TryCatch in Chromium. TryCatch needs
to be stack allocated (not heap allocated with 'new'). Before those are
fixed, we can't land an existing fix to this issue.

codesite...@google.com

unread,
Sep 25, 2012, 12:38:55 PM9/25/12
to v8-...@googlegroups.com

Comment #8 on issue 2166 by jsb...@chromium.org: Nested v8::TryCatch blocks
Is there a Chromium or WebKit bug tracking those heap allocations?

codesite...@google.com

unread,
Sep 25, 2012, 8:11:53 PM9/25/12
to v8-...@googlegroups.com

Comment #9 on issue 2166 by hara...@chromium.org: Nested v8::TryCatch
Not yet probably.

Michael: would you file a bug for Chromium? (I don't know the place where
the TryCatch heap allocations are happening.)

codesite...@google.com

unread,
Sep 26, 2012, 4:55:09 AM9/26/12
to v8-...@googlegroups.com
Updates:
Blockedon: chromium:152389

Comment #10 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch
Done. https://code.google.com/p/chromium/issues/detail?id=152389

codesite...@google.com

unread,
Sep 26, 2012, 4:58:20 AM9/26/12
to v8-...@googlegroups.com

Comment #11 on issue 2166 by phi...@gmail.com: Nested v8::TryCatch blocks
Thanks for pursuing this problem!

codesite...@google.com

unread,
Oct 5, 2012, 4:07:42 PM10/5/12
to v8-...@googlegroups.com

Comment #12 on issue 2166 by e...@dubbelboer.com: Nested v8::TryCatch
I have tested the code in r11834. It does work but the rethrow messes up
the file and linenumer of the error.

I'm hoping this gets fixed soon as it is really annoying to work around.

codesite...@google.com

unread,
Nov 15, 2012, 4:07:58 AM11/15/12
to v8-...@googlegroups.com
Updates:
Owner: mstar...@chromium.org
Cc: yan...@chromium.org

Comment #13 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch
The upstream Chromium change is being worked on. I'll reland the fix as
soon as it's done. It's on my radar.

codesite...@google.com

unread,
Dec 4, 2012, 2:27:41 AM12/4/12
to v8-...@googlegroups.com

Comment #14 on issue 2166 by hara...@chromium.org: Nested v8::TryCatch
The Chromium change was landed:
http://src.chromium.org/viewvc/chrome?view=rev&revision=170898


codesite...@google.com

unread,
Dec 4, 2012, 8:21:14 AM12/4/12
to v8-...@googlegroups.com
Updates:
Status: Fixed
Cc: k...@chromium.org

Comment #15 on issue 2166 by mstar...@chromium.org: Nested v8::TryCatch
Fixed (again) in r13129 and r13130. Kudos go to koz@ for handling the
upstream issue.

codesite...@google.com

unread,
Jan 13, 2014, 10:41:52 PM1/13/14
to v8-...@googlegroups.com

Comment #16 on issue 2166 by yihongw...@gmail.com: Nested v8::TryCatch
I am not able to run test-api/TryCatchNested twice within an v8::Isolate.
is this a expected behavior?

like this:
cctest test-api/TryCatchNested test-api/TryCatchNested

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages