-
Notifications
You must be signed in to change notification settings - Fork 24
Intermittent segfaults on Ubuntu 14.04 #14
Copy link
Copy link
Open
Description
Not sure if this is the right place to raise this, but I've been unable to get the opencv_engine running reliably due to intermittent segfaults in the cv module taking down the whole thumbor process. It's nothing related to a specific file because I can retry and it works fine. I noticed this during load testing so it may be exacerbated during high load.
It took me a while to find the issue, there was nothing relevant in the thumbor logs, but I noticed 502s and dropped/prematurely closed connections in Nginx. Here's the relevant snippet from syslog:
Feb 12 21:48:30 ip-172-17-0-246 kernel: [ 775.849915] init: thumbor_worker (1) main process (20820) killed by SEGV signal
Feb 12 21:48:30 ip-172-17-0-246 kernel: [ 775.849930] init: thumbor_worker (1) main process ended, respawning
Feb 12 21:48:33 ip-172-17-0-246 kernel: [ 779.087115] thumbor[20891]: segfault at 8 ip 00007faf3f436609 sp 00007fff1054b4e0 error 4 in cv2.so[7faf3f3ff000+14e000]
I tried with both the python-opencv package and building 2.4.10 from source, but saw the same results. Relevant Python packages:
opencv-engine==1.0.0
thumbor==4.8.6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels