After updating herbstluftwm to 0.8.0 it now segfaults when starting via `startx`. I'm executing herbstluftwm like so in my $HOME/.xinitrc file: exec herbstluftwm I don't see anything in the output of startx to indicate an error other than the fact that Xorg failed to start and I see a core dump for herbstluftwm in my home directory. I can provide this core dump if needed, but I'll have to upload it somewhere is it's a 9.8 Mb file (too large to upload here).
Indeed. Could you share output of this method? https://www.freebsd.org/doc/en/books/developers-handbook/debugging.html#idp45982584 gdb (gdb) core herbstluftwm.core (gdb) bt I tried it but doesn't print functions only '???' (I'm not developer or gdb-expert).
https://lists.schokokeks.org/pipermail/hlwm/2020-April/000304.html
Created attachment 213596 [details] Fix segmentation fault Fix segmentation fault, based on https://lists.schokokeks.org/pipermail/hlwm/2020-April/000304.html Tested, it works without segmentation fault.
Should merge into quarterly too.
https://github.com/herbstluftwm/herbstluftwm/pull/840
Checking the github link. Please don't commit!
Created attachment 213597 [details] Official patch https://github.com/herbstluftwm/herbstluftwm/pull/840/commits/bb79310915c04d3f3cdca656fc1787d5431861e8
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245779
Sorry for the delayed response, I can confirm that the submitted patch does resolve the issue when applied and herbstluftwm is rebuilt with it. One thing that threw me off is the patch seems to expect that the current working directory seems to be <Ports root>/x11-wm/herbstuftwm rather than directly in the ports root dir.
(In reply to Adam Jimerson from comment #9) The 0.8.1 is released with bugfixes - see above the report. About patch: I'm using own script to maintain ports and I forgot overwrite the 'svn diff'. I'll do it :)
(In reply to Zsolt Udvari from comment #10) Moin moin So are you planning to simply upgrade to 0.8.1 or should the fix be committed first? mfg Tobias
(In reply to Tobias C. Berner from comment #11) The 0.8.1 fixes this issue (I tried it). I think should close this report if 245779 is committed.
Adam, the 0.8.1 works well?
The Official patch that is on this ticket, and is part of 0.8.1, is working fine, I have not rebuilt Herbstluftwm since the closure of issue bug #245779. I'll manually upgrade my Herbstluftwm this evening to confirm, but it's probably safe to say this issue could be closed.
I successfully rebuilt Herbstluftwm from ports to update it to 0.8.1, and was able to reload the WM and start it via `startx` without issue. I'll go ahead and close this issue marking it as fixed.