oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.82k stars 2.73k forks source link

node(68655) MallocStackLogging: can't turn off malloc stack logging because it was not enabled. #4304

Closed ImBIOS closed 2 months ago

ImBIOS commented 1 year ago

What version of Bun is running?

0.8.0

What platform is your computer?

Darwin 23.0.0 arm64 arm

What steps can reproduce the bug?

I have faced this issue lately when running the Next.js project with the information below. I just ran the dev server and we will see this non-blocking information in the log.

  1. pnpm install
  2. bun run dev

What is the expected behavior?

I don't expect anything, I just want to tell, and may it help this project become better.

What do you see instead?

node(68655) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.

Additional information

Environment:


  System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M2
    Memory: 55.25 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.0 - ~/Library/Caches/fnm_multishells/69640_1692907122175/bin/node
    npm: 8.19.4 - ~/Library/Caches/fnm_multishells/69640_1692907122175/bin/npm
    pnpm: 8.6.12 - ~/Library/pnpm/pnpm
  npmPackages:
    @chakra-ui/anatomy: ^2.1.2 => 2.1.2 
    @chakra-ui/cli: ^2.4.1 => 2.4.1 
    @chakra-ui/icons: ^2.0.17 => 2.0.17 
    @chakra-ui/next-js: ^2.1.4 => 2.1.4 
    @chakra-ui/react: ^2.8.0 => 2.8.0 
    @chakra-ui/stepper: ^2.3.0 => 2.3.0 
    @chakra-ui/theme-tools: ^2.0.17 => 2.0.17 
    @choc-ui/chakra-autocomplete: ^5.1.5 => 5.1.5 
    @emotion/react: ^11.10.5 => 11.10.5 
    @emotion/styled: ^11.10.5 => 11.10.5 
    @fontsource/roboto: ^4.5.8 => 4.5.8 
    @next/env: ^13.4.19 => 13.4.19 
    @playwright/test: ^1.36.2 => 1.36.2 
    @testing-library/jest-dom: ^5.17.0 => 5.17.0 
    @testing-library/react: ^14.0.0 => 14.0.0 
    @types/jest: ^29.5.3 => 29.5.3 
    @types/lodash: ^4.14.197 => 4.14.197 
    @types/node: ^18.14.0 => 18.14.0 
    @types/react: ^18.0.28 => 18.0.28 
    @types/react-dom: ^18.0.11 => 18.0.11 
    @types/react-input-mask: ^3.0.2 => 3.0.2 
    @typescript-eslint/eslint-plugin: ^5.48.0 => 5.48.0 
    @typescript-eslint/parser: ^5.48.0 => 5.48.0 
    @uselessdev/datepicker: ^2.7.0 => 2.7.0 
    chakra-react-select: ^4.5.0 => 4.5.0 
    date-fns: ^2.29.3 => 2.29.3 
    date-fns-tz: ^2.0.0 => 2.0.0 
    eslint: ^8.31.0 => 8.31.0 
    eslint-config-airbnb: ^19.0.4 => 19.0.4 
    eslint-config-airbnb-typescript: ^17.0.0 => 17.0.0 
    eslint-config-next: ^13.1.1 => 13.1.1 
    eslint-config-prettier: ^8.8.0 => 8.8.0 
    eslint-plugin-import: ^2.26.0 => 2.26.0 
    eslint-plugin-import-helpers: ^1.3.1 => 1.3.1 
    eslint-plugin-jsx-a11y: ^6.6.1 => 6.6.1 
    eslint-plugin-react: ^7.31.11 => 7.31.11 
    eslint-plugin-simple-import-sort: ^10.0.0 => 10.0.0 
    framer-motion: ^6.5.1 => 6.5.1 
    husky: ^8.0.3 => 8.0.3 
    jest: ^29.6.2 => 29.6.2 
    jest-environment-jsdom: ^29.6.2 => 29.6.2 
    lint-staged: ^13.2.0 => 13.2.0 
    lodash: ^4.17.21 => 4.17.21 
    next: 13.4.3 => 13.4.3 
    next-auth: ^4.23.1 => 4.23.1 
    react: 18.2.0 => 18.2.0 
    react-dom: 18.2.0 => 18.2.0 
    react-hook-form: ^7.43.3 => 7.43.3 
    react-input-mask: ^2.0.4 => 2.0.4 
    sharp: ^0.31.3 => 0.31.3 
    typescript: ^4.9.5 => 4.9.5 
ImBIOS commented 1 year ago

In bun version 1.0.3 still experiencing this similar log:

- wait compiling /page (client and server)...
- event compiled client and server successfully in 20.2s (4249 modules)
node(47111) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
- wait compiling /(dashboard)/home/page (client and server)...
- event compiled successfully in 9.9s (1910 modules)
node(47156) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
Jarred-Sumner commented 1 year ago

That’s interesting

I don’t know why MallocStackLogging is enabled

github-actions[bot] commented 2 months ago

This issue is stale and may be closed due to inactivity. If you're still running into this, please leave a comment.