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

SSH : 1.2 and 1.1.45 crashed , not 1.1.44 #16500

Open
chdenat opened this issue Jan 18, 2025 · 1 comment
Open

SSH : 1.2 and 1.1.45 crashed , not 1.1.44 #16500

chdenat opened this issue Jan 18, 2025 · 1 comment
Labels
crash An issue that could cause a crash linux An issue that occurs on Linux

Comments

@chdenat
Copy link

chdenat commented Jan 18, 2025

How can we reproduce the crash?

Did a rollback after installing 1.1.45.

Bun crashed with my build script (in JS) where I'm using scp2 and ssh2.
Works fine with 1.1.44

Relevant log output

Stack Trace (bun.report)

Bun v1.1.45 (196621f) on linux x86_64 [AutoCommand]

Segmentation fault at address 0x00000010

Features: Bun.stderr, dotenv, jsc, spawn, transpiler_cache, tsconfig, tsconfig

Sentry Issue: BUN-88P

@chdenat chdenat added the crash An issue that could cause a crash label Jan 18, 2025
@github-actions github-actions bot added the linux An issue that occurs on Linux label Jan 18, 2025
@chdenat chdenat changed the title SCP or SSH : 1.1.45 crashes , not 1.1.44 SCP or SSH : 1.2 and 1.1.45 crashed , not 1.1.44 Jan 23, 2025
@chdenat
Copy link
Author

chdenat commented Jan 23, 2025

Same thing in bun 1.2.

Here is the code where bun crashed until 1.1.45.

Never see the "SSH connection established." log, so it fails in the .on()

import { Client as SCP }  from 'scp2'
import { Client as SSH2 } from 'ssh2'

....

   const connection = new SSH2()
            connection.on('ready', async () => {
                console.log('    > SSH connection established.')

                try {
                    await this.unzip(connection)

                    console.log('    > Deploying release...')
                    await this.link(connection)
                    await this.postDeployment(connection)

                }
                catch (error) {
                    console.error(`Error during deployment: ${error}`)
                }
                finally {
                    connection.end()
                }
            }).connect(this.sshConfig)
        }
        catch (error) {
            console.error(`Error: ${error}`)
        }

Here the report in 1.2

Bun v1.2.0 (b0c5a765) Linux x64
WSL Kernel v5.15.123 | glibc v2.39
CPU: sse42 popcnt avx avx2
Args: "bun" "deploy.js" "-s"
Features: Bun.stderr Bun.stdout dotenv jsc spawn(2) transpiler_cache(13) tsconfig 
Builtins: "bun:main" "node:assert" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:path" "node:process" "node:stream" "node:string_decoder" "node:tls" "node:url" "node:util" "node:util/types" "node:zlib" 
Elapsed: 31160ms | User: 9647ms | Sys: 2344ms
RSS: 1.06GB | Peak: 0.22GB | Commit: 1.06GB | Faults: 1

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

https://bun.report/1.2.0/la1b0c5a76A3v/7/7Bo3xxoE+xpR2z5o+Emu6kgF8tqz9Dgmj39D24k39Dgmj39Dm8gv9Duuz88EA2AgB

@chdenat chdenat changed the title SCP or SSH : 1.2 and 1.1.45 crashed , not 1.1.44 SSH : 1.2 and 1.1.45 crashed , not 1.1.44 Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash linux An issue that occurs on Linux
Projects
None yet
Development

No branches or pull requests

1 participant