Hi!

I have a strange problem in combination with PTH 2.0.0. After PTH was initialized and the threads were started, the process terminates at the pth_join command with a SIGSEGV.

I traced the segfault back to the __errno_location function called by read, which was invoked by the pth_sched_eventmanager at line 592:

---
    /* clear pipe and let select() wait for the read-part of the pipe */
    while (pth_sc(read)(pth_sigpipe[0], minibuf, sizeof(minibuf)) > 0) ;
---

I use the mysqlclient library (statically linked) and the pthread-library (dynamically linked) together with PTH (statically linked). No SYCALL-mapping is used.

Does anyone has any idea, which could cause this type faults?

cu
  Daniel Albeseder

PS: below is the debug log, which isnt very expressive.

---
D [main.c:334] init ctrl socket
  [14:46:23.148620] booting processor...
19718:pth_lib.c:0070: pth_init: enter
19718:pth_lib.c:0225: pth_spawn: enter
19718:pth_lib.c:0322: pth_spawn: leave
19718:pth_lib.c:0225: pth_spawn: enter
19718:pth_lib.c:0322: pth_spawn: leave
==== THREAD CONTEXT SWITCH ===========================================
Segmentation fault (core dumped)
---

______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to