[ libetpan-Bugs-3284078 ] Program was suspended by calling mailsmtp_free()
"SourceForge.net" <[email protected]> Fri, 15 Apr 2011 09:27:58 +0000
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3284078, was opened at 2011-04-11 09:54 Message generated for change (Comment added) made by hoa You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429696&aid=3284078&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: SMTP Group: Latest development - libEtPan! >Status: Closed Resolution: None Priority: 5 Private: No Submitted By: Wang Brandon (brwang) Assigned to: Nobody/Anonymous (nobody) Summary: Program was suspended by calling mailsmtp_free() Initial Comment: Hi, Everybody, We found a potential problem in current implementation of mailstream_socket.c. If there are a lot of file descriptors are opened in present machine, the select() function will return a negative value. If it returns a negative value, it will cause some functions, such as mailsmtp_free(), to do the canceling operation. If they are occurred, finally, the program will be suspended. The following information is the stack information when the program is suspended. #0 0xb7f68424 in __kernel_vsyscall () #1 0xb78bfc8b in read () from /lib/libpthread.so.0 #2 0xb6de3b9f in mailstream_cancel_ack (cancel=0xb3f197a8) at mailstream_cancel.c:158 #3 0xb6de0c8d in mailstream_low_socket_write (s=0xb3f154d8, buf=0xb3f23328, count=6) at mailstream_socket.c:320 #4 0xb6ddfd6f in mailstream_low_write (s=0xb3f154d8, buf=0xb3f23328, count=6) at mailstream_low.c:200 #5 0xb6de085c in mailstream_flush (s=0xb2afaa68) at mailstream.c:149 #6 0xb6e188b7 in send_command (f=0xb3f14fb8, command=0xb4e48d7b "QUIT\r\n") at mailsmtp.c:841 #7 0xb6e19bb9 in mailsmtp_quit (session=0xb3f14fb8) at mailsmtp.c:190 #8 0xb6e19c98 in mailsmtp_free (session=0xb3f14fb8) at mailsmtp.c:143 We learnt the part codes, and found in file mailstream_ssl.c, there are two places have the same problem. A patch file can be found within attachment. Thanks, Best Regards, Brandon. Wang 2011/4/11 ---------------------------------------------------------------------- >Comment By: DINH V. Hoa (hoa) Date: 2011-04-15 11:27 Message: Thank. It has been integrated in HEAD. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=429696&aid=3284078&group_id=41064 ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev