Closed
Description
I'm running pytest with quite long list of pytest extensions so some of those errors and warnings are results of using those extensions so as you are using tox which is causing that pytest is executet in env of only exacxt modules you may never see output like below.
It would be good to review what pytest shows in such env
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Using --randomly-seed=2682854423
rootdir: /home/tkloczko/rpmbuild/BUILD/Pillow-8.2.0, configfile: setup.cfg, testpaths: Tests
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, randomly-3.8.0, pyfakefs-4.5.0, hypothesis-6.13.14
collected 2699 items / 1 skipped / 2698 selected
Tests/test_pdfparser.py .... [ 0%]
Tests/test_image_getpalette.py . [ 0%]
Tests/test_imagesequence.py ........ [ 0%]
Tests/test_image_quantize.py ........ [ 0%]
Tests/test_000_sanity.py . [ 0%]
Tests/test_file_eps.py F.F.FFFF..FF.F.FF [ 1%]
Tests/test_image_load.py ..... [ 1%]
Tests/test_file_pixar.py .. [ 1%]
Tests/test_file_pdf.py ............. [ 2%]
Tests/test_image_copy.py .. [ 2%]
Tests/test_file_wmf.py ..... [ 2%]
Tests/test_file_container.py .......... [ 2%]
Tests/test_image_getcolors.py .. [ 2%]
Tests/test_image_tobytes.py . [ 2%]
Tests/test_file_palm.py .x.. [ 3%]
Tests/test_map.py ... [ 3%]
Tests/test_color_lut.py .......................... [ 4%]
Tests/test_file_tar.py .... [ 4%]
Tests/test_image_crop.py ...... [ 4%]
Tests/test_qt_image_qapplication.py s [ 4%]
Tests/test_image_thumbnail.py ........ [ 4%]
Tests/test_file_dcx.py ......... [ 5%]
Tests/test_imagefont.py ............................................................................................................................................ [ 10%]
................. [ 11%]
Tests/test_image_getprojection.py . [ 11%]
Tests/test_file_sgi.py .......... [ 11%]
Tests/test_file_libtiff.py ................................................................. [ 13%]
Tests/test_image_entropy.py . [ 13%]
Tests/test_binary.py ... [ 13%]
Tests/test_image_rotate.py .............. [ 14%]
Tests/test_image_point.py .... [ 14%]
Tests/test_file_im.py ............ [ 15%]
Tests/test_lib_pack.py .................................... [ 16%]
Tests/test_file_webp.py ............. [ 16%]
Tests/test_file_blp.py .......... [ 17%]
Tests/test_file_ppm.py ....... [ 17%]
Tests/test_image_getim.py . [ 17%]
Tests/test_imagepalette.py ........... [ 17%]
Tests/test_file_mpo.py .................. [ 18%]
Tests/test_file_webp_alpha.py .... [ 18%]
Tests/test_file_tiff.py s......................................s................ [ 20%]
Tests/test_file_fli.py ............ [ 21%]
Tests/test_file_webp_animated.py ...... [ 21%]
Tests/test_main.py . [ 21%]
Tests/test_file_apng.py .................... [ 22%]
Tests/test_core_resources.py .............. [ 22%]
Tests/test_imagedraw2.py ................ [ 23%]
Tests/test_file_ico.py ......... [ 23%]
Tests/test_image_putdata.py ....... [ 24%]
Tests/test_file_jpeg2k.py ............................. [ 25%]
Tests/test_image_convert.py ................ [ 25%]
Tests/test_image_filter.py ......... [ 26%]
Tests/test_imagegrab.py ss.sss. [ 26%]
Tests/test_file_sun.py .s. [ 26%]
Tests/test_image_reduce.py ............ [ 26%]
Tests/test_image_access.py .............................s... [ 28%]
Tests/test_file_jpeg.py s............................................................. [ 30%]
Tests/test_file_psd.py ................. [ 30%]
Tests/test_lib_image.py . [ 31%]
Tests/test_imageops_usm.py ..... [ 31%]
Tests/test_tiff_crashes.py ....s......s... [ 31%]
Tests/test_image_fromqimage.py sssss [ 31%]
Tests/test_image_putalpha.py ... [ 32%]
Tests/test_imagecms.py ............................ [ 33%]
Tests/test_imageops.py ................... [ 33%]
Tests/test_file_png.py ................................................. [ 35%]
Tests/test_imageenhance.py ... [ 35%]
Tests/test_image_getextrema.py .. [ 35%]
Tests/test_imagecolor.py .... [ 35%]
Tests/test_decompression_bomb.py .....xF.. [ 36%]
Tests/test_imagemath.py ...................... [ 37%]
Tests/test_image_frombytes.py . [ 37%]
Tests/test_font_leaks.py .. [ 37%]
Tests/test_image_histogram.py . [ 37%]
Tests/test_file_pcd.py . [ 37%]
Tests/test_file_xvthumb.py ... [ 37%]
Tests/test_image.py ................................................................... [ 39%]
Tests/test_imagemorph.py .................. [ 40%]
Tests/test_image_split.py ... [ 40%]
Tests/test_file_dds.py .............. [ 41%]
Tests/test_file_msp.py .s....s [ 41%]
Tests/test_file_gribstub.py .... [ 41%]
Tests/test_file_icns.py s.s.....s. [ 41%]
Tests/test_imagefontctl.py .......................................s.....s.................................. [ 44%]
Tests/test_imagefile.py ..........F...... [ 45%]
Tests/test_locale.py . [ 45%]
Tests/test_image_array.py .. [ 45%]
Tests/test_numpy.py ............. [ 46%]
Tests/test_imagestat.py ... [ 46%]
Tests/test_file_gimppalette.py .. [ 46%]
Tests/test_image_transpose.py ........ [ 46%]
Tests/test_image_resample.py ...............................x.x.. [ 47%]
Tests/test_file_hdf5stub.py .... [ 48%]
Tests/test_font_pcf.py ..... [ 48%]
Tests/test_imageqt.py sss [ 48%]
Tests/test_file_fitsstub.py .... [ 48%]
Tests/test_image_mode.py .. [ 48%]
Tests/test_image_resize.py ............... [ 49%]
Tests/test_format_lab.py ... [ 49%]
Tests/test_format_hsv.py .... [ 49%]
Tests/test_features.py .............. [ 49%]
Tests/test_imagetk.py ssss [ 50%]
Tests/test_file_mcidas.py .. [ 50%]
Tests/test_image_transform.py ....................................... [ 51%]
Tests/test_file_cur.py .. [ 51%]
Tests/test_pickle.py ............... [ 52%]
Tests/test_imagepath.py ........... [ 52%]
Tests/test_file_xbm.py ..... [ 52%]
Tests/test_font_bdf.py .. [ 52%]
Tests/test_shell_injection.py .... [ 53%]
Tests/test_box_blur.py .............. [ 53%]
Tests/test_imagechops.py .............................. [ 54%]
Tests/test_file_bufrstub.py .... [ 54%]
Tests/test_file_webp_lossless.py . [ 54%]
Tests/test_file_bmp.py ........... [ 55%]
Tests/test_image_putpalette.py ... [ 55%]
Tests/test_psdraw.py .. [ 55%]
Tests/test_file_iptc.py ..... [ 55%]
Tests/test_file_gd.py ... [ 55%]
Tests/test_file_libtiff_small.py ... [ 55%]
Tests/test_image_tobitmap.py . [ 55%]
Tests/test_file_xpm.py ... [ 56%]
Tests/test_file_gbr.py ... [ 56%]
Tests/test_file_gimpgradient.py .......... [ 56%]
Tests/test_util.py ...... [ 56%]
Tests/test_imagedraw.py ........................s........................................................................ [ 60%]
Tests/test_imageshow.py ......ss [ 60%]
Tests/test_image_getbands.py . [ 60%]
Tests/test_file_tiff_metadata.py ................. [ 61%]
Tests/test_tiff_ifdrational.py .... [ 61%]
Tests/oss-fuzz/test_fuzzers.py ............................................................................F............................................F........... [ 66%]
.....................................................................................F.............................................................................. [ 72%]
....................................................................................................................F............................................... [ 78%]
........F.....................................................................................................................F..................................... [ 84%]
...........F.................................................F.....................................F................................................................ [ 90%]
..............................................................F........................... [ 93%]
Tests/test_image_paste.py ........... [ 94%]
Tests/test_file_mic.py ...... [ 94%]
Tests/test_file_pcx.py ............. [ 95%]
Tests/test_image_draft.py ... [ 95%]
Tests/test_mode_i16.py ... [ 95%]
Tests/test_file_webp_metadata.py ....... [ 95%]
Tests/test_font_pcf_charsets.py ......... [ 95%]
Tests/test_file_tga.py ......... [ 96%]
Tests/test_file_ftex.py .. [ 96%]
Tests/test_imagewin.py ...sssss [ 96%]
Tests/test_qt_image_toqimage.py s [ 96%]
Tests/test_file_spider.py ................ [ 97%]
Tests/test_image_getbbox.py .. [ 97%]
Tests/test_sgi_crash.py FFFFFFFFFFF [ 97%]
Tests/test_file_fpx.py .. [ 97%]
Tests/test_image_getdata.py .. [ 97%]
Tests/test_file_gif.py .................................................... [ 99%]
Tests/test_bmp_reference.py ... [ 99%]
Tests/test_file_wal.py . [ 99%]
Tests/test_webp_leaks.py . [100%]
================================================================================= FAILURES =================================================================================
_______________________________________________________________________________ test_resize ________________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_resize():
files = [FILE1, FILE2, "Tests/images/illu10_preview.eps"]
for fn in files:
with Image.open(fn) as im:
new_size = (100, 100)
> im = im.resize(new_size)
Tests/test_file_eps.py:183:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmppjwkfzto', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_emptyline ______________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_emptyline():
# Test file includes an empty line in the header data
emptyline_file = "Tests/images/zero_bb_emptyline.eps"
with Image.open(emptyline_file) as image:
> image.load()
Tests/test_file_eps.py:263:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpcyk4b1rw', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb_emptyline.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale1 ____________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
@skip_unless_feature("zlib")
def test_render_scale1():
# We need png support for these render test
# Zero bounding box
with Image.open(FILE1) as image1_scale1:
> image1_scale1.load()
Tests/test_file_eps.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwo_dpkek', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_thumbnail ______________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_thumbnail():
# Issue #619
# Arrange
files = [FILE1, FILE2]
for fn in files:
with Image.open(FILE1) as im:
new_size = (100, 100)
> im.thumbnail(new_size)
Tests/test_file_eps.py:195:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2344: in thumbnail
im = self.resize(size, resample, box=box, reducing_gap=reducing_gap)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:1924: in resize
self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmptc9v1ama', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_______________________________________________________________________________ test_sanity ________________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_sanity():
# Regular scale
with Image.open(FILE1) as image1:
> image1.load()
Tests/test_file_eps.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpn_h7anqz', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________________________ test_bytesio_object ____________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_bytesio_object():
with open(FILE1, "rb") as f:
img_bytes = io.BytesIO(f.read())
with Image.open(img_bytes) as img:
> img.load()
Tests/test_file_eps.py:118:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmprmpt993w', '-c', '0 0 translate', '-f', '/tmp/tmp2l5z5mdn', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_render_scale2 ____________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
@skip_unless_feature("zlib")
def test_render_scale2():
# We need png support for these render test
# Zero bounding box
with Image.open(FILE1) as image1_scale2:
> image1_scale2.load(scale=2)
Tests/test_file_eps.py:162:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpg_2trb9y', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________________________ test_file_object _____________________________________________________________________________
tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-10/test_file_object0')
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_file_object(tmp_path):
# issue 479
with Image.open(FILE1) as image1:
with open(str(tmp_path / "temp.eps"), "wb") as fh:
> image1.save(fh, "EPS")
Tests/test_file_eps.py:101:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp9ltm9q13', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________________________ test_iobase_object ____________________________________________________________________________
tmp_path = PosixPath('/tmp/pytest-of-tkloczko/pytest-10/test_iobase_object0')
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_iobase_object(tmp_path):
# issue 479
with Image.open(FILE1) as image1:
with open(str(tmp_path / "temp_iobase.eps"), "wb") as fh:
> image1.save(fh, "EPS")
Tests/test_file_eps.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2138: in save
self._ensure_mutable()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:619: in _ensure_mutable
self._copy()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:612: in _copy
self.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpijsgikw1', '-c', '0 0 translate', '-f', 'Tests/images/zero_bb.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________________________ test_showpage _______________________________________________________________________________
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_showpage():
# See https://github.com/python-pillow/Pillow/issues/2615
with Image.open("Tests/images/reqd_showpage.eps") as plot_image:
with Image.open("Tests/images/reqd_showpage.png") as target:
# should not crash/hang
> plot_image.load()
Tests/test_file_eps.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp6vm2xvxh', '-c', '0 0 translate', '-f', 'Tests/images/reqd_showpage.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________________________ test_cmyk _________________________________________________________________________________
@pytest.mark.valgrind_known_error(reason="Known Failing")
@pytest.mark.skipif(not HAS_GHOSTSCRIPT, reason="Ghostscript not available")
def test_cmyk():
with Image.open("Tests/images/pil_sample_cmyk.eps") as cmyk_image:
assert cmyk_image.mode == "CMYK"
assert cmyk_image.size == (100, 100)
assert cmyk_image.format == "EPS"
> cmyk_image.load()
Tests/test_file_eps.py:76:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpp79u2cv9', '-c', '0 0 translate', '-f', 'Tests/images/pil_sample_cmyk.eps', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_________________________________________________________________ TestDecompressionBomb.test_exception_gif _________________________________________________________________
self = <Tests.test_decompression_bomb.TestDecompressionBomb object at 0x7fb6916bc580>
def test_exception_gif(self):
with pytest.raises(Image.DecompressionBombError):
with Image.open("Tests/images/decompression_bomb.gif"):
> pass
E Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>
Tests/test_decompression_bomb.py:64: Failed
________________________________________________________________________ TestImageFile.test_parser _________________________________________________________________________
self = <Tests.test_imagefile.TestImageFile object at 0x7fb6a2182250>
def test_parser(self):
def roundtrip(format):
im = hopper("L").resize((1000, 1000), Image.NEAREST)
if format in ("MSP", "XBM"):
im = im.convert("1")
test_file = BytesIO()
im.copy().save(test_file, format)
data = test_file.getvalue()
parser = ImageFile.Parser()
parser.feed(data)
imOut = parser.close()
return im, imOut
assert_image_equal(*roundtrip("BMP"))
im1, im2 = roundtrip("GIF")
assert_image_similar(im1.convert("P"), im2, 1)
assert_image_equal(*roundtrip("IM"))
assert_image_equal(*roundtrip("MSP"))
if features.check("zlib"):
try:
# force multiple blocks in PNG driver
ImageFile.MAXBLOCK = 8192
assert_image_equal(*roundtrip("PNG"))
finally:
ImageFile.MAXBLOCK = MAXBLOCK
assert_image_equal(*roundtrip("PPM"))
assert_image_equal(*roundtrip("TIFF"))
assert_image_equal(*roundtrip("XBM"))
assert_image_equal(*roundtrip("TGA"))
assert_image_equal(*roundtrip("PCX"))
if EpsImagePlugin.has_ghostscript():
> im1, im2 = roundtrip("EPS")
Tests/test_imagefile.py:61:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/test_imagefile.py:38: in roundtrip
imOut = parser.close()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/ImageFile.py:471: in close
self.image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpqlar97to', '-c', '0 0 translate', '-f', '/tmp/tmpdykuv0tq', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/illuCS6_no_preview.eps] ___________________________________________________________
path = b'Tests/images/illuCS6_no_preview.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmps0rafxdz', '-c', '0 0 translate', '-f', '/tmp/tmp7i__jms9', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/pil_sample_cmyk.eps] ____________________________________________________________
path = b'Tests/images/pil_sample_cmyk.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3_0amwp1', '-c', '0 0 translate', '-f', '/tmp/tmpbxjanzeq', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/illu10_no_preview.eps] ___________________________________________________________
path = b'Tests/images/illu10_no_preview.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmphbj9tfzo', '-c', '0 0 translate', '-f', '/tmp/tmpycc2bul6', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
___________________________________________________________ test_fuzz_images[Tests/images/zero_bb_emptyline.eps] ___________________________________________________________
path = b'Tests/images/zero_bb_emptyline.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmp3pfjgvax', '-c', '0 0 translate', '-f', '/tmp/tmpzrebstkc', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
______________________________________________________________ test_fuzz_images[Tests/images/non_zero_bb.eps] ______________________________________________________________
path = b'Tests/images/non_zero_bb.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpnfttxor6', '-c', '-50 -50 translate', '-f', '/tmp/tmp4s7d8j_y', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_____________________________________________________________ test_fuzz_images[Tests/images/reqd_showpage.eps] _____________________________________________________________
path = b'Tests/images/reqd_showpage.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwjh7zr1h', '-c', '0 0 translate', '-f', '/tmp/tmpetefyd8b', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
________________________________________________________________ test_fuzz_images[Tests/images/zero_bb.eps] ________________________________________________________________
path = b'Tests/images/zero_bb.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpwbyat028', '-c', '0 0 translate', '-f', '/tmp/tmpv_eizq6i', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
__________________________________________________________ test_fuzz_images[Tests/images/binary_preview_map.eps] ___________________________________________________________
path = b'Tests/images/binary_preview_map.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpzfbk929b', '-c', '0 0 translate', '-f', '/tmp/tmp6p_eu2ve', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illuCS6_preview.eps] ____________________________________________________________
path = b'Tests/images/illuCS6_preview.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpskkgtdft', '-c', '0 0 translate', '-f', '/tmp/tmp81u1r7bl', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
____________________________________________________________ test_fuzz_images[Tests/images/illu10_preview.eps] _____________________________________________________________
path = b'Tests/images/illu10_preview.eps'
@pytest.mark.parametrize(
"path",
subprocess.check_output("find Tests/images -type f", shell=True).split(b"\n"),
)
def test_fuzz_images(path):
fuzzers.enable_decompressionbomb_error()
try:
with open(path, "rb") as f:
> fuzzers.fuzz_image(f.read())
Tests/oss-fuzz/test_fuzzers.py:21:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/oss-fuzz/fuzzers.py:17: in fuzz_image
im.rotate(45)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2093: in rotate
return self.transform((w, h), AFFINE, matrix, resample, fillcolor=fillcolor)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2434: in transform
im.__transformer(
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2504: in __transformer
image.load()
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:332: in load
self.im = Ghostscript(self.tile, self.size, self.fp, scale)
../../BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/EpsImagePlugin.py:143: in Ghostscript
subprocess.check_call(command, startupinfo=startupinfo)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
popenargs = (['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...],), kwargs = {'startupinfo': None}, retcode = 1
cmd = ['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', ...]
def check_call(*popenargs, **kwargs):
"""Run command with arguments. Wait for command to complete. If
the exit code was zero then return, otherwise raise
CalledProcessError. The CalledProcessError object will have the
return code in the returncode attribute.
The arguments are the same as for the call function. Example:
check_call(["ls", "-l"])
"""
retcode = call(*popenargs, **kwargs)
if retcode:
cmd = kwargs.get("args")
if cmd is None:
cmd = popenargs[0]
> raise CalledProcessError(retcode, cmd)
E subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', '-sDEVICE=ppmraw', '-sOutputFile=/tmp/tmpt4yf6kj9', '-c', '0 0 translate', '-f', '/tmp/tmp1rbsr5sk', '-c', 'showpage']' returned non-zero exit status 1.
/usr/lib64/python3.8/subprocess.py:364: CalledProcessError
--------------------------------------------------------------------------- Captured stdout call ---------------------------------------------------------------------------
While reading gs_ll3.ps:
Error: /undefinedfilename in --resourceforall--
Operand stack:
(gs_icc.ps\000gs_mex_e.ps\000gs_mro_e.ps\000gs_pdf_e.ps\000gs_wan_e.ps\000pdf_ops.ps\000pdf_rbld.ps\000pdf_base.ps\000pdf_draw.ps\000gs_cff.ps\000gs_mgl_e.ps\000gs_ttf.ps\000pdf_font.ps\000pdf_main.ps\000pdf_sec.ps\000gs_epsf.ps\000gs_pdfwr.ps) (gs_ll3.ps) 1 --nostringval-- --nostringval-- 9 --nostringval-- 37 (%{datadir}/fonts/urw-base35/IdiomSet/*) --nostringval-- (/usr/share/ghostscript/Resource/ProcSet/CIDInit\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
%interp_exit --nostringval-- resourceforall %loop_continue resourceforall resourceforall resourceforall false 1 %stopped_push --nostringval-- 1902 7 5 %oparray_pop resourceforall resourceforall 10 2 13 resourceforall %for_pos_int_continue resourceforall
Dictionary stack:
--dict:943/1123(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:943/1123(G)-- --dict:38/43(G)-- --dict:16/18(ro)(G)--
Current allocation mode is global
Last OS error: No such file or directory
Current file position is 18941
_________________________________________________________________ test_crashes[Tests/images/sgi_crash.bin] _________________________________________________________________
test_file = 'Tests/images/sgi_crash.bin'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi] _______________________________________________
test_file = 'Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi] _______________________________________________
test_file = 'Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
_________________________________________________________ test_crashes[Tests/images/sgi_overrun_expandrowF04.bin] __________________________________________________________
test_file = 'Tests/images/sgi_overrun_expandrowF04.bin'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
_________________________________________________________ test_crashes[Tests/images/ossfuzz-5730089102868480.sgi] __________________________________________________________
test_file = 'Tests/images/ossfuzz-5730089102868480.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi] _______________________________________________
test_file = 'Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi] _______________________________________________
test_file = 'Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi] _______________________________________________
test_file = 'Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi] _______________________________________________
test_file = 'Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi] _______________________________________________
test_file = 'Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
______________________________________________ test_crashes[Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi] _______________________________________________
test_file = 'Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi'
@pytest.mark.parametrize(
"test_file",
[
"Tests/images/sgi_overrun_expandrowF04.bin",
"Tests/images/sgi_crash.bin",
"Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi",
"Tests/images/ossfuzz-5730089102868480.sgi",
"Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi",
"Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi",
"Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi",
"Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi",
"Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi",
"Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi",
"Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi",
],
)
def test_crashes(test_file):
with open(test_file, "rb") as f:
im = Image.open(f)
with pytest.raises(OSError):
> im.load()
E Failed: DID NOT RAISE <class 'OSError'>
Tests/test_sgi_crash.py:27: Failed
============================================================================= warnings summary =============================================================================
Tests/test_map.py::test_tobytes
/home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2855: DecompressionBombWarning: Image size (151587072 pixels) exceeds limit of 89478485 pixels, could be decompression bomb DOS attack.
warnings.warn(
Tests/test_tiff_crashes.py: 11 warnings
/home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/TiffImagePlugin.py:793: UserWarning: Truncated File Read
warnings.warn(str(msg))
Tests/test_decompression_bomb.py::TestDecompressionBomb::test_no_warning_small_file
/home/tkloczko/rpmbuild/BUILDROOT/python-pillow-8.2.0-4.fc35.x86_64/usr/lib64/python3.8/site-packages/PIL/Image.py:2855: DecompressionBombWarning: Image size (16384 pixels) exceeds limit of 16383 pixels, could be decompression bomb DOS attack.
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [1] Tests/test_pyroma.py:5: Pyroma not installed
SKIPPED [1] Tests/test_qt_image_qapplication.py:50: Qt bindings are not installed
SKIPPED [1] Tests/test_file_tiff.py:635: Windows only
SKIPPED [1] Tests/test_file_tiff.py:621: Extra image files not installed
SKIPPED [1] Tests/test_imagegrab.py:39: tests missing XCB
SKIPPED [1] Tests/test_imagegrab.py:77: Windows only
SKIPPED [1] Tests/test_imagegrab.py:37: X connection failed: error 5
SKIPPED [1] Tests/test_imagegrab.py:87: Windows only
SKIPPED [1] Tests/test_imagegrab.py:13: requires Windows or macOS
SKIPPED [1] Tests/test_file_sun.py:35: Extra image files not installed
SKIPPED [1] Tests/test_image_access.py:380: Failing on AppVeyor / GitHub Actions when run from subprocess, not from shell
SKIPPED [1] Tests/test_file_jpeg.py:819: Windows only
SKIPPED [2] Tests/test_tiff_crashes.py:49: test image not found
SKIPPED [1] Tests/test_image_fromqimage.py:48: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:38: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:58: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:43: Qt bindings are not installed
SKIPPED [1] Tests/test_image_fromqimage.py:53: Qt bindings are not installed
SKIPPED [1] Tests/test_file_msp.py:58: Extra image files not installed
SKIPPED [1] Tests/test_file_msp.py:72: Even More Extra image files not installed
SKIPPED [1] Tests/test_file_icns.py:44: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:31: Requires macOS
SKIPPED [1] Tests/test_file_icns.py:60: Requires macOS
SKIPPED [2] Tests/test_imagefontctl.py:238: fails with this font
SKIPPED [1] Tests/test_imageqt.py:44: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:15: Qt bindings are not installed
SKIPPED [1] Tests/test_imageqt.py:49: Qt bindings are not installed
SKIPPED [4] Tests/test_imagetk.py:30: TCL Error: no display name and no $DISPLAY environment variable
SKIPPED [1] Tests/test_imagedraw.py:921: failing
SKIPPED [1] Tests/test_imageshow.py:44: Only run on CIs; hangs on Windows CIs
SKIPPED [1] Tests/test_imageshow.py:72: IPython not installed
SKIPPED [1] Tests/test_imagewin.py:58: Windows only
SKIPPED [1] Tests/test_imagewin.py:72: Windows only
SKIPPED [1] Tests/test_imagewin.py:87: Windows only
SKIPPED [1] Tests/test_imagewin.py:37: Windows only
SKIPPED [1] Tests/test_imagewin.py:47: Windows only
SKIPPED [1] Tests/test_qt_image_toqimage.py:15: Qt bindings are not installed
XFAIL Tests/test_file_palm.py::test_p_mode
Palm P image is wrong
XFAIL Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_ico
different exception
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_la
Current implementation isn't precise enough
XFAIL Tests/test_image_resample.py::TestCoreResampleAlphaCorrect::test_levels_rgba
Current implementation isn't precise enough
FAILED Tests/test_file_eps.py::test_resize - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_emptyline - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_file_eps.py::test_render_scale1 - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_thumbnail - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAF...
FAILED Tests/test_file_eps.py::test_sanity - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER'...
FAILED Tests/test_file_eps.py::test_bytesio_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '...
FAILED Tests/test_file_eps.py::test_render_scale2 - subprocess.CalledProcessError: Command '['gs', '-q', '-g920x704', '-r144.000000x144.000000', '-dBATCH', '-dNOPAUSE', ...
FAILED Tests/test_file_eps.py::test_file_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dS...
FAILED Tests/test_file_eps.py::test_iobase_object - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-...
FAILED Tests/test_file_eps.py::test_showpage - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFE...
FAILED Tests/test_file_eps.py::test_cmyk - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.000000x72.000000', '-dBATCH', '-dNOPAUSE', '-dSAFER', ...
FAILED Tests/test_decompression_bomb.py::TestDecompressionBomb::test_exception_gif - Failed: DID NOT RAISE <class 'PIL.Image.DecompressionBombError'>
FAILED Tests/test_imagefile.py::TestImageFile::test_parser - subprocess.CalledProcessError: Command '['gs', '-q', '-g1000x1000', '-r72.000000x72.000000', '-dBATCH', '-dN...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/pil_sample_cmyk.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g100x100', '-r72.00000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_no_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb_emptyline.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/non_zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g360x252', '-r72.000000x72...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/reqd_showpage.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g553x475', '-r72.000000x...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/zero_bb.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g460x352', '-r72.000000x72.000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/binary_preview_map.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g399x480', '-r72.00...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illuCS6_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.0000...
FAILED Tests/oss-fuzz/test_fuzzers.py::test_fuzz_images[Tests/images/illu10_preview.eps] - subprocess.CalledProcessError: Command '['gs', '-q', '-g403x2448', '-r72.00000...
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_crash.bin] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-465703f71a0f0094873a3e0e82c9f798161171b8.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-abcf1c97b8fe42a6c68f1fb0b978530c98d57ced.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/sgi_overrun_expandrowF04.bin] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/ossfuzz-5730089102868480.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-b82e64d4f3f76d7465b6af535283029eda211259.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-db8bfa78b19721225425530c5946217720d7df4e.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-c1b2595b8b0b92cc5f38b6635e98e3a119ade807.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-754d9c7ec485ffb76a90eeaab191ef69a2a3a3cd.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-6b7f2244da6d0ae297ee0754a424213444e92778.sgi] - Failed: DID NOT RAISE <class 'OSError'>
FAILED Tests/test_sgi_crash.py::test_crashes[Tests/images/crash-64834657ee604b8797bf99eac6a194c124a9a8ba.sgi] - Failed: DID NOT RAISE <class 'OSError'>
============================================= 34 failed, 2620 passed, 42 skipped, 4 xfailed, 13 warnings in 126.90s (0:02:06) ==============================================