[Bug 234971] New: Kmail Crashes on start

wrana at blauhaus.org wrana at blauhaus.org
Wed Apr 21 13:33:51 BST 2010


https://bugs.kde.org/show_bug.cgi?id=234971

           Summary: Kmail Crashes on start
           Product: kontact
           Version: 4.4.2
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: wrana at blauhaus.org


Application: kontact (4.4.2)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-21-generic i686
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
Problems with Akonadi. 

Akonadi Server Self-Test Report
===============================

Test 1:  SUCCESS
--------

Database driver found.
Details: The QtSQL driver 'QMYSQL' is required by your current Akonadi server
configuration and was found on your system.

File content of '/home/arjuna/.config/akonadi/akonadiserverrc':
[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[QMYSQL]
Name=akonadi
Host=
User=
Password=
Options="UNIX_SOCKET=/home/arjuna/.local/share/akonadi/db_misc/mysql.socket"
ServerPath=/usr/sbin/mysqld-akonadi
StartServer=true

[Debug]
Tracer=null


Test 2:  SUCCESS
--------

MySQL server found.
Details: You currently have configured Akonadi to use the MySQL server
'/usr/sbin/mysqld-akonadi'.
Make sure you have the MySQL server installed, set the correct path and ensure
you have the necessary read and execution rights on the server executable. The
server executable is typically called 'mysqld', its locations varies depending
on the distribution.

Test 3:  SUCCESS
--------

MySQL server is executable.
Details: MySQL server found: /usr/sbin/mysqld-akonadi  Ver 5.1.41-3ubuntu11 for
debian-linux-gnu on i486 ((Ubuntu))


Test 4:  SUCCESS
--------

No current MySQL error log found.
Details: The MySQL server did not report any errors during this startup into
'/home/arjuna/.local/share/akonadi/db_data/mysql.err'.

Test 5:  SUCCESS
--------

MySQL server default configuration found.
Details: The default configuration for the MySQL server was found and is
readable at <a
href='/home/arjuna/.config/akonadi/mysql-global.conf'>/home/arjuna/.config/akonadi/mysql-global.conf</a>.

File content of '/home/arjuna/.config/akonadi/mysql-global.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris at mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking

# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables

# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=latin1
collation_server=latin1_general_ci
table_cache=200
thread_cache_size=3
log_bin=mysql-bin
expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
# log all queries, useful for debugging but generates an enormous amount of
data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for
debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0

innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM
information_schema.tables WHERE table_schema not in ("mysql",
"information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep
Innodb_buffer_pool_wait_free small (see show global status like "inno%", show
global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2



Test 6:  SKIP
--------

MySQL server custom configuration not available.
Details: The custom configuration for the MySQL server was not found but is
optional.

Test 7:  SUCCESS
--------

MySQL server configuration is usable.
Details: The MySQL server configuration was found at <a
href='/home/arjuna/.local/share/akonadi/mysql.conf'>/home/arjuna/.local/share/akonadi/mysql.conf</a>
and is readable.

File content of '/home/arjuna/.local/share/akonadi/mysql.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris at mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking

# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables

# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=latin1
collation_server=latin1_general_ci
table_cache=200
thread_cache_size=3
log_bin=mysql-bin
expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
# log all queries, useful for debugging but generates an enormous amount of
data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for
debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0

innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM
information_schema.tables WHERE table_schema not in ("mysql",
"information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep
Innodb_buffer_pool_wait_free small (see show global status like "inno%", show
global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2



Test 8:  SUCCESS
--------

akonadictl found and usable
Details: The program '/usr/bin/akonadictl' to control the Akonadi server was
found and could be executed successfully.
Result:
Akonadi 1.3.1


Test 9:  ERROR
--------

Akonadi control process not registered at D-Bus.
Details: The Akonadi control process is not registered at D-Bus which typically
means it was not started or encountered a fatal error during startup.

Test 10:  ERROR
--------

Akonadi server process not registered at D-Bus.
Details: The Akonadi server process is not registered at D-Bus which typically
means it was not started or encountered a fatal error during startup.

Test 11:  SUCCESS
--------

Nepomuk search service registered at D-Bus.
Details: The Nepomuk search service is registered at D-Bus which typically
indicates it is operational.

Test 12:  SUCCESS
--------

Nepomuk search service uses an appropriate backend. 
Details: The Nepomuk search service uses one of the recommended backends.

Test 13:  SKIP
--------

Protocol version check not possible.
Details: Without a connection to the server it is not possible to check if the
protocol version meets the requirements.

Test 14:  ERROR
--------

No resource agents found.
Details: No resource agents have been found, Akonadi is not usable without at
least one. This usually means that no resource agents are installed or that
there is a setup problem. The following paths have been searched:
'/usr/share/akonadi/agents /usr/share/akonadi/agents'. The XDG_DATA_DIRS
environment variable is set to '/usr/share:/usr/share:/usr/local/share', make
sure this includes all paths where Akonadi agents are installed to.

Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop

Environment variable XDG_DATA_DIRS is set to
'/usr/share:/usr/share:/usr/local/share'

Test 15:  ERROR
--------

Current Akonadi server error log found.
Details: The Akonadi server did report error during startup into <a
href='/home/arjuna/.local/share/akonadi/akonadiserver.error'>/home/arjuna/.local/share/akonadi/akonadiserver.error</a>.

File content of '/home/arjuna/.local/share/akonadi/akonadiserver.error':
Database process exited unexpectedly during initial connection! 
executable: "/usr/sbin/mysqld-akonadi" 
arguments: ("--defaults-file=/home/arjuna/.local/share/akonadi//mysql.conf",
"--datadir=/home/arjuna/.local/share/akonadi/db_data/",
"--socket=/home/arjuna/.local/share/akonadi/db_misc/mysql.socket") 
stdout: "" 
stderr: "100421 14:27:16 [ERROR] Wrong option to sql-mode. Option(s) given:
strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
Alternatives are:
'REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','?','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','ALLOW_INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH'
: Success
100421 14:27:16 [ERROR] Aborting

" 
exit code: 1 
process error: "Unknown error" 
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x8052265]
1: akonadiserver() [0x8052726]
2: [0xda4400]
3: [0xda4422]
4: /lib/tls/i686/cmov/libc.so.6(gsignal+0x51) [0x3b8651]
5: /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x3bba82]
6: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x8c) [0x16d2dc]
7: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xc4) [0x80537a4]
8: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x8e) [0x20546e]
9: /usr/lib/libQtCore.so.4(+0x10a275) [0x21a275]
10: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3d) [0x21b78d]
11: akonadiserver(_ZN6QDebugD1Ev+0x43) [0x804dea3]
12:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer25startMysqlDatabaseProcessEv+0x2071)
[0x72fcb1]
13:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x263)
[0x732da3]
14:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x7d)
[0x73303d]
15: /usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x58)
[0x7344f8]
16: akonadiserver(main+0x374) [0x804d204]
17: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x3a4bd6]
18: akonadiserver() [0x804cdc1]
]
" 


Test 16:  ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server did report error during its previous startup into
<a
href='/home/arjuna/.local/share/akonadi/akonadiserver.error.old'>/home/arjuna/.local/share/akonadi/akonadiserver.error.old</a>.

File content of '/home/arjuna/.local/share/akonadi/akonadiserver.error.old':
Database process exited unexpectedly during initial connection! 
executable: "/usr/sbin/mysqld-akonadi" 
arguments: ("--defaults-file=/home/arjuna/.local/share/akonadi//mysql.conf",
"--datadir=/home/arjuna/.local/share/akonadi/db_data/",
"--socket=/home/arjuna/.local/share/akonadi/db_misc/mysql.socket") 
stdout: "" 
stderr: "100421 14:27:16 [ERROR] Wrong option to sql-mode. Option(s) given:
strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
Alternatives are:
'REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','?','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','ALLOW_INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH'
: Success
100421 14:27:16 [ERROR] Aborting

" 
exit code: 1 
process error: "Unknown error" 
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x8052265]
1: akonadiserver() [0x8052726]
2: [0x669400]
3: [0x669422]
4: /lib/tls/i686/cmov/libc.so.6(gsignal+0x51) [0x694651]
5: /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x697a82]
6: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x8c) [0x16d2dc]
7: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xc4) [0x80537a4]
8: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x8e) [0x20546e]
9: /usr/lib/libQtCore.so.4(+0x10a275) [0x21a275]
10: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3d) [0x21b78d]
11: akonadiserver(_ZN6QDebugD1Ev+0x43) [0x804dea3]
12:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer25startMysqlDatabaseProcessEv+0x2071)
[0xc43cb1]
13:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x263)
[0xc46da3]
14:
/usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x7d)
[0xc4703d]
15: /usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x58)
[0xc484f8]
16: akonadiserver(main+0x374) [0x804d204]
17: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x680bd6]
18: akonadiserver() [0x804cdc1]
]
" 


Test 17:  SUCCESS
--------

No current Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its
current startup.

Test 18:  SUCCESS
--------

No previous Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its
previous startup.



The crash can be reproduced some of the time.

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7704990 (LWP 3118))]

Thread 2 (Thread 0xb11d6b70 (LWP 3196)):
#0  0x0599fecf in ?? () from /lib/libglib-2.0.so.0
#1  0x059a04b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#2  0x01ae160f in QEventDispatcherGlib::processEvents (this=0xb2e00ef0,
flags=...) at kernel/qeventdispatcher_glib.cpp:414
#3  0x01ab4059 in QEventLoop::processEvents (this=0xb11d6270, flags=) at
kernel/qeventloop.cpp:149
#4  0x01ab44aa in QEventLoop::exec (this=0xb11d6270, flags=...) at
kernel/qeventloop.cpp:201
#5  0x019b05a8 in QThread::exec (this=0x9ae5d00) at thread/qthread.cpp:487
#6  0x01a93c1b in QInotifyFileSystemWatcherEngine::run (this=0x9ae5d00) at
io/qfilesystemwatcher_inotify.cpp:248
#7  0x019b332e in QThreadPrivate::start (arg=0x9ae5d00) at
thread/qthread_unix.cpp:248
#8  0x00db896e in start_thread (arg=0xb11d6b70) at pthread_create.c:300
#9  0x0092ca0e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7704990 (LWP 3118)):
[KCrash Handler]
#6  0x00ca2b50 in KontactInterface::Plugin::part (this=0x9528ad0) at
../../kontactinterface/plugin.cpp:190
#7  0x0705ad7a in KOrganizerUniqueAppHandler::newInstance (this=0x95031a8) at
../../../../kontact/plugins/korganizer/korg_uniqueapp.cpp:33
#8  0x00ca47e9 in KontactInterface::UniqueAppHandler::newInstance
(this=0x95031a8, asn_id=..., args=...) at
../../kontactinterface/uniqueapphandler.cpp:129
#9  0x00ca4874 in KontactInterface::UniqueAppHandler::qt_metacall
(this=0x95031a8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfad8d1c) at
./uniqueapphandler.moc:79
#10 0x00a0db34 in QDBusConnectionPrivate::deliverCall (this=0x9169d60,
object=0x95031a8, msg=..., metaTypes=..., slotIdx=4) at qdbusintegrator.cpp:904
#11 0x00a0eddf in QDBusConnectionPrivate::activateCall (this=0x9169d60,
object=0x95031a8, flags=272, msg=...) at qdbusintegrator.cpp:809
#12 0x00a0f5ac in QDBusConnectionPrivate::activateObject (this=0x9169d60,
node=..., msg=..., pathStartPos=26) at qdbusintegrator.cpp:1383
#13 0x00a0fb1a in QDBusActivateObjectEvent::placeMetaCall (this=0x9709c10) at
qdbusintegrator.cpp:1477
#14 0x01ac63fe in QObject::event (this=0x95031a8, e=0x9709c10) at
kernel/qobject.cpp:1248
#15 0x01d004dc in QApplicationPrivate::notify_helper (this=0x9176fd8,
receiver=0x95031a8, e=0x9709c10) at kernel/qapplication.cpp:4300
#16 0x01d0705e in QApplication::notify (this=0xbfad9734, receiver=0x95031a8,
e=0x9709c10) at kernel/qapplication.cpp:3704
#17 0x00687f2a in KApplication::notify (this=0xbfad9734, receiver=0x95031a8,
event=0x9709c10) at ../../kdeui/kernel/kapplication.cpp:302
#18 0x01ab5a3b in QCoreApplication::notifyInternal (this=0xbfad9734,
receiver=0x95031a8, event=0x9709c10) at kernel/qcoreapplication.cpp:704
#19 0x01ab8473 in QCoreApplication::sendEvent (receiver=0x0, event_type=0,
data=0x91524e0) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#20 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x91524e0) at kernel/qcoreapplication.cpp:1345
#21 0x01ab85dd in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1238
#22 0x01ae1adf in QCoreApplication::sendPostedEvents (s=0x917af30) at
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#23 postEventSourceDispatch (s=0x917af30) at
kernel/qeventdispatcher_glib.cpp:276
#24 0x0599c5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#25 0x059a02d8 in ?? () from /lib/libglib-2.0.so.0
#26 0x059a04b8 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#27 0x01ae15d5 in QEventDispatcherGlib::processEvents (this=0x9152070,
flags=...) at kernel/qeventdispatcher_glib.cpp:412
#28 0x01dc0135 in QGuiEventDispatcherGlib::processEvents (this=0x9152070,
flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#29 0x01ab4059 in QEventLoop::processEvents (this=0xbfad9694, flags=) at
kernel/qeventloop.cpp:149
#30 0x01ab44aa in QEventLoop::exec (this=0xbfad9694, flags=...) at
kernel/qeventloop.cpp:201
#31 0x01ab869f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#32 0x01d00577 in QApplication::exec () at kernel/qapplication.cpp:3579
#33 0x0804b472 in main (argc=1, argv=0xbfad9954) at
../../../kontact/src/main.cpp:224

Possible duplicates by query: bug 218747, bug 194268.

Reported using DrKonqi

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list