From owner-freebsd-stable Sun Dec 17 5: 8:30 2000 From owner-freebsd-stable@FreeBSD.ORG Sun Dec 17 05:08:28 2000 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from relay2.agava.net.ru (2.oivt.mipt.ru [193.125.142.2]) by hub.freebsd.org (Postfix) with ESMTP id DA7C337B400 for ; Sun, 17 Dec 2000 05:08:25 -0800 (PST) Received: from gw.office.agava.ru (2.oivt.mipt.ru [193.125.142.2]) by relay2.agava.net.ru (Postfix) with ESMTP id 0BB8C436F9 for ; Sun, 17 Dec 2000 16:08:23 +0300 (MSK) Received: from hellbell.domain (hellbell.domain [192.168.1.12]) by gw.office.agava.ru (Postfix) with ESMTP id 4C53E5DFD for ; Sun, 17 Dec 2000 16:08:18 +0300 (MSK) Received: from localhost (localhost [127.0.0.1]) by hellbell.domain (Postfix) with ESMTP id BA875CFAF for ; Sun, 17 Dec 2000 16:08:17 +0300 (MSK) Date: Sun, 17 Dec 2000 16:08:17 +0300 (MSK) From: Alexey Zakirov X-Sender: frank@hellbell.domain To: freebsd-stable@freebsd.org Subject: mysql+linuxthreads => linuxthreads problem? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I've just built the mysqld with the linuxthreads (from the ports) and got a problem: mysqld dies by SIGSEGV immediately after the first pthread_create call. I've decided to try a simple linuxthreads example from the linuxthreads distribution (Examples/ex5.c) and it doesn't work. This example must writes a sequence of numbers but it hangs after the first one. But when I compile this example with the native freebsd threads (libc_r) it works just fine! Is there any well-known tricks for correct linuxthreads use? FreeBSD: 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Dec 16 16:37:10 MSK 2000 (cvsup from yesterday) linuthreads: $FreeBSD: ports/devel/linuxthreads/Makefile,v 1.17 2000/11/06 19:43:33 jasone Exp $ compile string: gcc -D_THREAD_SAFE -I/usr/local/include/linuxthreads -L/usr/local/lib -llgcc_r -llthread -o ex5 ex5.c *** WBR, Alexey Zakirov (frank@agava.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message