-
Notifications
You must be signed in to change notification settings - Fork 664
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
OpenPandora ARM: sync client crashes with memory/stack corruption #400
Comments
I can only guess here, but it think it is a getenv issue. A 'bt full' would be better than just a 'bt'. However I pushed a fix for getenv to csync. |
@eyecreate could check what the value of the environment variable HOME is? You could try to set it correctly. |
pulled @gladiac s patches to ocsync branch. |
The patch did not fix the issue. If I comment out any of the code using the stack, no SIGSEGV appears there, but another similar SIGSEGV shows up elsewhere in the csync code where stack is being used further along(like csync_init's errbuf). I've now attached a full backtrace and related info. Backtrace: Script line that sets HOME var for this program: Also, some discussion about this problem on the board for this device in case it gives better context: |
@eyecreate sorry, but I think that is a platform problem, not related to csync in the first place. |
Okay, will look in that direction. Thanks for your time. |
Ok, I'll close here, please reopen if you think we can help somehow. Good luck :-) |
Using a newer set of libs/gcc seems to have made this issue disappear. |
Compiling the sync client(1.2.1) for OpenPandora ARM linux system seems to have issue with stack corruption.
backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 10490]
csync_get_user_home_dir ()
at /home/eyecreate/Pandora/owncloudsync/ocsync-0.70.4/src/csync_misc.c:89
89 /home/eyecreate/Pandora/owncloudsync/ocsync-0.70.4/src/csync_misc.c: No such file or directory.
in /home/eyecreate/Pandora/owncloudsync/ocsync-0.70.4/src/csync_misc.c
(gdb) bt
#0 csync_get_user_home_dir ()
#1 0x40d6cf04 in csync_create (csync=0x438a0824,
#2 0x40d3ca38 in Mirall::CSyncThread::startSync() ()
from /mnt/utmp/owncloudsync/lib/libowncloudsync.so.0
#3 0x40d504b0 in Mirall::CSyncThread::qt_metacall(QMetaObject::Call, int, void**) () from /mnt/utmp/owncloudsync/lib/libowncloudsync.so.0
#4 0x40c18524 in QMetaObject::metacall(QObject_, QMetaObject::Call, int, void_) () from /usr/lib/libQtCore.so.4
#5 0x40c25620 in QObject::event(QEvent) () from /usr/lib/libQtCore.so.4
#6 0x401408a8 in QApplicationPrivate::notify_helper(QObject_, QEvent_) ()
from /usr/lib/libQtGui.so.4
#7 0x4014ab94 in QApplication::notify(QObject_, QEvent_) ()
from /usr/lib/libQtGui.so.4
#8 0xbefff604 in ?? ()
#9 0xbefff604 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Link should be the Valkryrie Valgrind XML output from the x86_64 version showing where issues were detected:
http://boards.openpandora.org/index.php?app=core&module=attach§ion=attach&attach_id=5620
The text was updated successfully, but these errors were encountered: