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

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

    <bug>
          <bug_id>9514</bug_id>
          
          <creation_ts>2006-05-04 18:59:08 +0400</creation_ts>
          <short_desc>проблема с plperl</short_desc>
          <delta_ts>2007-04-17 21:04:20 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>postgresql8.1</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nick S. Grechukh">gns</reporter>
          <assigned_to name="Ivan Fedorov">ns</assigned_to>
          <cc>algor</cc>
    
    <cc>genix</cc>
    
    <cc>misha</cc>
    
    <cc>mithraen</cc>
    
    <cc>thresh</cc>
    
    <cc>vvk</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37827</commentid>
    <comment_count>0</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-05-04 18:59:08 +0400</bug_when>
    <thetext>при попытке create function получаем:
DEBUG:  ProcessUtility
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.

фрагмент серверного лога:

STATEMENT:  CREATE FUNCTION calc_score(bigint) returns bigint language plperl as
$$my $score=$_[0];if ($score &gt; 150) { $score = round($score*(2
050-$score)/2100); } return $score;$$;
DEBUG:  00000: parse tree:
DETAIL:  {QUERY :commandType 5 :querySource 0 :canSetTag true :utilityStmt ?
        :resultRelation 0 :into &lt;&gt; :hasAggs false :hasSubLinks false :rtable &lt;&gt;
        :jointree &lt;&gt; :rowMarks &lt;&gt; :forUpdate false :rowNoWait false :targetList &lt;&gt;
        :groupClause &lt;&gt; :havingQual &lt;&gt; :distinctClause &lt;&gt; :sortClause &lt;&gt;
:limitOffset
        &lt;&gt; :limitCount &lt;&gt; :setOperations &lt;&gt; :resultRelations &lt;&gt;}

LOCATION:  elog_node_display, print.c:86
STATEMENT:  CREATE FUNCTION calc_score(bigint) returns bigint language plperl as
$$my $score=$_[0];if ($score &gt; 150) { $score = round($score*(2
050-$score)/2100); } return $score;$$;
DEBUG:  00000: ProcessUtility
LOCATION:  PortalRunUtility, pquery.c:952
STATEMENT:  CREATE FUNCTION calc_score(bigint) returns bigint language plperl as
$$my $score=$_[0];if ($score &gt; 150) { $score = round($score*(2
050-$score)/2100); } return $score;$$;
Can&apos;t open perl script &quot;-e&quot;: No such file or directory
DEBUG:  00000: reaping dead processes
LOCATION:  reaper, postmaster.c:2111
DEBUG:  00000: server process (PID 16662) was terminated by signal 11
LOCATION:  LogChildExit, postmaster.c:2515
LOG:  00000: server process (PID 16662) was terminated by signal 11
LOCATION:  LogChildExit, postmaster.c:2515
LOG:  00000: terminating any other active server processes
LOCATION:  HandleChildCrash, postmaster.c:2396
DEBUG:  00000: sending SIGQUIT to process 16637
LOCATION:  HandleChildCrash, postmaster.c:2449
DEBUG:  00000: sending SIGQUIT to process 16638
LOCATION:  HandleChildCrash, postmaster.c:2483
LOG:  00000: all server processes terminated; reinitializing
LOCATION:  reaper, postmaster.c:2296
DEBUG:  00000: shmem_exit(0)
LOCATION:  shmem_exit, ipc.c:126
DEBUG:  00000: invoking IpcMemoryCreate(size=22577152)
LOCATION:  CreateSharedMemoryAndSemaphores, ipci.c:99
LOG:  00000: database system was interrupted at 2006-05-04 18:16:45 MSD
LOCATION:  StartupXLOG, xlog.c:4374
LOG:  00000: checkpoint record is at 1/2258ED00
LOCATION:  StartupXLOG, xlog.c:4442
LOG:  00000: redo record is at 1/2258ED00; undo record is at 0/0; shutdown TRUE
LOCATION:  StartupXLOG, xlog.c:4469
LOG:  00000: next transaction ID: 9882117; next OID: 23815241
LOCATION:  StartupXLOG, xlog.c:4472
LOG:  00000: next MultiXactId: 1; next MultiXactOffset: 0
LOCATION:  StartupXLOG, xlog.c:4475
LOG:  00000: database system was not properly shut down; automatic recovery in
progress
LOCATION:  StartupXLOG, xlog.c:4532</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37864</commentid>
    <comment_count>1</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-05-07 13:01:07 +0400</bug_when>
    <thetext>вскрытие показало, что на только 7.4, но и 8.0 этим не страдает </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38033</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Fedorov">ns</who>
    <bug_when>2006-05-15 07:29:50 +0400</bug_when>
    <thetext>попробую что-нить придумать... скорее всего просто предложу использовать vserver
без chroot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38038</commentid>
    <comment_count>3</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-05-15 14:48:04 +0400</bug_when>
    <thetext>(In reply to comment #2)
&gt; попробую что-нить придумать... скорее всего просто предложу использовать vserver
&gt; без chroot.

то есть все так просто? но createlang отрабатывает нормально, и по словам
программера нашего - plperl &apos;в целом&apos; работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38039</commentid>
    <comment_count>4</comment_count>
    <who name="Denis Smirnov">mithraen</who>
    <bug_when>2006-05-15 14:52:49 +0400</bug_when>
    <thetext>Он не может работать в chroot, если не затащить туда целиком перл.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38041</commentid>
    <comment_count>5</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-05-15 15:35:44 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; Он не может работать в chroot, если не затащить туда целиком перл.

postgresql8.0 разве не в чруте?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38043</commentid>
    <comment_count>6</comment_count>
    <who name="Denis Smirnov">mithraen</who>
    <bug_when>2006-05-15 15:42:23 +0400</bug_when>
    <thetext>О чем и речь, что в чруте.
Делать вид что работает может, но работать не будет.
Потому только вытаскивать из чрута.

Или не пользоваться plperl.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38044</commentid>
    <comment_count>7</comment_count>
    <who name="Nick S. Grechukh">gns</who>
    <bug_when>2006-05-15 15:52:52 +0400</bug_when>
    <thetext>[root@localhost ~]# vrpm whylabs.devel.tpway.com -- -qa | grep postgresql
postgresql8.0-8.0.6-alt1
postgresql8.0-server-8.0.6-alt1
postgresql8.0-perl-8.0.6-alt1

[root@localhost ~]# vrpm whylabs.devel.tpway.com -- -qi
postgresql8.0-server | grep Install
Install date: Fri May  5 15:01:26 2006      Build Host: bee1.hasher.altlinux.org

вот с 5 мая мы на нем работаем, после неудачи с 8.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38045</commentid>
    <comment_count>8</comment_count>
    <who name="Ivan Fedorov">ns</who>
    <bug_when>2006-05-15 16:10:00 +0400</bug_when>
    <thetext>Даже и не знаю что сказать... я их собираю одинаково! :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48998</commentid>
    <comment_count>9</comment_count>
    <who name="Ivan Fedorov">ns</who>
    <bug_when>2007-04-17 21:04:20 +0400</bug_when>
    <thetext>Короче workaround - пускать PostgreSQL без chroot.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>