-
Notifications
You must be signed in to change notification settings - Fork 670
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
Segfault when clicking on unconfigured SFTP server #6562
Comments
Does not crash when running under gdb. Heisenbug...
Cannot yet reproduce the coredump, I only get lockups. |
@hodyroff maybe related to your SFTP issue? |
Can reproduce. The moment the client detects the mounted folder I see in the logs:
When looking at the discovery code that triggers this error: client/src/libsync/discoveryphase.cpp Lines 384 to 395 in bbf1843
One can tell the server is including the <d:response>
<d:href>/remote.php/dav/files/admin/SFTP/</d:href>
<d:propstat>
<d:prop>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
<d:getetag>""</d:getetag>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response> Therefore the I just sent crash report ¿Same condition was already triggered on #285? |
I can reproduce. Backtrace:
|
…olders In FolderStatusModel::slotLscolFinishedWithError, the call to parentInfo->resetSubs deleted the 'job' and the reply 'r' which we accessed later to get the error code. Fix this problem twice by 1) Get the error code before caling resetSubs 2) in FolderStatusModel::SubFolderInfo::resetSubs, call deleteLater instead of delete Regression introduced in commit d69936e Issue #6562
…olders In FolderStatusModel::slotLscolFinishedWithError, the call to parentInfo->resetSubs deleted the 'job' and the reply 'r' which we accessed later to get the error code. Fix this problem twice by 1) Get the error code before caling resetSubs 2) in FolderStatusModel::SubFolderInfo::resetSubs, call deleteLater instead of delete Regression introduced in commit d69936e Issue #6562
Crash no longer reproduces - closing here as it's fixed. 👍 The leftover collateral of not syncing anything when this error pops up (see my concerns on #6563 (comment)) can be tracked in #5859 (comment) |
Expected behaviour
The ownCloud settings view should display a proper error message for unconfigured SFTP folders.
Actual behaviour
The client segfaults when trying to display the subfolders of the unconfigured SFTP folder.
Steps to reproduce
Server configuration
demo.owncloud.org
Client configuration
Client version:
Operating system: Xubuntu 18.04
OS language: english
Client package (From ownCloud or distro) (Linux only): testpilotcloud-client
Installation path of client: /usr/bin/testpilotcloud
Logs
Backtrace: https://gist.github.com/lefherz/7daf1b2bb6f5fc8eeb15f1ef79a0429e
The text was updated successfully, but these errors were encountered: