### ImageMagick version

7.1.1-15 Q16-HDRI x86_64 98eceff6a:20230729

### Operating system

Linux

### Operating system, version and so on

Debian 11

### Description

Note: ImageMagick is installed by IMEI (on Github).

I am using some pretty long commands to generate multiple formats in one command. I already used this type of commands on my previous server (Debian 10), then I got a new machine with Debian 11 (and maybe a new ImageMagick version I'm not sure).
The problem is that now, some of these commands with big images are causing a server crash. The only solution is to reboot, so it's pretty serious.

### Steps to Reproduce

Here is an example. It's only exporting WebP images because I wanted to test if the optimisations for JPEG and PNG in 7.1.x could be the cause — they are not, it crashes anyways.

The src dir and its two files, plus the (empty) output dir are in the joint zip file.

```
magick convert  -define jpeg:size=2700x1800  './src/a--crash.jpg' \
-profile ./src/sRGB2014.icc -strip \
-write mpr:TMP +delete -respect-parentheses  \( mpr:TMP -resize 1350x900\> -quality 68 +write './output/a--crash-big_2x.webp' \) \
\( mpr:TMP -resize 675x450\> -quality 85 +write './output/a--crash-big.webp' \) \
\( mpr:TMP -resize 600x400\> -quality 68 -define webp:use-sharp-yuv=true +write './output/a--crash-med_2x.webp' \) \
\( mpr:TMP -resize 450x300\> -gravity center -crop 300x300+0+0 +repage -quality 75 -define webp:use-sharp-yuv=true +write './output/a--crash-small_2x.webp' \) \
\( mpr:TMP -resize 300x200\> -quality 85 -define webp:use-sharp-yuv=true +write './output/a--crash-med.webp' \) \
\( mpr:TMP -resize 225x150\> -gravity center -crop 150x150+0+0 +repage -quality 85 -define webp:use-sharp-yuv=true +write './output/a--crash-small.webp' \) \
null:
```

### Images

[Archive.zip](https://github.com/ImageMagick/ImageMagick/files/12554320/Archive.zip)

Crash with long commands using mpr/big images on Debian 11
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Crash with long commands using mpr/big images on Debian 11
Issue date:

--- start body ---
### ImageMagick version

7.1.1-15 Q16-HDRI x86_64 98eceff6a:20230729

### Operating system

Linux

### Operating system, version and so on

Debian 11

### Description

Note: ImageMagick is installed by IMEI (on Github).

I am using some pretty long commands to generate multiple formats in one command. I already used this type of commands on my previous server (Debian 10), then I got a new machine with Debian 11 (and maybe a new ImageMagick version I'm not sure).
The problem is that now, some of these commands with big images are causing a server crash. The only solution is to reboot, so it's pretty serious.

### Steps to Reproduce

Here is an example. It's only exporting WebP images because I wanted to test if the optimisations for JPEG and PNG in 7.1.x could be the cause — they are not, it crashes anyways.

The src dir and its two files, plus the (empty) output dir are in the joint zip file.

```
magick convert  -define jpeg:size=2700x1800  './src/a--crash.jpg' \
-profile ./src/sRGB2014.icc -strip \
-write mpr:TMP +delete -respect-parentheses  \( mpr:TMP -resize 1350x900\> -quality 68 +write './output/a--crash-big_2x.webp' \) \
\( mpr:TMP -resize 675x450\> -quality 85 +write './output/a--crash-big.webp' \) \
\( mpr:TMP -resize 600x400\> -quality 68 -define webp:use-sharp-yuv=true +write './output/a--crash-med_2x.webp' \) \
\( mpr:TMP -resize 450x300\> -gravity center -crop 300x300+0+0 +repage -quality 75 -define webp:use-sharp-yuv=true +write './output/a--crash-small_2x.webp' \) \
\( mpr:TMP -resize 300x200\> -quality 85 -define webp:use-sharp-yuv=true +write './output/a--crash-med.webp' \) \
\( mpr:TMP -resize 225x150\> -gravity center -crop 150x150+0+0 +repage -quality 85 -define webp:use-sharp-yuv=true +write './output/a--crash-small.webp' \) \
null:
```

### Images

[Archive.zip](https://github.com/ImageMagick/ImageMagick/files/12554320/Archive.zip)

--- end body ---
