Skip to content

Instantly share code, notes, and snippets.

@sartak
Created September 28, 2023 01:54
Show Gist options
  • Save sartak/7dc34f270a13316ed2eb3f141a5c5ad7 to your computer and use it in GitHub Desktop.
Save sartak/7dc34f270a13316ed2eb3f141a5c5ad7 to your computer and use it in GitHub Desktop.
bun vite segfault
root@c546e96dead5:/app# bun --revision
1.0.3+25e69c71e70ac8a0a88f9cf15b4057bd7b2a633a
root@c546e96dead5:/app# which node bun
/root/.bun/bin/bun
root@c546e96dead5:/app# gdb `which bun` frontend/core
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /root/.bun/bin/bun...
(No debugging symbols found in /root/.bun/bin/bun)
warning: core file may not match specified executable file.
[New LWP 69]
[New LWP 84]
[New LWP 82]
[New LWP 37]
[New LWP 87]
[New LWP 77]
[New LWP 86]
[New LWP 48]
[New LWP 36]
[New LWP 33]
[New LWP 93]
[New LWP 24]
[New LWP 41]
[New LWP 92]
[New LWP 80]
[New LWP 88]
[New LWP 45]
[New LWP 85]
[New LWP 29]
[New LWP 35]
[New LWP 91]
[New LWP 78]
[New LWP 46]
[New LWP 21]
[New LWP 40]
[New LWP 83]
[New LWP 79]
[New LWP 81]
[New LWP 38]
[New LWP 90]
[New LWP 89]
[New LWP 39]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--c
Core was generated by `node /app/frontend/node_modules/.bin/vite --port 3000 --host --strictPort --no-'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000560769a317c7 in ?? ()
[Current thread is 1 (Thread 0x146cc7dff640 (LWP 69))]
(gdb) bt
#0 0x0000560769a317c7 in ?? ()
#1 0x0000560769a3e0f4 in ?? ()
#2 0x000056076a5fca91 in ?? ()
#3 0x000056076a7b3b94 in ?? ()
#4 0x000056076a5fd1ff in ?? ()
#5 0x0000146d30857b43 in start_thread (arg=<optimized out>)
at ./nptl/pthread_create.c:442
#6 0x0000146d308e8bb4 in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment