Bug 295921 - x11-wm/obconf: Segfaults when changing theme
Summary: x11-wm/obconf: Segfaults when changing theme
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Roman Bogorodskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-07 15:18 UTC by Fernando Apesteguía
Modified: 2026-06-13 11:22 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (novel)


Attachments
proposed patch (533 bytes, patch)
2026-06-08 12:02 UTC, Roman Bogorodskiy
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Apesteguía freebsd_committer freebsd_triage 2026-06-07 15:18:25 UTC
Fresh install of openbox 3.6_14 and obconf 2.0.4_7.

obconf starts up. When clicking on a theme, it segfaults with:

(obconf:2933): Pango-WARNING **: 17:06:55.829: Invalid UTF-8 string passed to pango_layout_set_text()
Segmentation fault         (core dumped) obconf

Running FreeBSD 16.0-CURRENT #3 main-n286229-3118f1b99f23
Comment 1 Roman Bogorodskiy freebsd_committer freebsd_triage 2026-06-08 12:02:11 UTC
Created attachment 271618 [details]
proposed patch

Hi,

Could you create a files directory in the x11-wm/obconf port, drop in the attached patch there, rebuild and check if it fixes the issue?
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2026-06-08 20:54:54 UTC
(In reply to Roman Bogorodskiy from comment #1)

Yep! This works :-)

Thanks!

P.S: Will you upstream this?
Comment 3 commit-hook freebsd_committer freebsd_triage 2026-06-09 08:03:32 UTC
A commit in branch main references this bug:

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

commit d0654a3fb62625e87dae24308ebdfebda6e088a8
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2026-06-09 07:58:59 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2026-06-09 08:02:18 +0000

    x11-wm/obconf: fix crash on theme change

    Fix crashing on theme change caused by incorrect
    error handling.

    PR:             295921
    Reported by:    fernape

 x11-wm/obconf/Makefile                     |  2 +-
 x11-wm/obconf/files/patch-src_tree.c (new) | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
Comment 4 Roman Bogorodskiy freebsd_committer freebsd_triage 2026-06-09 08:19:23 UTC
(In reply to Fernando Apesteguía from comment #2)

Great, thanks for testing!

I have opened a pull request: https://github.com/danakj/obconf/pull/13, but I'm not really sure if anything is going to happen. The latest release was 2013.
Comment 5 commit-hook freebsd_committer freebsd_triage 2026-06-13 11:22:06 UTC
A commit in branch 2026Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=436f729ca814b5780fda5a417eb38d89e0b9aecb

commit 436f729ca814b5780fda5a417eb38d89e0b9aecb
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2026-06-09 07:58:59 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2026-06-13 11:20:17 +0000

    x11-wm/obconf: fix crash on theme change

    Fix crashing on theme change caused by incorrect
    error handling.

    PR:             295921
    Reported by:    fernape

    (cherry picked from commit d0654a3fb62625e87dae24308ebdfebda6e088a8)

 x11-wm/obconf/Makefile                     |  2 +-
 x11-wm/obconf/files/patch-src_tree.c (new) | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)