[ libetpan-Bugs-1957999 ] chash_clear should check argument

"SourceForge.net" <[email protected]> Fri, 23 May 2008 10:32:18 -0700
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Bugs item #1957999, was opened at 2008-05-05 17:14
Message generated for change (Comment added) made by golemj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=1957999&group_id=41064

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: Latest stable - libEtPan!
Status: Open
Resolution: None
Priority: 9
Private: No
Submitted By: GolemJ (golemj)
Assigned to: Nobody/Anonymous (nobody)
Summary: chash_clear should check argument

Initial Comment:
When EtPan fails to open mailbox on startup (eg. because of non existant path to user maildir) than when you want to change sub-app (eg. show help) you got segfault.

Backtrace:
(gdb) bt
#0  0xb7eb56f7 in chash_clear (hash=0x1) at chash.c:312
#1  0x08066630 in etpan_app_switch_subapp (subapp=0x81d96e0, leave_last=0) at etpan-app-subapp.c:99
#2  0x08096c8a in etpan_show_help (app=0x80bc4d0, 
    text=0x80a91d4 "Help for messages list viewer\n", '-' <repeats 29 times>, "\n\nThis application will let you view the content of a folder.\n\n- left, right,\n  Ctrl-W,\n  Ctrl-X      : switch between applications\n\n- up,dow"..., 
    size=1764) at etpan-help-viewer.c:219
#3  0x08070a37 in handle_key (app=0x80bc4d0, key=63) at etpan-msg-list-app.c:3714
#4  0x0806569e in etpan_subapp_handle_key (app=0x1, key=63) at etpan-subapp.c:66
#5  0x080674e9 in etpan_app_run (app=0x80b4008, subapp=0x0) at etpan-app-subapp.c:587
#6  0x08064b2f in main (argc=1, argv=0xbffc7704) at etpan.c:208


----------------------------------------------------------------------

>Comment By: GolemJ (golemj)
Date: 2008-05-23 19:32

Message:
Logged In: YES 
user_id=1511163
Originator: YES

I do not have any configuration yet.
My .libetpan folder do not contain any file, just folders:
.libetpan/
.libetpan/tmp/
.libetpan/tmp/mime/
.libetpan/log/
.libetpan/config/
.libetpan/config/smime/
.libetpan/config/smime/cert/
.libetpan/cache/
.libetpan/cache/default-mbox/
.libetpan/cache/default-mbox/%2fvar%2fmail%2fgolemj/
.libetpan/flags/
.libetpan/flags/default-mbox/
.libetpan/flags/default-mbox/%2fvar%2fmail%2fgolemj/

Strange things is that it throws segmentation fault every time even if
mail file exist and contain data.

----------------------------------------------------------------------

Comment By: DINH V. Hoa (hoa)
Date: 2008-05-23 00:29

Message:
Logged In: YES 
user_id=201468
Originator: NO

Hello,

could you attach a config file to reproduce you scenario ?

Thanks,



----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-05-22 23:49

Message:
Logged In: NO 

The bug is rather on etpan-ng side.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=1957999&group_id=41064

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/