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

ink-use-stdout-dimensions causes seg. fault #11013

Open
ttaylor-st opened this issue May 11, 2024 · 0 comments
Open

ink-use-stdout-dimensions causes seg. fault #11013

ttaylor-st opened this issue May 11, 2024 · 0 comments
Labels
bug Something isn't working crash An issue that could cause a crash

Comments

@ttaylor-st
Copy link

How can we reproduce the crash?

Importing and using the ink-use-stdout-dimensions is enough to cause the crash.

JavaScript/TypeScript code that reproduces the crash?

import useStdoutDimensions from 'ink-use-stdout-dimensions';

export default function App() {
    const [columns, rows] = useStdoutDimensions();
}

Relevant log output

❯ bun start
$ bun src/cli.tsx
============================================================
Bun v1.1.6 (e58d67b4) Linux x64 (baseline)
Args: "bun", "src/cli.tsx"
Features: Bun.stdin(2) transpiler_cache(2) tsconfig
Builtins: "bun:main" "node:assert" "node:buffer" "node:events" "node:fs" "node:fs/promises" "node:module" "node:os" "node:path" "node:process" "node:stream" "node:string_decoder" "node:tty" "node:url" "node:util/types"
Elapsed: 90ms | User: 93ms | Sys: 17ms
RSS: 1.01GB | Peak: 117.30MB | Commit: 1.01GB | Faults: 0

panic(main thread): Segmentation fault at address 0x1A
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.1.6/Ba1e58d67bAkgggwC+ijl+DA2A0B

error: script "start" was terminated by signal SIGILL (Illegal instruction)
[1]    77712 illegal hardware instruction (core dumped)  bun start

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on linux x86_64_baseline [AutoCommand]

Segmentation fault at address 0x00004290

  • ld-temp.o:0: std::experimental::fundamentals_v3::expected<unsigned int, WTF::URLParser::IPv4PieceParsingError>* WTF::Vector<std::experimental::fundamentals_v3::expected<unsigned int, WTF::URLParser::IPv4PieceParsingError>, 4ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>::expandCapacity<(...)0>
@ttaylor-st ttaylor-st added bug Something isn't working crash An issue that could cause a crash labels May 11, 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 crash An issue that could cause a crash
Projects
None yet
Development

No branches or pull requests

1 participant