Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.5.0] Seg fault when running on Debian 7.0. #1327

Closed
ghost opened this issue Jan 3, 2014 · 4 comments
Closed

[1.5.0] Seg fault when running on Debian 7.0. #1327

ghost opened this issue Jan 3, 2014 · 4 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jan 3, 2014

When running the latest owncloud-client on Debian Wheezy (7.0), it immediately ends up with a seg. fault.
Here is a gdb session :
$ gdb owncloud
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/owncloud...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/owncloud
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe094c700 (LWP 13785)]
[New Thread 0x7fffe014b700 (LWP 13786)]
[New Thread 0x7fffdf2ce700 (LWP 13787)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff3e41c84 in QTimer::interval() const () from /usr/lib/libowncloudsync.so.0
(gdb) bt
#0 0x00007ffff3e41c84 in QTimer::interval() const () from /usr/lib/libowncloudsync.so.0
#1 0x00007ffff3e3dac8 in Mirall::AbstractNetworkJob::resetTimeout() () from /usr/lib/libowncloudsync.so.0
#2 0x00007ffff3e3fdc4 in Mirall::CheckServerJob::finished() () from /usr/lib/libowncloudsync.so.0
#3 0x00007ffff3e3df2d in Mirall::AbstractNetworkJob::slotFinished() () from /usr/lib/libowncloudsync.so.0
#4 0x00007ffff3e5a6bf in ?? () from /usr/lib/libowncloudsync.so.0
#5 0x00007ffff422254f in QMetaObject::activate(QObject_, QMetaObject const_, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6 0x00007ffff45e4825 in ?? () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#7 0x00007ffff4652905 in ?? () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#8 0x00007ffff4221a2e in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9 0x00007ffff518170c in QApplicationPrivate::notify_helper(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff5185b8a in QApplication::notify(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff420cb5e in QCoreApplication::notifyInternal(QObject_, QEvent_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007ffff42109e1 in QCoreApplicationPrivate::sendPostedEvents(QObject_, int, QThreadData_) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#13 0x00007ffff423b0e3 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007ffff14b3355 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007ffff14b3688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff14b3744 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff423b276 in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff522283e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007ffff420b8af in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007ffff420bb38 in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007ffff4210cf8 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x000000000044859a in main ()

@ogoffart
Copy link
Contributor

ogoffart commented Jan 4, 2014

Thanks for the backtrace.
But the backtrace alone is of little help in this case. Would you be able to launch owncloud with valgrind?

@ghost
Copy link
Author

ghost commented Jan 4, 2014

The valgrind crash report can be found at https://gist.github.com/jmichelet/8253977

@ogoffart
Copy link
Contributor

ogoffart commented Jan 4, 2014

Thanks.

Relevant trace:

==2374== Invalid read of size 4
==2374==    at 0x8C18C84: QTimer::interval() const (in /usr/lib/libowncloudsync.so.1.5.0)
==2374==    by 0x8C14AC7: Mirall::AbstractNetworkJob::resetTimeout() (in /usr/lib/libowncloudsync.so.1.5.0)
==2374==    by 0x8C16DC3: Mirall::CheckServerJob::finished() (in /usr/lib/libowncloudsync.so.1.5.0)
==2374==    by 0x8C14F2C: Mirall::AbstractNetworkJob::slotFinished() (in /usr/lib/libowncloudsync.so.1.5.0)
==2374==    by 0x8C316BE: ??? (in /usr/lib/libowncloudsync.so.1.5.0)
==2374==    by 0x883A54E: QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (in /usr/lib/x86_64-linux-gnu/libQtCore.so.4.8.2)
==2374==  Address 0x14 is not stack'd, malloc'd or (recently) free'd

It looks like _timer is null in AbstractNetworkJob::resetTimeout

@dragotin
Copy link
Contributor

dragotin commented Jan 7, 2014

I committed 7da84db to fix the crash, but that smells: Why is the _timer variable zero? I think there is no timeout set, should it be?

@danimo could you please double check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants