thanks, change that line to
if (!state.msg.list || !(state.msg.list->m_index = first(0, MMNORM))) {
On Fri, 13 Apr 2012 22:16:11 +0200 =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= wrote:
> Glenn, using the mb command with imap in ast mailx crashes for me:
> 1. Run mailx under gdb control:
> gdb --args mailx -f imap://testmetestme%[email protected]
> run
> 2. use command mb
> 3. Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000406ffe in mark1 (str=0x7fffffff5fe2 "", set=8193,
> clr=2176) at /home/fleyta/astopentest/src/cmd/mailx/cmd1.c:799
> 799 if (!(state.msg.list->m_index = first(0, MMNORM))) {
> (gdb) where
> #0 0x0000000000406ffe in mark1 (str=0x7fffffff5fe2 "", set=8193,
> clr=2176) at /home/fleyta/astopentest/src/cmd/mailx/cmd1.c:799
> #1 0x000000000040722b in mboxit (str=0x7fffffff5fe2 "") at
> /home/fleyta/astopentest/src/cmd/mailx/cmd1.c:849
> #2 0x00000000004153ad in execute (linebuf=0x7fffffff5fe0 "mb",
> contxt=0) at /home/fleyta/astopentest/src/cmd/mailx/lex.c:515
> #3 0x0000000000414ec1 in commands () at
> /home/fleyta/astopentest/src/cmd/mailx/lex.c:364
> #4 0x000000000041897a in main (argc=3, argv=0x7fffffffe1c8) at
> /home/fleyta/astopentest/src/cmd/mailx/main.c:520
> Olga
> --
> , _ _ ,
> { \/`o;====- Olga Kryzhanovska -====;o`\/ }
> .----'-/`-/ [email protected] \-`\-'----.
> `'-..-| / http://twitter.com/fleyta \ |-..-'`
> /\/\ Solaris/BSD//C/C++ programmer /\/\
> `--` `--`
> _______________________________________________
> ast-developers mailing list
> [email protected]
> https://mailman.research.att.com/mailman/listinfo/ast-developers
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers