Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

FascistDonut's avatar

Artisan giving PHP Overflow errors?

For some reason I suddenly started getting this overflow error when I try to run any artisan commands. I tried rebooting but that didn't seem to make a difference:

php artisan

*** buffer overflow detected ***: php terminated ======= Backtrace: ========= /lib64/libc.so.6(__fortify_fail+0x37)[0x7f4cca3867f7] /lib64/libc.so.6(+0x1006e0)[0x7f4cca3846e0] /lib64/libc.so.6(+0xffb39)[0x7f4cca383b39] /lib64/libc.so.6(_IO_default_xsputn+0xc9)[0x7f4cca2f84a9] /lib64/libc.so.6(_IO_vfprintf+0x64f)[0x7f4cca2c848f] /lib64/libc.so.6(__vsprintf_chk+0x9d)[0x7f4cca383bdd] /lib64/libc.so.6(__sprintf_chk+0x7f)[0x7f4cca383b1f] php[0x403328] php[0x402169] php[0x40171f] /lib64/libc.so.6(__libc_start_main+0xfd)[0x7f4cca2a2d1d] php[0x4011e9] ======= Memory map: ======== 00400000-00404000 r-xp 00000000 b6:5ced1 2490989 /usr/local/bin/php 00604000-00605000 rw-p 00004000 b6:5ced1 2490989 /usr/local/bin/php 00ed8000-00ef9000 rw-p 00000000 00:00 0 [heap] 7f4cca06e000-7f4cca084000 r-xp 00000000 b6:5ced1 786776 /lib64/libgcc_s-4.4.7-20120601.so.1 7f4cca084000-7f4cca283000 ---p 00016000 b6:5ced1 786776 /lib64/libgcc_s-4.4.7-20120601.so.1 7f4cca283000-7f4cca284000 rw-p 00015000 b6:5ced1 786776 /lib64/libgcc_s-4.4.7-20120601.so.1 7f4cca284000-7f4cca40e000 r-xp 00000000 b6:5ced1 786435 /lib64/libc-2.12.so 7f4cca40e000-7f4cca60e000 ---p 0018a000 b6:5ced1 786435 /lib64/libc-2.12.so 7f4cca60e000-7f4cca612000 r--p 0018a000 b6:5ced1 786435 /lib64/libc-2.12.so 7f4cca612000-7f4cca614000 rw-p 0018e000 b6:5ced1 786435 /lib64/libc-2.12.so 7f4cca614000-7f4cca618000 rw-p 00000000 00:00 0 7f4cca618000-7f4cca637000 r-xp 00000000 b6:5ced1 2243295 /usr/lib64/libyaml-0.so.2.0.4 7f4cca637000-7f4cca836000 ---p 0001f000 b6:5ced1 2243295 /usr/lib64/libyaml-0.so.2.0.4 7f4cca836000-7f4cca837000 rw-p 0001e000 b6:5ced1 2243295 /usr/lib64/libyaml-0.so.2.0.4 7f4cca837000-7f4cca857000 r-xp 00000000 b6:5ced1 799153 /lib64/ld-2.12.so 7f4ccaa46000-7f4ccaa49000 rw-p 00000000 00:00 0 7f4ccaa54000-7f4ccaa57000 rw-p 00000000 00:00 0 7f4ccaa57000-7f4ccaa58000 r--p 00020000 b6:5ced1 799153 /lib64/ld-2.12.so 7f4ccaa58000-7f4ccaa59000 rw-p 00021000 b6:5ced1 799153 /lib64/ld-2.12.so 7f4ccaa59000-7f4ccaa5a000 rw-p 00000000 00:00 0 7ffdca481000-7ffdca496000 rw-p 00000000 00:00 0 [stack] 7ffdca52b000-7ffdca52d000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] Aborted

Anybody have any clue about what I did or how to fix it?

0 likes
5 replies
Lars-Janssen's avatar

Try this:

Remove your vendor map then composer install then composer dump autoload.

FascistDonut's avatar

Deleting the vendor folder then running composer install and then composer dump-autoload didn't seem to change anything, unfortunately.

FascistDonut's avatar

A strange thing is that it was just working yesterday when I used it to make a new migration (to add a column to a table in my database) and I don't recall installing or changing anything since then (other than editing my api routes file and a vuejs component)

FascistDonut's avatar

More information:

I cannot run php -v within the project directory without receiving a similar overflow error. However, it will work from ~/.

I tried creating a fresh install in another directory using laravel new projectnameand it crashed out too, with an overflow error.

We upgraded our hosting plan to include an additional 2g of ram, but that didn't seem to help anything. Attempting to run any artisan command causes the overflow error and then services start going down on our webserver.

Absolutely no clue where to go from here to resolve the issue and we have a lot of internal systems that rely on that laravel installation. :/

FascistDonut's avatar

Turned out that something I did made nginx continually run out of memory. Ended up dropping nginx completely and reverting to just Apache, seems to be working fine now.

Please or to participate in this conversation.