A NOTE has been added to this issue. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=734 
====================================================================== 
Reported By:                grosjo
Assigned To:                paul
====================================================================== 
Project:                    DBMail
Issue ID:                   734
Category:                   POP3 daemon
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
target:                      
====================================================================== 
Date Submitted:             19-Nov-08 17:49 CET
Last Modified:              03-Dec-08 22:38 CET
====================================================================== 
Summary:                    SEgfault when pop-ing emails from THunderbird
Description: 

dbmail2.3.4 pop3d gives me:

dbmail-pop3d[20593]: segfault at 0 ip 00007f70f0c5b010 sp 00007ffffa798a00
error 4 in libdbmail.so.0.0.0[7f70f0c47000+55000]

(linux 2.6.27.5, Mysql 5.1.29)

====================================================================== 

---------------------------------------------------------------------- 
 grosjo - 19-Nov-08 21:12  
---------------------------------------------------------------------- 
Additional info:

Testing from the console (telnet localhost 110)

dbmail-pop3d crash (segfault) when downloading (RETR xx) an email which is
not in INBOX but in a subdirectory INBOX/blabla (i.e. an IMAP-created
folder) 

---------------------------------------------------------------------- 
 grosjo - 20-Nov-08 07:35  
---------------------------------------------------------------------- 
Switiching back to 2.3.3 solve the issue.

So, this is a regression in 2.3.4 

---------------------------------------------------------------------- 
 paul - 20-Nov-08 08:55  
---------------------------------------------------------------------- 
Using pop3 you should never be able to access any mailbox other than INBOX,
so what is going on here?
Other than that, segfaults should never happen. I'll look into it. 

---------------------------------------------------------------------- 
 paul - 20-Nov-08 12:37  
---------------------------------------------------------------------- 
Please provide logs with
SYSLOG_LOGGING_LEVELS=511 

---------------------------------------------------------------------- 
 grosjo - 24-Nov-08 20:48  
---------------------------------------------------------------------- 
after a RETR 11, this is the log efore the segfault

Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3_cb_read(+132): [0x6ac880] state: [1]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Info:[clientbase]
ci_readln(+208): [0x6ac960] C < [9:RETR 11 ]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3(+238): incoming buffer: [RETR 11]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3(+253): command issued :cmd [RETR], value [11]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3(+265): command looked up as commandtype 5
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3(+436): RETR command, retrieving message
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3(+444): RETR command, selecting message
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[db]
db_get_message_lines(+1858): request for [-2] lines
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_con_get(+254): gave database connection [0x672db0]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_query(+333): [0x672db0] [SELECT physmessage_id FROM dbmail_messages
WHERE message_idnr = 253576]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
log_query_time(+287): last query took [0.002] seconds
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_con_close(+273): closed database connection [0x672db0]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_con_get(+254): gave database connection [0x672db0]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_query(+333): [0x672db0] [SELECT
l.part_key,l.part_depth,l.part_order,l.is_header,DATE_FORMAT(ph.internal_date,
GET_FORMAT(DATETIME,'I
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
log_query_time(+287): last query took [0.007] seconds
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Database:[db]
db_con_close(+273): closed database connection [0x672db0]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[message]
_set_content_from_stream(+834): parse message
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Info:[clientbase]
ci_write(+132): [0x6ac960] S > [+OK 116443 octets  Received: from
localhost (localhost [127.0.0.1])       by mail.grosjo.net (Postfix) with 
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600]
Debug:[clientsession] socket_write_cb(+128): [0x6ac880] state: [1]
Nov 24 21:14:03 master dbmail/pop3d[9964]: [0x66e600] Debug:[pop3]
pop3_cb_write(+150): [0x6ac880] state: [1]

 

---------------------------------------------------------------------- 
 grosjo - 24-Nov-08 21:14  
---------------------------------------------------------------------- 
please note that I use libsieve 2.2.7, libzdb 2.2.3, libevent 1.4.8, mhash
0.9.9 (all compiled from source on my AMD X4, Linux 2.6.27.5, gcc 4.3.1) 

---------------------------------------------------------------------- 
 grosjo - 03-Dec-08 22:38  
---------------------------------------------------------------------- 
Please let me know how I can help in solving this.

This bug is blocking for me to upgrade from 3.3 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
19-Nov-08 17:49 grosjo         New Issue                                    
19-Nov-08 21:12 grosjo         Note Added: 0002629                          
19-Nov-08 21:23 grosjo         Issue Monitored: grosjo                      
20-Nov-08 07:35 grosjo         Note Added: 0002632                          
20-Nov-08 08:55 paul           Note Added: 0002633                          
20-Nov-08 08:55 paul           Status                   new => assigned     
20-Nov-08 08:55 paul           Assigned To               => paul            
20-Nov-08 08:55 paul           Status                   assigned => acknowledged
20-Nov-08 12:37 paul           Note Added: 0002634                          
22-Nov-08 21:08 michaelg       Issue Monitored: michaelg                    
24-Nov-08 19:49 grosjo         Note Added: 0002665                          
24-Nov-08 20:18 grosjo         Note Added: 0002667                          
24-Nov-08 20:47 grosjo         Note Deleted: 0002665                        
24-Nov-08 20:48 grosjo         Note Edited: 0002667                         
24-Nov-08 21:14 grosjo         Note Added: 0002669                          
03-Dec-08 22:38 grosjo         Note Added: 0002681                          
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to