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

relay segfaulting when configured with any_of #4

Closed
davewongillies opened this issue Mar 13, 2014 · 1 comment
Closed

relay segfaulting when configured with any_of #4

davewongillies opened this issue Mar 13, 2014 · 1 comment

Comments

@davewongillies
Copy link
Contributor

I've got a simple setup using any_of in my config:

cluster default
    any_of
        127.0.0.1:2003
        127.0.0.1:2103
        127.0.0.1:2203
        127.0.0.1:2303
    ;

match *
    send to default
    stop
    ;

After a small amount of time, relay segfaults with:

Mar 13 02:52:25 sg1infmnp006 kernel: [46512476.556928] carbon-relay[3562]: segfault at 38 ip 00007fef26404e84 sp 00007fef25c19f40 error 4 in libpthread-2.15.so[7fef263fb000+18000]

Looking at it with gdb, I see:

Program terminated with signal 11, Segmentation fault.
#0  0x00007f8afad37e84 in pthread_mutex_lock () from /lib/x86_64-linux-gnu/libpthread.so.0

This is on Ubuntu 12.04, which currently uses 2.15-0ubuntu10.5 of libc6. I've tested it out using carbon_ch instead and haven't had it segfault at all.

@grobian
Copy link
Owner

grobian commented Mar 14, 2014

Thanks, I noticed the same thing, right before I left for holiday. The 0.18 version doesn't seem to have it, but I'll fix it asap. Needless to say, the latest tag isn't used in production :) Thanks for the report!

grobian pushed a commit that referenced this issue Mar 14, 2014
When the last secondary had data in its queue, but not enough to make us
consider "helping out" that secondary, queue would be set to NULL, but
qlen != 0, therefore the loop wrongly didn't terminate.
@grobian grobian closed this as completed Mar 14, 2014
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Oct 8, 2019
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Dec 20, 2019
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Jan 23, 2020
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Jan 30, 2020
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Jan 30, 2020
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Jan 30, 2020
msaf1980 added a commit to msaf1980/carbon-c-relay that referenced this issue Feb 13, 2021
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

2 participants