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

spack - Panic on arrays with 64 or more numbers #163

Closed
Nerixyz opened this issue Sep 18, 2022 · 0 comments
Closed

spack - Panic on arrays with 64 or more numbers #163

Nerixyz opened this issue Sep 18, 2022 · 0 comments

Comments

@Nerixyz
Copy link

Nerixyz commented Sep 18, 2022

When an input file for spack contains a declaration of an array with 64 or more numbers, spack panics:

thread '<unnamed>' panicked at 'cannot access a scoped thread local variable without calling `set` first', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\scoped-tls-1.0.0\src\lib.rs:168:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace                                                                                                                                    
node:internal/process/promises:288                                                                                                                                                                               
            triggerUncaughtException(err, true /* fromPromise */);                                                                                                                                               
            ^                                                                                                                                                                                                    

[Error: panic detected] { code: 'GenericFailure' }

Node.js v18.0.0
With RUST_BACKTRACE=full
thread '<unnamed>' panicked at 'cannot access a scoped thread local variable without calling `set` first', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\scoped-tls-1.0.0\src\lib.rs:168:9
stack backtrace:
   0:     0x7ffb16013f5f - wasmer_vm_raise_trap
   1:     0x7ffb16030eba - wasmer_vm_raise_trap
   2:     0x7ffb1600db49 - wasmer_vm_raise_trap
   3:     0x7ffb160169cb - wasmer_vm_raise_trap
   4:     0x7ffb1601664b - wasmer_vm_raise_trap
   5:     0x7ffb16016f79 - wasmer_vm_raise_trap
   6:     0x7ffb16e5535a - wasmer_vm_raise_trap
   7:     0x7ffb16e55327 - wasmer_vm_raise_trap
   8:     0x7ffb1771a6fd - wasmer_vm_raise_trap
   9:     0x7ffb16e13443 - wasmer_vm_raise_trap
  10:     0x7ffb16df0bdc - wasmer_vm_raise_trap
  11:     0x7ffb15f482f1 - wasmer_vm_raise_trap
  12:     0x7ffb15f4b42f - wasmer_vm_raise_trap
  13:     0x7ffb16def03c - wasmer_vm_raise_trap
  14:     0x7ffb15f47df4 - wasmer_vm_raise_trap
  15:     0x7ffb15f4a9d1 - wasmer_vm_raise_trap
  16:     0x7ffb15f4a922 - wasmer_vm_raise_trap
  17:     0x7ffb15f48f76 - wasmer_vm_raise_trap
  18:     0x7ffb15c86836 - Ordinal0
  19:     0x7ffb15c7d3c3 - Ordinal0
  20:     0x7ffb15b4634a - Ordinal0
  21:     0x7ffb15b9aa39 - Ordinal0
  22:     0x7ffb15b59396 - Ordinal0
  23:     0x7ffb15bda5ab - Ordinal0
  24:     0x7ffb15b13479 - Ordinal0
  25:     0x7ff70e1ebc3e - uv_queue_work
  26:     0x7ff70e1d7d4d - uv_poll_stop
  27:     0x7ff70f182060 - v8::internal::compiler::ToString
  28:     0x7ffb89e47034 - BaseThreadInitThunk
  29:     0x7ffb8a5e26a1 - RtlUserThreadStart
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: panic detected] { code: 'GenericFailure' }

Node.js v18.0.0

Input:

// foo.js
const foo = [
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
    1, 1, 1, 1,
];

spack.config.js

const { config } = require("@swc/core/spack");

module.exports = config({
    entry: 'foo.js',
    output: {
        path: __dirname,
        name: 'bar.js',
    },
    module: {},
});
  • @swc/core: 1.3.1
  • @swc/cli: 0.1.57

This might be related to #157 but the error is very generic and this might be a different cause, so I opened this issue.

@Nerixyz Nerixyz closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant