Bug 267607

Summary: www/sogo-activesync Login fail with 'Unhandled error response' and 'stack overflow detected; terminated'
Product: Ports & Packages Reporter: bugreporter01
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Many People Keywords: crash
Priority: --- Flags: bugzilla: maintainer-feedback? (acm)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://www.freshports.org/www/sogo-activesync/

Description bugreporter01 2022-11-06 19:44:42 UTC
Login with correct credentials, service responds with Unhandled error response.
Logs show that sogod process/service restarts at time of correct credential entry.

Sep 27 16:01:08 sogotest sogod[1019]: stack overflow detected; terminated
Sep 27 16:01:08 sogotest kernel: pid 1019 (sogod), jid 0, uid 846: exited on signal 6

@_martin provided a patch in this forum thread, and it works for me:
https://forums.freebsd.org/threads/sogo-issue.86588/

Will you include this patch in new version?
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-12-28 12:54:21 UTC
From <https://forums.freebsd.org/posts/587445>: 

<https://bugs.sogo.nu/view.php?id=5631>

> 0005631: FreeBSD; sogod crashing ; stack smashing detected; off by one

Patch at <https://bugs.sogo.nu/view.php?id=5631#c16307>
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-01-12 21:07:22 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8bdd13c7aae095b1710dd0d95c1f6dec71528665

commit 8bdd13c7aae095b1710dd0d95c1f6dec71528665
Author:     Martin Waschbüsch <martin@waschbuesch.de>
AuthorDate: 2023-01-12 21:01:06 +0000
Commit:     Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
CommitDate: 2023-01-12 21:01:06 +0000

    www/sogo: Update to 5.8.0

    - Fix build on armv7 arm64
    - www/sogo-activesync: Fix issues on login time
    - Makefile clean up
    PR:             267607 267694 268591 268592
    Reported by:    Robert Clausecker <fuz at fuz.su>, Martin Waschbüsch <martin at waschbuesch.de>, bugreporter01 at freebox.dk

 devel/sope/Makefile | 46 ++++++++++++++++++++++++----------------------
 devel/sope/distinfo |  6 +++---
 www/sogo/Makefile   | 39 +++++++++++++++++++++------------------
 www/sogo/distinfo   |  6 +++---
 www/sogo/pkg-plist  |  7 +++++--
 5 files changed, 56 insertions(+), 48 deletions(-)
Comment 3 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-01-12 21:07:45 UTC
Committed thanks!