Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901013 - net-misc/seafile-8.0.9 Segmentation fault
Summary: net-misc/seafile-8.0.9 Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Quentin Retornaz
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-13 14:05 UTC by dtoch
Modified: 2023-03-17 07:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix source dir (source-dir-fix.patch,435 bytes, patch)
2023-03-17 07:38 UTC, dtoch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description dtoch 2023-03-13 14:05:14 UTC
Hi there!
net-misc/seafile suddenly stopped working and there were multiple messages like this in dmesg:

[23934.491869] pool[13040]: segfault at 1 ip 00007f7bc9b0232b sp 00007f7bc4ff6828 error 4 in libc.so.6[7f7bc99d7000+151000] likely on CPU 0 (core 0, socket 0)
[23934.491887] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 29 03 00 00 c5 fe 6f 07 <c5> fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1 74 61 90 f3
[23940.338962] pool[13095]: segfault at 1 ip 00007f7b61e4532b sp 00007f7b5cbf5828 error 4 in libc.so.6[7f7b61d1a000+151000] likely on CPU 4 (core 8, socket 0)
[23940.338974] Code: f8 77 c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 c4 41 01 ef ff 89 f8 09 f0 c1 e0 14 3d 00 00 00 f8 0f 87 29 03 00 00 c5 fe 6f 07 <c5> fd 74 0e c5 85 74 d0 c5 ed df c9 c5 fd d7 c9 ff c1 74 61 90 f3

After some investigation, I found a patch from the developers that fixed this issue.

Maybe it will be useful for someone.

Link to patch: https://github.com/haiwen/seafile/commit/f89bdb4b55b5c21c19709476085f18470668eb0f

Classical uninitialized variable.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-13 20:41:50 UTC
But that patch seems to be in 8.0.9.
Comment 2 dtoch 2023-03-14 07:32:18 UTC
(In reply to Sam James from comment #1)
> But that patch seems to be in 8.0.9.

Well, it is in release 8.0.9. However now in net-misc/seafile/seafile-8.0.9.ebuild sources used not from tag 'v8.0.9' but 'RELEASE_COMMIT="6bd36a957573eda6a53f3d1bc538dbfc001aa9fd"'. Commit for v8.0.9 tag is f89bdb4b55b5c21c19709476085f18470668eb0f.
Comment 3 Larry the Git Cow gentoo-dev 2023-03-16 23:54:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adfaf2ed6d9d1b3c7f15c2f46ce858360c3d53c6

commit adfaf2ed6d9d1b3c7f15c2f46ce858360c3d53c6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-16 23:54:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-16 23:54:16 +0000

    net-misc/seafile: fix commits used for tags
    
    Closes: https://bugs.gentoo.org/901013
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/seafile/Manifest                                           | 4 ++--
 .../seafile/{seafile-8.0.10.ebuild => seafile-8.0.10-r1.ebuild}     | 6 ++++--
 net-misc/seafile/{seafile-8.0.9.ebuild => seafile-8.0.9-r1.ebuild}  | 6 ++++--
 3 files changed, 10 insertions(+), 6 deletions(-)
Comment 4 dtoch 2023-03-17 07:38:12 UTC
Created attachment 858043 [details, diff]
Fix source dir

Update failed with:
 * ERROR: net-misc/seafile-8.0.9-r1::gentoo failed (prepare phase):
 *   The source directory '/var/tmp/portage/net-misc/seafile-8.0.9-r1/work/seafile-' doesn't exist
 * 

Patch added