in reply to POE program running into sporadic segfault

What would really help here is to have debugging symbols on your libc.so and libperl.so, so you could do an "l" and see what exact code was being run in those crashing functions, with what values. On Debian derivatives that should be achievable by installing the appropriate packages.

A quick surmise from the first stack-trace is that Net::Curl appears to be pthreading to do its thing, then calling a Perl callback. Perl in this context may or may not be thread-safe, which would explain crashes. You haven't published an SSCCE so we can't really tell more than that. You should update to include one.

  • Comment on Re: POE program running into sporadic segfault

Replies are listed 'Best First'.
Re^2: POE program running into sporadic segfault
by pango (Initiate) on Aug 29, 2024 at 00:00 UTC

    I apologize for not being able to provide an SSCCE, as this segfault seems to happen in some multi-threaded context that is hard to reproduce for me at the moment.

    Looking again at the stacktrace, I took a look at libcurl in this environment and realized that it is a pretty old version of libcurl (7.61) even though it is the standard libcurl for Oracle Linux 8 (supposedly still supported). I've attempted to rebuild and install libcurl from source to a newer version and use that instead.