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

[module] Crash on importing a non-existent module #222

Closed
absop opened this issue Jan 22, 2024 · 2 comments
Closed

[module] Crash on importing a non-existent module #222

absop opened this issue Jan 22, 2024 · 2 comments

Comments

@absop
Copy link

absop commented Jan 22, 2024

Test Code:

import { stdout } from "process";

Test Result:

$ echo 'import { stdout } from "process";' > test_import.js
$
$ ./qjs --module test_import.js
Segmentation fault (core dumped)
$
@absop
Copy link
Author

absop commented Jan 23, 2024

This issue seems to have been fixed on Linux, but not on Windows. It's strange.

On Windows, qjs.exe does not exit and results in high CPU usage.

@absop
Copy link
Author

absop commented Jan 23, 2024

This issue seems to have been fixed on Linux, but not on Windows. It's strange.

On Windows, qjs.exe does not exit and results in high CPU usage.

My mistake, this has indeed been fixed.

@bellard bellard closed this as completed Jan 24, 2024
chenzd123456 pushed a commit to Micro-Application-Runtime/quickjs that referenced this issue Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants