I got a core dump when I used the query (Q) function to do a LDAP lookup.
I replaced the Perl script used to do the lookup with a simple Shell script
to exclude that the error was caused by the Perl script.

In Linux it works but I get a printout of "<null>" for table[num].data->other.
 
$ uname -a
SunOS anima.umdc.umu.se 5.8 Generic sun4u sparc SUNW,Ultra-5_10

$ gdb ./mutt core
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.4),
Copyright 1996 Free Software Foundation, Inc...

warning: exec file is newer than core file.
Core was generated by `mutt'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
#0  0xff2b303c in strlen ()
(gdb) bt
#0  0xff2b303c in strlen ()
#1  0xff302890 in _doprnt ()
#2  0xff3045d4 in snprintf ()
#3  0x4da30 in query_entry (
    s=0xffbee860 "     1 Erik Andersson   [EMAIL PROTECTED]", ' ' <repeats 12 t
imes>, slen=256, m=0xb3048, num=0) at query.c:168
#4  0x3d660 in menu_make_entry (
    s=0xffbee860 "     1 Erik Andersson   [EMAIL PROTECTED]", ' ' <repeats 12 t
imes>, l=733256, menu=0xb0198, i=0) at menu.c:90
#5  0x3d8a8 in menu_redraw_index (menu=0xb0198) at menu.c:162
#6  0x3ec40 in mutt_menuLoop (menu=0xb0198) at menu.c:776
#7  0x4dd50 in query_menu (buf=0xffbeec50 "Erik Andersson", buflen=256,
    results=0xae7f0, retbuf=0) at query.c:281
#8  0x4db74 in mutt_query_menu (buf=0xffbeec50 "Erik Andersson", buflen=0)
    at query.c:225
#9  0x2a214 in mutt_index_menu () at curs_main.c:1524
#10 0x3b204 in main (argc=1, argv=0xffbefbf4) at main.c:709
(gdb)

It seems that Solaris 8 doesn't like a NULL value for table[num].data->other
As a temporary fix, I changed it to "":

query.c:

  snprintf (s, slen, " %c %3d %-*.*s %-*.*s %s",
            table[num].tagged ? '*':' ',
            num+1,
            FirstColumn+2,
            FirstColumn+2,
            table[num].data->name,
            SecondColumn+2,
            SecondColumn+2,
            buf,
/*          table[num].data->other);*/
            "");
}

Reply via email to