frankenphp: Segmentation fault (core dumped) with Imagick (any code, only static frankenphp sapi)
A few of my urls, particularly those generating pdf’s using Html2pdf/TCPDF crash FrankenPHP. I’ll investigate whether this is due to imagick being enabled.
2023/10/12 08:50:45.396 INFO http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
2023/10/12 08:50:45.396 INFO http.log server running {"name": "remaining_auto_https_redirects", "protocols": ["h1", "h2", "h3"]}
2023/10/12 08:50:45.396 INFO autosaved config (load with --resume flag) {"file": "/root/.config/caddy/autosave.json"}
2023/10/12 08:50:45.397 INFO serving initial configuration
2023/10/12 08:50:50.042 INFO http.log.access.log0 handled request {"request": {"remote_ip": "192.168.99.99", "remote_port": "58851", "client_ip": "192.168.99.99", "proto": "HTTP/2.0", "method": "GET", "host": "my.secret.url:3000", "uri": "/_profiler/phpinfo", "headers": {"Referer": ["https://my.secret.url/generate_pdf/3922"], "Accept-Encoding": ["gzip, deflate, br"], "Accept-Language": ["en,de;q=0.9"], "Sec-Ch-Ua": ["\"Chromium\";v=\"118\", \"Google Chrome\";v=\"118\", \"Not=A?Brand\";v=\"99\""], "Sec-Fetch-Mode": ["cors"], "Sec-Fetch-Dest": ["empty"], "Sec-Ch-Ua-Platform": ["\"Windows\""], "Sec-Fetch-Site": ["same-origin"], "Cookie": [], "Accept": ["text/html, application/xhtml+xml"], "Sec-Ch-Ua-Mobile": ["?0"], "User-Agent": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36"]}, "tls": {"resumed": false, "version": 772, "cipher_suite": 4865, "proto": "h2", "server_name": "my.secret.url"}}, "bytes_read": 0, "user_id": "", "duration": 0.45020249, "size": 27250, "status": 200, "resp_headers": {"Alt-Svc": ["h3=\":3000\"; ma=2592000"], "Content-Type": ["text/html; charset=UTF-8"], "Content-Encoding": ["gzip"], "X-Robots-Tag": ["noindex"], "Vary": ["Accept-Encoding"], "Server": ["Caddy"], "X-Powered-By": ["PHP/8.2.11"], "Cache-Control": ["no-cache, private"], "Date": ["Thu, 12 Oct 2023 08:50:50 GMT"]}}
Segmentation fault (core dumped)
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 18 (18 by maintainers)
You can add imagemagick like this:
Then:
docker build -t myimage .anddocker run -v $PWD:/app/public -p 443:443 myimage