Code Monkey home page Code Monkey logo

Comments (7)

talien avatar talien commented on August 15, 2024

Hi!

I have a quick'n'dirty fix for this in my repo (talien/syslog-ng-incubator), on branch f/perl-fixes.
Could you please verify, that this patch solves your use-case? Can you test this patch in threaded(yes) environment? I think I should rethink the unholy marriage of our perl destination and syslog-ng multithreaded model.

from syslog-ng-incubator.

faxm0dem avatar faxm0dem commented on August 15, 2024

unfortunately, your branch causes syslog-ng to segfault every time.
When using master, I get 50% segfaults on startup, and sometimes I get perl errors from init function which seem to indicate a race condition. I suspect something not being enforced in the right order.
Here's the stack trace from your branch:

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/local/sbin/syslog-ng -Fv'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007ff27009cc73 in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Sub/Name/Name.so
(gdb) bt full
#0  0x00007ff27009cc73 in ?? () from /usr/lib/x86_64-linux-gnu/perl5/5.20/auto/Sub/Name/Name.so
No symbol table info available.
#1  0x00007ff271e9dcfb in Perl_pp_entersub () from /usr/lib/x86_64-linux-gnu/libperl.so.5.20
No symbol table info available.
#2  0x00007ff271e965b6 in Perl_av_iter_p () from /usr/lib/x86_64-linux-gnu/libperl.so.5.20
No symbol table info available.
#3  0x000000000255f400 in ?? ()
No symbol table info available.
#4  0x0000000002a05490 in ?? ()
No symbol table info available.
#5  0x00000000025b8440 in ?? ()
No symbol table info available.
#6  0x0000000000000000 in ?? ()
No symbol table info available.

from syslog-ng-incubator.

talien avatar talien commented on August 15, 2024

Hi!

That's bad news. Can you get me the most simple config, on which you can reproduce the segfault?

from syslog-ng-incubator.

juhaszviktor avatar juhaszviktor commented on August 15, 2024

Hi!

Sorry, but I can't reproduce this segfault at my machine.
Can you share your config and the core file of syslog-ng?
And of course description of the steps causes the segfault will be welcome :)
It would be a great help for us.

Thanks,
Viktor

from syslog-ng-incubator.

faxm0dem avatar faxm0dem commented on August 15, 2024

did you run the test on @talien's branch or on master?

from syslog-ng-incubator.

juhaszviktor avatar juhaszviktor commented on August 15, 2024

I tried it on master.

from syslog-ng-incubator.

faxm0dem avatar faxm0dem commented on August 15, 2024

I cannot reproduce with master and a minimal config. Thanks for looking into this

from syslog-ng-incubator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.