Skip to content
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

core dumps on openbsd when running the binary (built from source) #294

Open
HappyGoFishing opened this issue Oct 1, 2023 · 2 comments
Open

Comments

@HappyGoFishing
Copy link

No description provided.

@Johann150
Copy link
Collaborator

Please be a bit more descriptive. See the contributing guidelines.

What did you do immediately before agate crashes? What command line arguments are you passing? What is the content of your configuration files (if any)?

@mgazeel
Copy link

mgazeel commented Aug 9, 2024

I can confirm that this still happens, there is no immediate action before agate crashing it just seems to do it randomly, and the logs do not show anything. (some kind of memory pool exhaustion or allocator issue?)

I am using agate version 3.3.8
The invokation command is: agate --content /usr/gemini/ --addr 0.0.0.0:1965 --lang pl-PL --log-ip --certs [CERT DIR]
No configuration files are used.

I've enabled coredump generation the next time it happens I'll look through it and maybe find exactly where it fails.

Repro:

OpenBSD 7.5 on x86:

  1. cargo install agate
  2. cp /home/whatever/.cargo/bin/agate /usr/

Add the following service to /etc/rc.d/agated:

#!/bin/ksh
#

daemon="/usr/agate"
daemon_user="someuser"
daemon_logger="daemon.info"
daemon_flags="--content /whatever/ --addr 0.0.0.0:1965 --lang pl-PL --log-ip --certs /whetever/"

. /etc/rc.d/rc.subr

rc_reload=NO
rc_bg=YES

rc_cmd $1
  1. rcctl start agated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants