Skip to content
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

Deno crashes (not a rust panic), when debugging a specific piece of code #23553

Open
TopchetoEU opened this issue Apr 25, 2024 · 0 comments
Open
Labels
bug Something isn't working inspector related to the inspector integration upstream Changes in upstream are required to solve these issues

Comments

@TopchetoEU
Copy link

TopchetoEU commented Apr 25, 2024

When trying to debug the following code:

export class MyClass {
    public constructor(public member: number) { }
    public static readonly static = null;
}

new MyClass(10);

and try to step into the constructor on the last line, Deno crashes with the following error:

#
# Fatal error in , line 0
# Check failed: IsStringSet(*block_list).
#
#
#
#FailureMessage Object: 0x7ffc7741c6f0
==== C stack trace ===============================

    /usr/bin/deno(+0x2ab5533) [0x578028a04533]
    /usr/bin/deno(+0x2ab481b) [0x578028a0381b]
    /usr/bin/deno(+0x2ab02df) [0x5780289ff2df]
    /usr/bin/deno(+0x2bce13b) [0x578028b1d13b]
    /usr/bin/deno(+0x2bcd636) [0x578028b1c636]
    /usr/bin/deno(+0x2bdd4bd) [0x578028b2c4bd]
    /usr/bin/deno(+0x34658ca) [0x5780293b48ca]
    /usr/bin/deno(+0x3478606) [0x5780293c7606]
    /usr/bin/deno(+0x34dbac4) [0x57802942aac4]
    /usr/bin/deno(+0x34af33a) [0x5780293fe33a]
    /usr/bin/deno(+0x5db3597) [0x57802bd02597]
    /usr/bin/deno(+0x5ee9cf6) [0x57802be38cf6]
    /usr/bin/deno(+0x344e1cd) [0x57802939d1cd]
    /usr/bin/deno(+0x344e4ef) [0x57802939d4ef]
    /usr/bin/deno(+0x2be0b4b) [0x578028b2fb4b]
    /usr/bin/deno(+0x2be020e) [0x578028b2f20e]
    /usr/bin/deno(+0x30b1034) [0x578029000034]
    /usr/bin/deno(+0x3d51f36) [0x578029ca0f36]

I believe this has to do with either wrong interpretation or wrongly generated source maps.

Workaround:
Instead of using static fields, put them in a namespace with the same name:

export class MyClass {
    public constructor(public member: number) { }
}
export namepsace MyClass {
    export const _static = null;
}

Version: 1.42.4

@bartlomieju bartlomieju added bug Something isn't working upstream Changes in upstream are required to solve these issues inspector related to the inspector integration labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inspector related to the inspector integration upstream Changes in upstream are required to solve these issues
Projects
None yet
Development

No branches or pull requests

2 participants