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

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

    <bug>
          <bug_id>31224</bug_id>
          
          <creation_ts>2015-08-23 01:53:53 +0300</creation_ts>
          <short_desc>mutt зависает при запуске из cron</short_desc>
          <delta_ts>2016-04-25 17:25:19 +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>mutt</component>
          <version>unstable</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>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vitaly Lipatov">lav</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152538</commentid>
    <comment_count>0</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2015-08-23 01:53:53 +0300</bug_when>
    <thetext>0x000000000041f9ab in mutt_ts_capability () at ../curs_main.c:169
169	    if (term &amp;&amp; *termp &amp;&amp; mutt_strncasecmp (term, *termp, strlen(*termp)))
(gdb) bt
#0  0x000000000041f9ab in mutt_ts_capability () at ../curs_main.c:169
#1  0x0000000000406b63 in main (argc=2, argv=0x7fff2b163e08) at ../main.c:811


0x000000000041f9d3 in mutt_ts_capability () at ../curs_main.c:167
167	  for (termp = known; termp; termp++)
(gdb) bt
#0  0x000000000041f9d3 in mutt_ts_capability () at ../curs_main.c:167
#1  0x0000000000406b63 in main (argc=2, argv=0x7fff2b163e08) at ../main.c:811

165	  /* Check term types that are known to support the standard escape without
166	   * necessarily asserting it in terminfo. */
167	  for (termp = known; termp; termp++)
168	  {
169	    if (term &amp;&amp; *termp &amp;&amp; mutt_strncasecmp (term, *termp, strlen(*termp)))
170	      return 1;
171	  }


$ epmqf mutt-default
Note: mutt-default is placed as /usr/bin/mutt-default
 $ rpm -qf /usr/bin/mutt-default
mutt-default-1.5.23.88.hg577987ca2d02-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152539</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2015-08-23 01:57:02 +0300</bug_when>
    <thetext>(gdb) print known
$2 = {0x49e798 &quot;color-xterm&quot;, 0x49e7a4 &quot;cygwin&quot;, 0x49e7ab &quot;eterm&quot;, 0x49e7b1 &quot;kterm&quot;, 0x49e7b7 &quot;nxterm&quot;, 0x49e7be &quot;putty&quot;, 0x49e7c4 &quot;rxvt&quot;, 0x4a41da &quot;screen&quot;, 0x49e79e &quot;xterm&quot;, 0x0

(gdb) print term
$3 = 0x0

А что, неплохо попасть в этот цикл с term == 0 :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152540</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2015-08-23 02:04:07 +0300</bug_when>
    <thetext>&gt; 167      for (termp = known; termp; termp++)
видимо, проверка должна быть с разыменованием termp:
 167      for (termp = known; *termp; termp++)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152544</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2015-08-23 08:50:07 +0300</bug_when>
    <thetext>У меня, между прочим, не зависает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152546</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2015-08-23 17:25:34 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; У меня, между прочим, не зависает.
У вас терминал color-xterm? :)

И ещё мне кажется, что там пропущен ! перед mutt_strncasecmp

А так, да, наверняка у меня возвращается null здесь:
tcaps = tigetstr(&quot;tsl&quot;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>156289</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-04-25 17:25:19 +0300</bug_when>
    <thetext>mutt-3:1.6-alt1 -&gt; sisyphus:

* Mon Apr 25 2016 Gleb F-Malinovskiy &lt;glebfm@altlinux&gt; 3:1.6-alt1
- Updated to mutt-1-6-rel (ALT#31943).
- Fixed hang with empty TERM env variable (ALT#31224).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>