Opened 5 years ago
Closed 5 years ago
#1484970 closed Bugs (worksforme)
Roundcube 0.1-stable and 0.1.1 crash php, 0.1-rc1 works
| Reported by: | bero | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | PHP backend | Version: | 0.1.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Hi,
I'm very happy with roundcube 0.1-rc1, but any attempts to upgrade to 0.1-stable or 0.1.1 so far have failed.
The login page still works with 0.1-stable and 0.1.1, but after logging in, I get an unexpected disconnection, and the server log contains
[Tue Apr 08 10:48:23 2008] [notice] child pid 16844 exit signal Segmentation fault (11)
[Tue Apr 08 10:48:23 2008] [notice] child pid 15009 exit signal Segmentation fault (11)
roundcube's own logs don't show anything (on a failed login, roundcube logs show the failed attempt and there is no disconnection/segfault in httpd logs).
I've reproduced this with PHP versions 5.2.5 and all 5.2.6 release candidates, in every case the server is running Apache httpd 2.2.8 on Linux 2.6.x, glibc 2.7.
Change History (7)
comment:1 Changed 5 years ago by alec
- Milestone changed from later to 0.1.2
comment:2 Changed 5 years ago by alec
- Resolution set to worksforme
- Status changed from new to closed
comment:3 Changed 5 years ago by bero
- Resolution worksforme deleted
- Status changed from closed to reopened
0.2-alpha still does the same thing.
Database is Mysql 5.1.24; by now glibc is 2.8 and php is 5.2.6 final.
0.1-rc1 still works perfectly in the same setup.
roundcube config is fairly standard:
db.inc.php:
$rcmail_config = array();
$rcmail_configdb_dsnw? = 'mysqli://roundcube:**********@localhost/roundcubemail';
$rcmail_configdb_dsnr? = ;
$rcmail_configdb_backend? = 'db';
$rcmail_configdb_max_length? = 512000; 500K
$rcmail_configdb_persistent? = FALSE;
$rcmail_configdb_table_users? = 'users';
$rcmail_configdb_table_identities? = 'identities';
$rcmail_configdb_table_contacts? = 'contacts';
$rcmail_configdb_table_session? = 'session';
$rcmail_configdb_table_cache? = 'cache';
$rcmail_configdb_table_messages? = 'messages';
$rcmail_configdb_sequence_users? = 'user_ids';
$rcmail_configdb_sequence_identities? = 'identity_ids';
$rcmail_configdb_sequence_contacts? = 'contact_ids';
$rcmail_configdb_sequence_cache? = 'cache_ids';
$rcmail_configdb_sequence_messages? = 'message_ids';
main.inc.php:
$rcmail_config = array();
$rcmail_configdebug_level? = 1;
$rcmail_configenable_caching? = TRUE;
$rcmail_configmessage_cache_lifetime? = '10d';
$rcmail_configauto_create_user? = TRUE;
$rcmail_configdefault_host? = 'localhost';
$rcmail_configdefault_port? = 143;
$rcmail_configimap_auth_type? = plain;
$rcmail_configusername_domain? = ;
$rcmail_configmail_domain? = 'eduvision.ch';
$rcmail_configvirtuser_file? = ;
$rcmail_configvirtuser_query? = ;
$rcmail_configsmtp_server? = 'localhost';
$rcmail_configsmtp_port? = 25;
$rcmail_configsmtp_user? = 'roundcube-out';
$rcmail_configsmtp_pass? = '*';
$rcmail_configsmtp_auth_type? = ;
$rcmail_configsmtp_helo_host? = 'eduvision.ch';
$rcmail_configsmtp_log? = TRUE;
$rcmail_configlist_cols? = array('subject', 'from', 'date', 'size');
$rcmail_configskin_path? = 'skins/default/';
$rcmail_configskin_include_php? = FALSE;
$rcmail_configtemp_dir? = 'temp/';
$rcmail_configlog_dir? = 'logs/';
$rcmail_configsession_lifetime? = 10;
$rcmail_configip_check? = false;
$rcmail_configdouble_auth? = false;
$rcmail_configdes_key? = 'rcmail-!24ByteDESkey*Str';
$rcmail_configlanguage? = 'en';
$rcmail_configdate_short? = 'D H:i';
$rcmail_configdate_long? = 'd.m.Y H:i';
$rcmail_configdate_today? = 'H:i';
$rcmail_configuseragent? = 'RoundCube Webmail/0.2a';
$rcmail_configproduct_name? = 'RoundCube Webmail';
$rcmail_configimap_root? = ;
$rcmail_configdrafts_mbox? = 'Drafts';
$rcmail_configjunk_mbox? = 'Junk';
$rcmail_configsent_mbox? = 'Sent';
$rcmail_configtrash_mbox? = 'Trash';
$rcmail_configdefault_imap_folders? = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_configcreate_default_folders? = FALSE;
$rcmail_configprotect_default_folders? = TRUE;
$rcmail_configskip_deleted? = FALSE;
$rcmail_configread_when_deleted? = TRUE;
$rcmail_configflag_for_deletion? = TRUE;
$rcmail_configmdn_requests? = 0;
$rcmail_configdefault_charset? = 'ISO-8859-1';
$rcmail_configenable_spellcheck? = TRUE;
$rcmail_configspellcheck_uri? = ;
$rcmail_configspellcheck_languages? = NULL;
$rcmail_configgeneric_message_footer? = ;
$rcmail_confighttp_received_header? = false;
$rcmail_configmail_header_delimiter? = NULL;
$rcmail_configsession_domain? = ;
$rcmail_configaddress_book_type? = 'sql';
$rcmail_configdont_override? = array();
$rcmail_configinclude_host_config? = false;
$rcmail_configmax_pagesize? = 200;
$rcmail_configmime_magic? = '/usr/share/misc/magic';
$rcmail_configmessage_sort_col? = 'date';
$rcmail_configmessage_sort_order? = 'DESC';
$rcmail_configenable_installer? = false;
$rcmail_configpagesize? = 40;
$rcmail_configtimezone? = intval(date('O'))/100 - date('I');
$rcmail_configdst_active? = (bool)date('I');
$rcmail_configprefer_html? = TRUE;
$rcmail_confightmleditor? = FALSE;
$rcmail_configprettydate? = TRUE;
$rcmail_configdraft_autosave? = 300;
$rcmail_configpreview_pane? = FALSE;
$rcmail_configlogout_purge? = FALSE;
$rcmail_configlogout_expunge? = FALSE;
$rcmail_configdelete_always? = false;
$rcmail_configlog_logins? = false;
comment:4 Changed 5 years ago by bero
Increasing debug_level to 8 doesn't give much more info: logs/errors remains empty and logs/console says
[13-Jun-2008 17:29:12 +0000]: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL=1 STARTTLS AUTH=PLAIN
cp01 OK Capability completed.
Tried PLAIN: Resource id #32
[13-Jun-2008 17:29:12 +0000]: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED I18NLEVEL=1 STARTTLS AUTH=PLAIN
cp01 OK Capability completed.
Tried PLAIN: Resource id #32
comment:5 Changed 5 years ago by bero
Trying to see if the db is at fault by switching to postgres 8.3.1 results in a new set of errors:
DB Error: unknown option disable_smart_seqname (-1): INSERT INTO users\n (created, last_login, username, mail_host, alias, language)\n VALUES (now(), now(), 'br', 'localhost', , 'en_US') DB Error: unknown error, referer: http://titlis.eduvision.ch/
DB Error: unknown error (-1): SELECT CURRVAL() -nativecode=ERROR: invalid name syntax-, referer: http://titlis.eduvision.ch/
DB Error: invalid number (-11): INSERT INTO identities\n (user_id, del, standard, name, email)\n VALUES (, 0, 1, 'br', 'br@…') -nativecode=ERROR: invalid input syntax for integer: ""-, referer: http://titlis.eduvision.ch/
DB Error: invalid number (-11): SELECT * FROM users WHERE user_id= -nativecode=ERROR: invalid input syntax for integer: ""-, referer: http://titlis.eduvision.ch/
comment:6 Changed 5 years ago by bero
I finally got around to debug this some more - the crash is mcrypt related.
The line causing the crash is the call to mcrypt_generic_init in encrypt_passwd() in rcmail.php
libmcrypt is version 2.5.8 (and php was compiled/linked against the same version).
Simply disabling the use of mcrypt fixes it here. Now running 0.2-alpha without problems.
comment:7 Changed 5 years ago by alec
- Resolution set to worksforme
- Status changed from reopened to closed
Your problem with DB was fixed. Your crash problem with mcrypt sounds to be not reproduceable.

Please try 0.2-alpha and reopen if bug still exists, also describe used database and show your roundcube config