Does anyone know what this error is? (Segfault) ... nevermind

by jesse in ,

Ok, I'm at the end of my sanity. I'm finally over the hell-death which is hand, foot and mouth (courtesy of my daughter) which means I can type again, and now I'm stuck trying to debug some dastardly segfault. Here is it (courtesy of /var/log/messages): Jun 30 12:49:13 NON kernel: python[29965]: segfault at 000000010000000f rip 000000000044068e rsp 00002aabea0294b0 error 4

This is on a 64 bit machine. The application is heavily, heavily threaded python using queues for inter-thread communication, and the threads are using libcurl via pycurl under that.

I get no exceptions, no errors: Nothing. The interpreter simply dies. If I attach an strace to it, I see this:

futex(0x2e4a6300, FUTEX_WAKE, 1) = 0 futex(0x2e4a6300, FUTEX_WAKE, 1) = 0 futex(0x2aaaac10cab0, FUTEX_WAIT, 0, NULL) = -1 EINTR (Interrupted system call) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) ---

Any ideas?

Edit: Never mind, I finally found the answer... I removed: curl.setopt(pycurl.CONNECTTIMEOUT, 120) After reading this mail thread, and the code now flies. I love life.