[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-developers
Subject:    Re: [ast-developers] mb command with imap in ast mailx crashes
From:       Glenn Fowler <gsf () research ! att ! com>
Date:       2012-04-13 21:10:44
Message-ID: 201204132110.q3DLAilA003168 () penguin ! research ! att ! com
[Download RAW message or body]


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%40googlemail.com@imap.googlemail.com
> 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`\/ }
> .----'-/`-/     olga.kryzhanovska@gmail.com   \-`\-'----.
>  `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
>       /\/\     Solaris/BSD//C/C++ programmer   /\/\
>       `--`                                      `--`

> _______________________________________________
> ast-developers mailing list
> ast-developers@research.att.com
> https://mailman.research.att.com/mailman/listinfo/ast-developers

_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic