oven-sh / bun

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

Bun making error after getting data from REDIS #9124

Open K4leri opened 8 months ago

K4leri commented 8 months ago

What version of Bun is running?

1.0.29+a146856d1

What platform is your computer?

Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Full code Full error reproduce

  1. Start the server with command bun dev;
  2. Make two simple requests;
  3. On first one it should add data to REDIS redis-server --version => Redis server v=7.2.0 sha=00000000:0 malloc=jemalloc-5.3.0 bits=64 build=5314023887780e89
  4. On second one u get data out from redis;
  5. By using redis u get back data to make full path to file(btw it is one of CDNs secure mechanism. Redis keep keys as random values that was sent to client and a path to actual file);
  6. In my prod The client gets the picture but in this rep code postman cant get back picture;
  7. Then error occurs

What is the expected behavior?

After point 6 it should be no error

What do you see instead?

error: script "dev" was terminated by signal SIGSEGV (Address boundary error) Segmentation fault

Additional information

There is no error when libriry redis is installed and was connected redis-server and never use function getPhotoFromRedis in class Caching. Postman in such case easy get back file whithout any errors.

https://github.com/oven-sh/bun/assets/65418952/52191f76-202c-4dd7-aed4-3ca37e507047

Electroid commented 8 months ago

Possibly related to #8448