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

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

    <bug>
          <bug_id>13366</bug_id>
          
          <creation_ts>2007-11-09 13:39:00 +0300</creation_ts>
          <short_desc>perl crash with &quot;attempt to free unreferenced scalar&quot;</short_desc>
          <delta_ts>2008-01-12 16:53:27 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.0</product>
          <component>perl-base</component>
          <version>4.0</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mike Lykov">combr</reporter>
          <assigned_to name="at@altlinux.org">at</assigned_to>
          <cc>me</cc>
    
    <cc>vitty</cc>
          
          <qa_contact name="Q.A. 4.0">qa-4.0</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57736</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-09 13:39:03 +0300</bug_when>
    <thetext>ситуация такая: есть 
apache2-2.2.6-alt4
perl-base-5.8.8-alt14

и поставил (архив с сайта) http://otrs.org 
otrs-2.2.3.tar.gz (установлен в /opt)
    ScriptAlias /otrs/ &quot;/opt/otrs/bin/cgi-bin/&quot;

сконфигурил как надо там, запускаю из /opt/otrs/bin/cgi-bin/ стандартный
printenv.pl - работает. запускаю их index.pl - падает.
под mod_perl2-2.0.3 падает аналогично.

в логе такое:
[client 127.0.0.1] [Fri Nov  9 14:26:23 2007] index.pl: Attempt to free
unreferenced scalar: SV 0x8d07078, Perl interpreter: 0x804a008 at
../..//Kernel/System/Config.pm line 1325.
[client 127.0.0.1] [Fri Nov  9 14:26:23 2007] index.pl: Attempt to free
unreferenced scalar: SV 0x8cfda3c, Perl interpreter: 0x804a008 at
../..//Kernel/System/Config.pm line 1325.

(штук 20 строк)

в этой строке стоит
    if ($Param{Data}-&gt;{Setting}-&gt;[1]-&gt;{FrontendModuleReg}) {

что бы это могло быть? раньше такого не встречал ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57744</commentid>
    <comment_count>1</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-09 15:08:26 +0300</bug_when>
    <thetext>apache 1, установка по умолчанию, добавил только строки
 Alias /otrs-web/ &quot;/opt/otrs/var/httpd/htdocs/&quot;
  ScriptAlias /otrs/ &quot;/opt/otrs/bin/cgi-bin/&quot;

поставил новую версию - otrs 2.2.4, вышал 7 ноября.
падает так же.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57745</commentid>
    <comment_count>2</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-09 15:36:00 +0300</bug_when>
    <thetext>поставил старую версию - 2.0.5-01
работает.... Но как-то не дело откатываться на два года назад из-за этого.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57748</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-09 16:12:07 +0300</bug_when>
    <thetext>проверил еще
otrs-2.2.1.tar.gz    
otrs-2.1.7.tar.gz 
otrs-2.1.3.tar.gz   

у всех (кроме 2.0.5) одна картина - installer.pl запустить можно
пройти предлагаемые шаги (создание mysql базы и настройка емейлов), потом он
предлагает &quot;теперь вы можете использовать. перейдите на.. 
/index.pl
перехожу - первый раз страница логина грузится.
ввожу предлагаемый по умолчанию логин и пароль.
ии.. чистая страница, а в логе error.log у httpd

Attempt to free unreferenced scalar: SV 0x88f931c, Perl interpreter: 0x804a008
at  (та же строка кода)
или вот еще вариант
*** glibc detected *** /usr/bin/perl: munmap_chunk(): invalid pointer:
0x09542228 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7d84402]
/usr/lib/libperl.so.5.8(Perl_safesysfree+0x21)[0xb7ec2d01]
(и длинный лог)

как-то это нездорово ;)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58063</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-12 13:37:36 +0300</bug_when>
    <thetext>просто пересобрал у себя (без hasher, в системе) пакет 
 perl-5.8.8-alt14.src.rpm 

при пересборке выбрал из libdb4.3-devel и lbdb4.4-devel последний.

получил perl-base-5.8.8-alt14.i686.rpm
и еще несколько. поставил их вместо тех, что по умолчанию в дистрибутиве - 

и падать перестало. а то я уже хотел opensuse ставить.. ;)
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58067</commentid>
    <comment_count>5</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-11-12 14:28:02 +0300</bug_when>
    <thetext>не, все более хитро:

perl-5.8.8-alt14.i686 не падает с версией otrs-2.1.3
perl-5.8.8-alt5.i686 не падает и с самой последней версией otrs-2.2.4

т.е. новая версия otrs работает только со старой сборкой пакета perl.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59038</commentid>
    <comment_count>6</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2007-12-06 10:27:21 +0300</bug_when>
    <thetext>какие-нибудь новости?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60876</commentid>
    <comment_count>7</comment_count>
    <who name="Martin">me</who>
    <bug_when>2008-01-11 00:33:11 +0300</bug_when>
    <thetext>Hi Mike,

I found the problem. It&apos;s a problem in OTRS. It&apos;s fixed in upcoming OTRS 2.2.5
(~jan08).

For more details see:

http://bugs.otrs.org/show_bug.cgi?id=2491

Greetings,
 -Martin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60948</commentid>
    <comment_count>8</comment_count>
    <who name="Mike Lykov">combr</who>
    <bug_when>2008-01-12 16:53:27 +0300</bug_when>
    <thetext>thanks Martin!
I already get an information about it from OTRS&apos; bugzilla from you.

i think i may mark here as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>