New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callback returns useless error message #5732
Comments
From @titsukiIn the following example, ` my &ook = sub (Int $piyo) ` has wrong signature (` my &ook = sub (Int $piyo, Num $fuga) ` is a right one)and it returns the error message of "Internal error: Unwound entire stack and missed handler". * codes * use v6; compile_test_lib('02-callback'); { done-testing; t/02-callback.c #include <stdio.h> #ifdef _WIN32 int doit(foo_t foo){ foo(10,3.1); } t/02-callback.h #if ! defined(HEADER_CALLBACK_H) #ifdef __cplusplus typedef int (*foo_t)( #ifdef __cplusplus #endif /* HEADER_CALLBACK_H */ * results * $ mi6 test -v t/02-callback.t Test Summary Report t/02-callback.t (Wstat: 256 Tests: 0 Failed: 0) $ perl6 --version |
From @geekosaurOn Thu, Oct 6, 2016 at 1:39 PM, Itsuki Toyota <perl6-bugs-followup@perl.org>
I believe this is known. and it's difficult to fix: you simply can't map -- |
The RT System itself - Status changed from 'new' to 'open' |
From @geekosaurOn Thu, Oct 6, 2016 at 1:48 PM, Brandon Allbery via RT <
Actually, now that I think about it, there is something that can be done; Exception in Perl callback cannot be passed back through native code. -- |
From @toolforgerAm 06.10.2016 um 21:07 schrieb Brandon Allbery via RT:
Actually that's the only sane way to deal with such a situation, and Essentially, it's a special case of a callback failing for some reason; |
Migrated from rt.perl.org#129820 (status was 'open')
Searchable as RT129820$
The text was updated successfully, but these errors were encountered: