We have a customer which received mail with iso2002jp and our PHP webmail crash inside the function imap_sort.
After some investigations, and some tests with pine, we have detected a crash of imapd server when we are making a sort.
I have join a backtrace of the process from the core file from courier-imap-1.7.1 under Linux Redhat 7.3 :
#0 0x4207af76 in chunk_free () from /lib/i686/libc.so.6
#1 0x4207ad24 in free () from /lib/i686/libc.so.6
#2 0x08060aed in unicode_convert (
txt=0x80e59f8 "\202�\202�\202�\203}\203K\203W\203\223 <[EMAIL PROTECTED]>", from=0x80dc780, to=0x806da00) at unicode.c:77
#3 0x08065e92 in save_unicode (
txt=0x80e59b8 "\202�\202�\202�\203}\203K\203W\203\223 <[EMAIL PROTECTED]>", len=35, chset=0x80e5198 "iso-2022-jp", lang=0x0, arg=0xbfffb2a0)
at rfc2047u.c:54
#4 0x080663ed in rfc2047_decode (text=0x80e5201 "",
func=0x8065e38 <save_unicode>, arg=0xbfffb2a0) at rfc2047.c:178
#5 0x08065fb0 in rfc2047_decode_unicode (
text=0x80e51b6 "=?iso-2022-jp?q?=82=D9=82=C1=82=C6=83}=83K=83W=83=93_<[EMAIL PROTECTED]>?=", mychset=0x806da00, options=1) at rfc2047u.c:105
#6 0x080564da in fill_search_header (si=0x80e6180, mycharset=0x806da00,
rfcp=0x80e6010, fp=0x80e5490, mi=0x80e5438) at search.c:576
#7 0x08055bc6 in search_internal (si=0x80e6180, sihead=0x80e6180,
mycharset=0x806da00, isuid=0, callback_func=0x8055834 <sort_callback>,
voidarg=0xbfffb410) at search.c:149
#8 0x080557a9 in dosortmsgs (si=0x80e6180, sihead=0x80e6180,
mycharset=0x806da00, isuid=0) at thread.c:403
#9 0x08050d40 in do_imap_command (tag=0xbfffb620 "00000008") at imapd.c:2916
#10 0x08058587 in mainloop () at mainloop.c:60
#11 0x080516cf in main (argc=2, argv=0xbffff744) at imapd.c:3313
#12 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
I don't have enough time today to check source, i will try later. I can send you more information if necessary.
Regards. -- (o_.' J�r�me Bolliet - DRS/Dpt Ing�nierie Internet //\ Noos - 20, place des vins de france 75614 Paris Cedex 12 V_/_ T�l.: 01.44.87.52.84 Email: [EMAIL PROTECTED] (s'il n'y a pas de solution, c'est qui n'y avait pas de probl�me...)
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
