DiscordBot icon indicating copy to clipboard operation
DiscordBot copied to clipboard

FATAL SIGPIPE - Broken Pipe [openssl]

Open QWERTYUI-del opened this issue 9 months ago • 6 comments

I am on pterodactyl Minecraft: Bedrock Edition server version v1.21.70 PocketMine-MP PM5

I have trid ever plugin by its self but only with your plugin does it crash on startup with Exit code: 141

here is full log: https://mclo.gs/ZJJZBmd

QWERTYUI-del avatar Apr 23 '25 15:04 QWERTYUI-del

Going to extend this issue since it is known for a while now but unable to fix as this seems to be a bug with openssl.

JaxkDev avatar Apr 23 '25 16:04 JaxkDev

Thread 6 "php" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7fffed0006c0 (LWP 229700)]
0x00007ffff711c5ad in __GI___libc_write (nbytes=24, buf=0x7fffe02cddb3, fd=19)
    at ../sysdeps/unix/sysv/linux/write.c:26
warning: 26    ../sysdeps/unix/sysv/linux/write.c: No such file or directory
(gdb) bt
#0  0x00007ffff711c5ad in __GI___libc_write (nbytes=24, buf=0x7fffe02cddb3, 
    fd=19) at ../sysdeps/unix/sysv/linux/write.c:26
#1  __GI___libc_write (fd=19, buf=buf@entry=0x7fffe02cddb3, 
    nbytes=nbytes@entry=24) at ../sysdeps/unix/sysv/linux/write.c:24
#2  0x00007ffff76f0f69 in sock_write (b=0x7fffe01e2dc0, 
    in=0x7fffe02cddb3 "\027\003\003", inl=24) at crypto/bio/bss_sock.c:167
#3  0x00007ffff76e596b in bwrite_conv (bio=<optimised out>, 
    data=<optimised out>, datal=<optimised out>, written=0x7fffecfff360)
    at crypto/bio/bio_meth.c:77
#4  0x00007ffff76e3f46 in bio_write_intern (b=0x7fffe01e2dc0, 
    data=0x7fffe02cddb3, dlen=24, written=written@entry=0x7fffecfff3a0)
    at crypto/bio/bio_lib.c:356
#5  0x00007ffff76e4417 in BIO_write (b=<optimised out>, data=<optimised out>, 
    dlen=<optimised out>) at crypto/bio/bio_lib.c:378
#6  0x00007ffff7b97e64 in tls_retry_write_records (rl=0x7fffe01f0d10)
    at ssl/record/methods/tls_common.c:1925
#7  0x00007ffff7b37a19 in ssl3_dispatch_alert (s=0x7fffe01ee520)
    at ssl/s3_msg.c:128
#8  0x00007ffff7b3633d in ssl3_shutdown (s=0x7fffe01ee520) at ssl/s3_lib.c:4519
#9  0x000055555569b34f in php_openssl_sockop_close (stream=0x7fffe7d89300, 
    close_handle=1)
    at /home/jack/Documents/php/install_data/subdir/php/ext/openssl/xp_ssl.c:2248

JaxkDev avatar Apr 23 '25 16:04 JaxkDev

0x00007ffff711c5ad in __GI___libc_write (nbytes=24, buf=0x7ffff5d7c5e3, fd=9) at ../sysdeps/unix/sysv/linux/write.c:26
warning: 26     ../sysdeps/unix/sysv/linux/write.c: No such file or directory
(gdb) bt
#0  0x00007ffff711c5ad in __GI___libc_write (nbytes=24, buf=0x7ffff5d7c5e3, fd=9) at ../sysdeps/unix/sysv/linux/write.c:26
#1  __GI___libc_write (fd=9, buf=buf@entry=0x7ffff5d7c5e3, nbytes=nbytes@entry=24) at ../sysdeps/unix/sysv/linux/write.c:24
#2  0x00007ffff76e7e69 in sock_write (b=0x7ffff5d6ddf0, in=0x7ffff5d7c5e3 "\027\003\003", inl=24) at crypto/bio/bss_sock.c:167
#3  0x00007ffff76dc86b in bwrite_conv (bio=<optimised out>, data=<optimised out>, datal=<optimised out>, written=0x7fffffff9c50) at crypto/bio/bio_meth.c:75
#4  0x00007ffff76dae36 in bio_write_intern (b=0x7ffff5d6ddf0, data=0x7ffff5d7c5e3, dlen=24, written=written@entry=0x7fffffff9c90) at crypto/bio/bio_lib.c:356
#5  0x00007ffff76db307 in BIO_write (b=<optimised out>, data=<optimised out>, dlen=<optimised out>) at crypto/bio/bio_lib.c:378
#6  0x00007ffff7b9b854 in tls_retry_write_records (rl=0x7ffff5d7b480) at ssl/record/methods/tls_common.c:1899
#7  0x00007ffff7b44ca9 in ssl3_dispatch_alert (s=0x7ffff5d78e00) at ssl/s3_msg.c:128
#8  0x00007ffff7b435cd in ssl3_shutdown (s=0x7ffff5d78e00) at ssl/s3_lib.c:4463
#9  0x000055555569d5ce in php_openssl_sockop_close (stream=0x7fffe7ec6200, close_handle=1)
    at /home/jack/Documents/php/install_data/subdir/php/ext/openssl/xp_ssl.c:2202

...

(gdb) zbacktrace
[0x7ffff6e1b7b0] gc_collect_cycles() [internal function]
[0x7ffff6e1b4c0] pocketmine\GarbageCollectorManager->maybeCollectCycles() phar:///tmp/PocketMine-MP-phar-cache.0/PMMPdVXQIg.tar/src/GarbageCollectorManager.php:89 
[0x7ffff6e1b0e0] pocketmine\MemoryManager->check() phar:///tmp/PocketMine-MP-phar-cache.0/PMMPdVXQIg.tar/src/MemoryManager.php:199 
[0x7ffff6e1a7d0] pocketmine\Server->tick() phar:///tmp/PocketMine-MP-phar-cache.0/PMMPdVXQIg.tar/src/Server.php:1890 
...

JaxkDev avatar Apr 23 '25 16:04 JaxkDev

if you need an thing from me just send a msg

QWERTYUI-del avatar Apr 23 '25 16:04 QWERTYUI-del

For people coming across this, if you can successfully run DiscordBot on Linux please drop your OS specs and PHP version in this issue.

And similarly if you come across this issue, comment your OS and PHP version.

JaxkDev avatar Apr 23 '25 16:04 JaxkDev

debian PM5

QWERTYUI-del avatar Apr 23 '25 16:04 QWERTYUI-del

I'm having the same issue with the same thing. Has any fix been found plugin side? PHP version 7 pterodactyl

Woof9999 avatar May 26 '25 21:05 Woof9999

Hi are there any updates on this?

n00bslayr94 avatar Jul 25 '25 18:07 n00bslayr94

I'm having the same issue with the same thing. Has any fix been found plugin side? PHP version 7 pterodactyl

PHP 7 isn’t supported at all regardless of this issue.

JaxkDev avatar Aug 05 '25 14:08 JaxkDev

Hi are there any updates on this?

No.

Will have to check latest core versions see if its been fixed internally

JaxkDev avatar Aug 05 '25 14:08 JaxkDev

I can no longer reproduce, please try the latest built binaries (>= Build number: 488) and report any issues.

JaxkDev avatar Sep 05 '25 11:09 JaxkDev