Open 524c opened 7 months ago
If you download the bun-profile build from /releases/canary, and open lldb bun-profile
, then run install
and once it crashes bt all
that would be very helpful
Can you also paste the package.json in use?
I ran the profile, but I received this message: (No prompt/message for approval appeared)
❯ lldb bun-profile
(lldb) target create "bun-profile"
Current executable set to '/usr/local/bin/bun-profile' (arm64).
(lldb) run install
[0.08ms] ".env.production", ".env"
error: process exited with status -1 (attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries, when the attach failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.))
Anyway, I found something that might be useful in Console.app that I send as an attachment. bun-2023-12-15-092626.ips
I renamed the log from .ips to .ips.txt for github to allow uploading.
{
"name": "@p2p/p2p-labs-dashboard",
"version": "0.20.0",
"description": "p2p labs dashboard",
"packageManager": "yarn@4.0.1",
"author": {
"name": "Rogerio Lucas",
},
"private": true,
"type": "module",
"engines": {
"npm": ">=7.0.0",
"node": ">=18"
},
"license": "PRIVATE",
"scripts": {
"postinstall": "svelte-kit sync",
"dev": "yarn run svelte-kit sync; ./load_envs.sh vite dev --host 0.0.0.0 --port 3000",
"build": "NODE_ENV=production ./load_envs.sh vite build",
"preview": "vite preview --host 0.0.0.0",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"test:integration": "pnpm -r --workspace-concurrency 1 --filter=\"./test/**\" test",
"test:unit": "uvu src \"spec\\.ts\"",
"test": "pnpm run tests",
"typedefs": "npx tsc -p tsconfig.json --noEmit",
"lint": "npx eslint --ignore-path .prettierignore \"./src/**/*.ts\"",
"format": "npx prettier --config .prettierrc.cjs --ignore-path .gitignore --write --plugin-search-dir=. src",
"version": "changeset version",
"release": "pnpm run build && changeset publish",
"prepack": "pinst --disable",
"postpack": "pinst --enable"
},
"devDependencies": {
"@bun-community/sveltekit-adapter-bun": "^0.0.6",
"@playwright/test": "^1.40.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/svelte": "^4.0.5",
"@testing-library/user-event": "^14.5.1",
"@types/cookie": "^0.6.0",
"@types/jest": "^29.5.11",
"@types/js-yaml": "^4.0.9",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitest/ui": "^1.0.4",
"autoprefixer": "^10.4.16",
"cross-env": "^7.0.3",
"eslint": "^8.55.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-svelte3": "^4.0.0",
"expect": "^29.7.0",
"jest": "^29.7.0",
"jsdom": "^23.0.1",
"mocha": "^10.2.0",
"playwright": "^1.40.1",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"snowpack": "^3.8.8",
"svelte-preprocess": "^5.1.2",
"tailwindcss": "^3.3.6",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"turbo": "^1.11.2",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.2",
"util": "^0.12.5",
"uvu": "^0.5.6",
"vite": "^5.0.8",
"vite-imagetools": "^6.2.7",
"vite-plugin-node-stdlib-browser": "^0.2.1",
"vite-plugin-tailwind-purgecss": "^0.1.4",
"vitest": "^1.0.4",
"yarn-upgrade-all": "^0.7.2"
},
"dependencies": {
"@524c/jsutils": "^1.0.0",
"@auth/core": "^0.18.6",
"@auth/sveltekit": "^0.4.0",
"@floating-ui/dom": "^1.5.3",
"@hapi/bourne": "^3.0.0",
"@iconify-json/bx": "^1.1.10",
"@iconify-json/carbon": "^1.1.26",
"@iconify-json/logos": "^1.1.41",
"@iconify-json/mdi": "^1.1.62",
"@iconify-json/twemoji": "^1.1.15",
"@iconify/json": "^2.2.157",
"@iconify/svelte": "^3.1.4",
"@iconify/utils": "^2.1.12",
"@popperjs/core": "^2.11.8",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-replace": "^5.0.5",
"@skeletonlabs/skeleton": "^2.6.0",
"@skeletonlabs/tw-plugin": "^0.3.0",
"@sveltejs/adapter-auto": "^2.1.1",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/kit": "^1.30.3",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.10",
"classnames": "^2.3.2",
"csrf": "^3.1.0",
"deepmerge": "^4.3.1",
"devalue": "^4.3.2",
"fsevents": "^2.3.3",
"highlight.js": "^11.9.0",
"husky": "^8.0.3",
"imagetools-core": "^6.0.3",
"ioredis": "^5.3.2",
"jose": "^5.1.3",
"js-yaml": "^4.1.0",
"openid-client": "^5.6.1",
"pino": "^8.17.1",
"pino-pretty": "^10.3.0",
"rollup-plugin-polyfill-node": "^0.13.0",
"socket.io": "^4.7.2",
"socket.io-client": "^4.7.2",
"svelte": "^4.2.8",
"svelte-check": "^3.6.2",
"svelte-french-toast": "^1.2.0",
"svelte-kit": "^1.2.0",
"svelte-popperjs": "^1.3.2",
"svelte-select": "^5.8.1",
"tailwind-merge": "^2.1.0",
"uuid": "^9.0.1",
"write-file-atomic": "^5.0.1",
"yup": "^1.3.2",
"zod": "^3.22.4"
}
}
What version of Bun is running?
1.0.18 macOS ARM64
What platform is your computer?
ARM64
What steps can reproduce the bug?
❯ bun install [0.49ms] ".env.production", ".env" bun install v1.0.18 (36c316a2) 🚚 p-finally [1905/2143] [1] 45304 segmentation fault bun install
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
I use a local npm server called Verdaccio v5.25.0. I configured bun to use my server and then runer bun install. After a while, it aborted with a segmentation fault.
Is there any configuration for bun to generate a core dump, which can be useful for debugging?