-
Notifications
You must be signed in to change notification settings - Fork 107
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
Segmentation fault when supervisorctl start ccrelay #448
Comments
Is this running in a container or some env that is memory constrained? If you could get a backtrace somehow, then that would help. I'm affraid for that you would have to build from source if there are no debugsymbols available. |
To be precise, you never see |
no @grobian this is running on a physical hardware. I've tried the latest version and also 3.4. Both I've compiled myself from source. There seems to be plentiful memory available on the server. Configuration does get parsed: Segmentation fault Minimal configuration (just the -f) fails with segmentation fault as well |
Then if you could, please ./configure && make and run the config with gdb --args ./relay, type |
gdb --args ./relay -f /opt/ccrelay/etc/ccrelay.cfg Program received signal SIGSEGV, Segmentation fault. |
...and thank you very much for suggesting how to use gdb to narrow down the source!. |
Can you share your clusters from your config? The crash should be fixed, but I'm trying to see what you're doing :) |
one of the variables in ccrelay.cfg was not properly resolved |
Aha, nice! And you wanted this to mean ADDR_ANY or something? |
there was supposed to be a variable containing fqdn's of nodes inserted there. |
Throw an error when a cluster contains servers that are specified without host. That situation is OK for listeners, but not for destinations, of course. Closes: grobian#448 Signed-off-by: Fabian Groffen <[email protected]>
Installed latest version of ccrelay.
relay -v
carbon-c-relay v3.7.4 (d22cec-dirty)
enabled support for: gzip ssl
regular expressions library: PCRE
running on debian buster
cat /etc/debian_version
10.12
when supervisorctl start ccrelay :
Segmentation fault
in /var/log/messages
kernel: [2756009.582926] relay[2969]: segfault at 0 ip 00007fe44ef1f11e sp 00007ffd79c87bf8 error 4 in libc-2.28.so[7fe44edea000+147000]
I'm attempting to run this command:
/opt/ccrelay/bin/relay -f /opt/ccrelay/etc/ccrelay.cfg [-S 30 -b 50000 -w 18 -q 15000000 -p -H -d
[2022-08-16 16:18:10] starting carbon-c-relay v3.7.4 (d22cec-dirty), pid=4523
configuration:
relay hostname =
workers = 18
send batch size = 50000
server queue size = 15000000
server max stalls = 4
listen backlog = 32
server connection IO timeout = 600ms
idle connections disconnect timeout = 10m
debug = true
configuration = /opt/ccrelay/etc/ccrelay.cfg
Would appreciate any pointers on how to look into this further, or what the issue might be.
The text was updated successfully, but these errors were encountered: