| Summary: | mutt зависает при запуске из cron | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Vitaly Lipatov <lav> |
| Component: | mutt | Assignee: | Gleb F-Malinovskiy <glebfm> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P3 | CC: | glebfm, ldv, mike, viy |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
(gdb) print known
$2 = {0x49e798 "color-xterm", 0x49e7a4 "cygwin", 0x49e7ab "eterm", 0x49e7b1 "kterm", 0x49e7b7 "nxterm", 0x49e7be "putty", 0x49e7c4 "rxvt", 0x4a41da "screen", 0x49e79e "xterm", 0x0
(gdb) print term
$3 = 0x0
А что, неплохо попасть в этот цикл с term == 0 :)
> 167 for (termp = known; termp; termp++)
видимо, проверка должна быть с разыменованием termp:
167 for (termp = known; *termp; termp++)
У меня, между прочим, не зависает. (В ответ на комментарий №3) > У меня, между прочим, не зависает. У вас терминал color-xterm? :) И ещё мне кажется, что там пропущен ! перед mutt_strncasecmp А так, да, наверняка у меня возвращается null здесь: tcaps = tigetstr("tsl"); |
0x000000000041f9ab in mutt_ts_capability () at ../curs_main.c:169 169 if (term && *termp && 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 && *termp && 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