<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>39120</bug_id>
          
          <creation_ts>2020-10-23 12:05:18 +0300</creation_ts>
          <short_desc>Unrecoverable error</short_desc>
          <delta_ts>2020-10-26 09:30:32 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>pstotext</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="Nobody&apos;s working on this, feel free to take it">nobody</assigned_to>
          <cc>darktemplar</cc>
    
    <cc>george</cc>
    
    <cc>mike</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>193476</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2020-10-23 12:05:18 +0300</bug_when>
    <thetext>Запуск pstotext завершается ошибкой:

$ pstotext /usr/share/doc/ghostscript-9.28/examples/colorcir.ps
GPL Ghostscript RELEASE CANDIDATE 1 9.28: Unrecoverable error, exit code 1

Запуск в debug режиме:

$ pstotext -debug /usr/share/doc/ghostscript-9.28/examples/colorcir.ps
GPL Ghostscript RELEASE CANDIDATE 1 9.28 (2019-08-15)
Copyright (C) 2019 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.

 *** WARNING - you have selected SAFER, indicating you want Ghostscript
               to execute in a safer environment, but at the same time
               have selected DELAYBIND. Unless you use this option with
               care (and specifically, remember to call .bindnow) it is
               possible that malicious code may be able to evade the
               limited security offered by the SAFER option.

 *** WARNING - you have selected SAFER, indicating you want Ghostscript
               to execute in a safer environment, but at the same time
               have selected WRITESYSTEMDICT. Unless you use this option with
               care and specifically, remember to execute code like:
                      &quot;systemdict readonly pop&quot;
               it is possible that malicious code may be able to evade the
               limited security offered by the SAFER option.
Error: /invalidaccess in --def--
Operand stack:
   pstotextLocalDict   --dict:0/30(L)--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1973   1   3   %oparray_pop   1972   1   3   %oparray_pop   1960   1   3   %oparray_pop   1817   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
GPL Ghostscript RELEASE CANDIDATE 1    --dict:1170/1684(G)--   --dict:0/20(G)--   --dict:76/200(L)--   --dict:1170/1684(G)--
9.28: Unrecoverable error, exit code 1
Current allocation mode is local
Current file position is 6337

$ rpm -q pstotext 
pstotext-1.9-alt3.x86_64

$ rpm -q ghostscript
ghostscript-9.28-alt0.rc1.2.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193521</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2020-10-25 18:38:14 +0300</bug_when>
    <thetext>Боюсь, в GS я ничего не понимаю.  Хорошо бы проверить именно на сизифном 9.53.3 на всякий (если не воспроизведётся -- перевесить на p9).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193525</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2020-10-26 09:30:32 +0300</bug_when>
    <thetext>(Ответ для Michael Shigorin на комментарий #1)
&gt; Боюсь, в GS я ничего не понимаю.  Хорошо бы проверить именно на сизифном
&gt; 9.53.3 на всякий (если не воспроизведётся -- перевесить на p9).

ghostscript-9.53.3 собрали в тот же день, когда я повесил баг.

Проверил, ошибка осталась:

$ pstotext -debug /usr/share/doc/ghostscript-9.53.3/examples/colorcir.ps 
GPL Ghostscript 9.53.3 (2020-10-01)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.

 *** WARNING - you have selected SAFER, indicating you want Ghostscript
               to execute in a safer environment, but at the same time
               have selected DELAYBIND. Unless you use this option with
               care (and specifically, remember to call .bindnow) it is
               possible that malicious code may be able to evade the
               limited security offered by the SAFER option.

 *** WARNING - you have selected SAFER, indicating you want Ghostscript
               to execute in a safer environment, but at the same time
               have selected WRITESYSTEMDICT. Unless you use this option with
               care and specifically, remember to execute code like:
                      &quot;systemdict readonly pop&quot;
               it is possible that malicious code may be able to evade the
               limited security offered by the SAFER option.
Error: /invalidaccess in --def--
Operand stack:
   pstotextLocalDict   --dict:0/30(L)--
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1974   1   3   %oparray_pop   1973   1   3   %oparray_pop   1961   1   3   %oparray_pop   1818   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:1170/1684(G)--   --dict:0/20(G)--   --dict:76/200(L)--   --dict:1170/1684(G)--
GPL Ghostscript Current allocation mode is local
9.53.3Current file position is 6337
: Unrecoverable error, exit code 1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>