New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--doc-gen returns 1 on success #1965
Comments
It's guile. Building without guile supports succeeds. Possibly related to #1951 ? |
Yeah in case a plugin crashes while quitting, the return code will be 1. But the guile crash you're pointing is supposed to be fixed in 4.0.0, if you run WeeChat normally (with guile compiled), is guile crashing on If yes, please put the backtrace with gdb, and I can take a look. |
It does seem like guile is crashing on |
I built weechat with 4185e7b reverted, and now everything is fine: no crash during doc-gen, guile loads fine, weechat exits cleanly with status 0. Do we know why that commit was necessary in the first place, or what caused the crash on Hurd? |
Okay, using guile 3 solves it. We were using guile 2.0.13. |
OK, even if guile 3 fixes the issue, WeeChat is still supposed to run fine with Guile 2.0, so I'll update the fix I made for GNU/Hurd and make it specific to this OS (as for now I think it's just crashing on this OS with the old code). I target this for version 4.0.1 (should be released very soon), that will address several other issues as well. |
Or if you say it works with Guile 3, maybe the condition should be:
That means the fix I made only applies to GNU/Hurd or Guile < 3. |
Ideally we should understand why the crash happens, rather than just when. Maybe ask a guile developer? |
I agree it would be better to understand, it could be hard to investigate though, there could be interactions between plugins in WeeChat, causing the crash. I'll try to write a minimal program that reproduce the crash. |
For now I'm not able to reproduce such crash outside WeeChat. We can still try to understand and apply a better fix in a future release. |
Bug summary
I'm trying to update the weechat package in nixpkgs (NixOS/nixpkgs#239716). The build currently fails with
Surprisingly, the
weechat-headless --doc-gen
command used in the build returns an exit status of 1 despite theOK
message. I can confirm this by runningWhere
$build
points to Nix's build directory.If I remove the
WEECHAT_EXTRA_LIBDIR
variable, then the command does not load any plugins and succeeds with status 0, so presumably one of the plugins is silently crashing.Steps to reproduce
That's a tough one, sorry. Install nix, clone nixpkgs, check out the above PR, run
nix-build -A weechat-unwrapped --keep-failed
, observe the error. Nix should say something likekeeping build directory '$build'
, setbuild
to that value to experiment.Current behavior
1
Expected behavior
0
Suggested solutions
Additional information
The text was updated successfully, but these errors were encountered: