Bug 293558 - deskutils/gsimplecal: core dumps on startup
Summary: deskutils/gsimplecal: core dumps on startup
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Nuno Teixeira
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-03 13:58 UTC by Ludger Bolmerg
Modified: 2026-03-08 20:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludger Bolmerg 2026-03-03 13:58:30 UTC
I am running 15.0-RELEASE-p4, deskutils/gsimplecal-2.5.2 installed from packages

% gdb /usr/local/bin/gsimplecal gsimplecal.core                               ~
GNU gdb (GDB) 15.1 [GDB v15.1 for FreeBSD]
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd15.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/gsimplecal...
(No debugging symbols found in /usr/local/bin/gsimplecal)
[New LWP 100500]
Core was generated by `gsimplecal'.
Program terminated with signal SIGABRT, Aborted.
Sent by thr_kill() from pid 61201 and user 1000.
#0  0x00000008304969ea in thr_kill () from /lib/libsys.so.7
(gdb) bt
#0  0x00000008304969ea in thr_kill () at /lib/libsys.so.7
#1  0x0000000825391894 in raise () at /lib/libc.so.7
#2  0x00000008254436f9 in abort () at /lib/libc.so.7
#3  0x0000000824164fb8 in ??? () at /lib/libcxxrt.so.1
#4  0x00000008241630e9 in std::terminate() () at /lib/libcxxrt.so.1
#5  0x00000008241635d4 in ??? () at /lib/libcxxrt.so.1
#6  0x00000008241634e9 in __cxa_throw () at /lib/libcxxrt.so.1
#7  0x000000000020a469 in ??? ()
#8  0x0000000000208fe2 in ??? ()
#9  0x000000082536637f in __libc_start1 () at /lib/libc.so.7
#10 0x00000000002065e4 in ??? ()
(gdb)
Comment 1 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-03 19:02:51 UTC
I can replicate it on 16-CURRENT (main-n284153-d2dea8b46a8a).
Any clues about it?
Comment 2 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-03 20:22:02 UTC
(In reply to Nuno Teixeira from comment #1)
(...)

In my run-test, program crashes after I close it.
Comment 3 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-08 10:31:37 UTC
(In reply to Ludger Bolmerg from comment #0)

Are you using a tiling manager (e.g., XMonad, Awesome, i3)?
I will take a look and check if tiling managers could cause problems and what options should be used to fix it.

In worst case, I'm planing a build with debug, get a trace of core dump ans send it to upstream.
Comment 4 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-08 10:44:25 UTC
(In reply to Nuno Teixeira from comment #3)
(...)

Just found out that:

1- gsimplecal crashes if no ~/config/gsimplecal/config exists. If not exists, use the sample config found in man page

2- When config file exists, program crashes in the end (i.e., when closing it).
if program is run with `% env LC_ALL=C gsimplecal`, probloem is fixed and no core dump.
Comment 5 Ludger Bolmerg 2026-03-08 12:56:18 UTC
(In reply to Nuno Teixeira from comment #3)
no tiling manager here.

I am using x11-wm/openbox and x11/tint2
Comment 6 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-08 15:03:59 UTC
(In reply to Ludger Bolmerg from comment #5)

Do you tried point 1 and 2 from #c4 ?
Comment 7 Ludger Bolmerg 2026-03-08 17:21:00 UTC
(In reply to Nuno Teixeira from comment #6)

I have created .config/gsimplecal/config and copied the sample config from the man page into that file.
I can confirm that I don´t get core dumps any longer.

Terminating gsimplecal by executing the program a second time does also work without core dumps.

Thanks a lot, this solved my issue
Comment 8 Nuno Teixeira freebsd_committer freebsd_triage 2026-03-08 20:17:22 UTC
(In reply to Ludger Bolmerg from comment #7)

Thanks for testing and reporting.

I've also forgot that port have a pkg-message:

[
{ type: install
  message: <<EOM
In order to use gsimplecal it is required to create a configuration file in
~/.config/gsimplecal

See man gsimplecal for an example of such a configuration file.

EOM
}
]

:)