<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #2274: mutt crashes on startup



#2274: mutt crashes on startup

Changes (by brendan):

  * status:  new => closed
  * resolution:  => worksforme

Old description:

> {{{
> mutt crashes on every startup.
> >How-To-Repeat:
> - untar from source
> - correct keymap.c/.h (one line in each file) for gcc 4.x
> - configure
> - make
> and then:
> hpuh:/docas/depots/mutt/mutt-1.4.2.1 # ./mutt
> Memory fault(coredump)
>
> hpuh:/docas/depots/mutt/mutt-1.4.2.1 # gdb ./mutt core
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "hppa2.0n-hp-hpux11.00"...
> Core was generated by `mutt'.
> Program terminated with signal 11, Segmentation fault.
>
> warning: The shared libraries were not privately mapped; setting a
> breakpoint in a shared library will not work until you rerun the program.
>
> Reading symbols from ./mutt...done.
> Reading symbols from /usr/local/lib/libncurses.sl...done.
> Reading symbols from /usr/local/lib/libintl.sl...done.
> Reading symbols from /usr/local/lib/libiconv.sl...done.
> Reading symbols from /usr/lib/libc.2...done.
> Reading symbols from /usr/lib/libdld.2...done.
> #0  ascii_strcasecmp (a=0x616c6961 <Address 0x616c6961 out of bounds>,
>     b=0x4001db48 "index") at ascii.c:70
> 70        for (; *a || *b; a++, b++)
> (gdb) bt
> #0  ascii_strcasecmp (a=0x616c6961 <Address 0x616c6961 out of bounds>,
>     b=0x4001db48 "index") at ascii.c:70
> #1  0x00020ac4 in mutt_getvaluebyname (name=0x4001db48 "index",
> map=0x7fdbc)
>     at init.c:1655
> #2  0x0002dc64 in parse_keymap (menu=0x7f7f2df8, s=0x7f7f2d78,
> err=0x7f7f124c)
>     at keymap.c:678
> #3  0x0002eae4 in mutt_parse_macro (buf=0x7f7f2cc8, s=0x7f7f2d78, data=0,
>     err=0x7f7f124c) at keymap.c:804
> #4  0x00022710 in mutt_parse_rc_line (
>     line=0x616c6961 <Address 0x616c6961 out of bounds>, token=0x7f7f2cc8,
>     err=0x7f7f124c) at init.c:1335
> #5  0x0002286c in source_rc (rcfile=0x4001db48 "index", err=0x7f7f124c)
>     at init.c:1253
> #6  0x00024348 in mutt_init (skip_sys_rc=0, commands=0x0) at init.c:1927
> #7  0x0002f998 in main (argc=1, argv=0x7f7f0804) at main.c:607
> #8  0xc0145940 in _start () from /usr/lib/libc.2
> (gdb)
> >Fix:
> Unknown
> }}}

New description:

 {{{
 mutt crashes on every startup.
 >How-To-Repeat:
 - untar from source
 - correct keymap.c/.h (one line in each file) for gcc 4.x
 - configure
 - make
 and then:
 hpuh:/docas/depots/mutt/mutt-1.4.2.1 # ./mutt
 Memory fault(coredump)

 hpuh:/docas/depots/mutt/mutt-1.4.2.1 # gdb ./mutt core
 GNU gdb 5.3
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "hppa2.0n-hp-hpux11.00"...
 Core was generated by `mutt'.
 Program terminated with signal 11, Segmentation fault.

 warning: The shared libraries were not privately mapped; setting a
 breakpoint in a shared library will not work until you rerun the program.

 Reading symbols from ./mutt...done.
 Reading symbols from /usr/local/lib/libncurses.sl...done.
 Reading symbols from /usr/local/lib/libintl.sl...done.
 Reading symbols from /usr/local/lib/libiconv.sl...done.
 Reading symbols from /usr/lib/libc.2...done.
 Reading symbols from /usr/lib/libdld.2...done.
 #0  ascii_strcasecmp (a=0x616c6961 <Address 0x616c6961 out of bounds>,
     b=0x4001db48 "index") at ascii.c:70
 70        for (; *a || *b; a++, b++)
 (gdb) bt
 #0  ascii_strcasecmp (a=0x616c6961 <Address 0x616c6961 out of bounds>,
     b=0x4001db48 "index") at ascii.c:70
 #1  0x00020ac4 in mutt_getvaluebyname (name=0x4001db48 "index",
 map=0x7fdbc)
     at init.c:1655
 #2  0x0002dc64 in parse_keymap (menu=0x7f7f2df8, s=0x7f7f2d78,
 err=0x7f7f124c)
     at keymap.c:678
 #3  0x0002eae4 in mutt_parse_macro (buf=0x7f7f2cc8, s=0x7f7f2d78, data=0,
     err=0x7f7f124c) at keymap.c:804
 #4  0x00022710 in mutt_parse_rc_line (
     line=0x616c6961 <Address 0x616c6961 out of bounds>, token=0x7f7f2cc8,
     err=0x7f7f124c) at init.c:1335
 #5  0x0002286c in source_rc (rcfile=0x4001db48 "index", err=0x7f7f124c)
     at init.c:1253
 #6  0x00024348 in mutt_init (skip_sys_rc=0, commands=0x0) at init.c:1927
 #7  0x0002f998 in main (argc=1, argv=0x7f7f0804) at main.c:607
 #8  0xc0145940 in _start () from /usr/lib/libc.2
 (gdb)
 >Fix:
 Unknown
 }}}

Comment:

 Looks like pilot error. Can't reproduce, no feedback.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2274#comment:4>