[imp] odd segmentation faults

Kevin Konowalec kevin at ualberta.net
Mon Jul 10 12:18:02 PDT 2006


Installing Horde 3.1.2 and Imp 4.1.2.

I've managed to get everything installed and mostly functional but  
when I attempt to read a message I get a segmentation fault in the  
logs and nothing happens in the browser.  I see a full directory  
listing and I can move and delete messages from the inbox... I just  
can't read them.  The same thing happens when I go into the Imp  
options as a user and click on "Message Composition" or "Personal  
Information".   When I click on a message it sometimes gives me  
"requested message not found" errors but it usually just does nothing  
and leaves segfaults in the log.

I suspected it might have something to do with the memcached sessions  
so I looked at the directory where horde saves the session locks.  It  
was interesting to note that logging in creates 2 session locks but  
logging out only removes one.  This also explains why I'm getting  
errors in my horde.log saying "Error retrieving session data" on  
logout - it seems to be trying to retrieve data corresponding to the  
second lock file and not finding it (and thus not removing the lock  
file).  When I set the imp logging to debug it looks like:


Jul 10 08:13:41 HORDE [debug] [horde] Added [my.memcache.server: 
11211] as memcache server for memcache SessionHandler [on line 186 of  
"/var/www/horde/lib/Horde/SessionHandler/memcache.php"]
Jul 10 08:13:41 HORDE [debug] [horde] Connected to a memcache server  
for memcache SessionHandler [on line 195 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]
Jul 10 08:13:41 HORDE [debug] [horde] Read session data (id =  
jh2uursr2th21dfa81gcrq82n4) [on line 89 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]
Jul 10 08:13:44 HORDE [debug] [imp] SQL Query by Prefs_sql::retrieve 
(): SELECT pref_scope, pref_name, pref_value FROM horde_prefs WHERE  
pref_uid = ? AND (pref_scope = ? OR pref_scope = 'horde') ORDER BY  
pref_scope [on line 137 of "/var/www/horde/lib/Horde/Prefs/sql.php"]
Jul 10 08:13:47 HORDE [notice] [imp] Login success for  
user at myhorde.server [xxx.xxx.xxx.xxx] to {yyy.yyy.yyy.yyy:143} [on  
line 152 of "/var/www/horde/imp/redirect.php"]
Jul 10 08:13:47 HORDE [debug] [imp] Already connected to a memcache  
server for memcache SessionHandler [on line 165 of "/var/www/horde/ 
lib/Horde/SessionHandler/memcache.php"]
Jul 10 08:13:48 HORDE [debug] [imp] Wrote session data (id =  
nvhvqr24vtol4i10fbk18iuge4) [on line 114 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]


etc etc etc.

When logging out I get:


Jul 10 08:16:25 HORDE [debug] [imp] Deleted session data (id =  
nvhvqr24vtol4i10fbk18iuge4) [on line 138 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]
Jul 10 08:16:25 HORDE [debug] [imp] Added [my.memcache.server:11211]  
as memcache server for memcache SessionHandler [on line 186 of "/var/ 
www/horde/lib/Horde/SessionHandler/memcache.php"]
Jul 10 08:16:25 HORDE [debug] [imp] Connected to a memcache server  
for memcache SessionHandler [on line 195 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]
Jul 10 08:16:25 HORDE [error] [imp] Error retrieving session data (id  
= nvhvqr24vtol4i10fbk18iuge4) [on line 83 of "/var/www/horde/lib/ 
Horde/SessionHandler/memcache.php"]
Jul 10 08:16:25 HORDE [debug] [imp] Already connected to a memcache  
server for memcache SessionHandler [on line 165 of "/var/www/horde/ 
lib/Horde/SessionHandler/memcache.php"]
Jul 10 08:16:25 HORDE [debug] [imp] Wrote session data (id =  
nvhvqr24vtol4i10fbk18iuge4) [on line 114 of "/var/www/horde/lib/Horde/ 
SessionHandler/memcache.php"]

in my locks directory I'm left with lock_jh2uursr2th21dfa81gcrq82n4  
which gets written but never seems to be removed.

I don't know if that's related to the issue causing horde not being  
able to read messages, but it's curious nonetheless.


More information about the imp mailing list