From owner-freebsd-current@FreeBSD.ORG Wed Oct 15 09:34:30 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C583216A4BF; Wed, 15 Oct 2003 09:34:30 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D569043FBD; Wed, 15 Oct 2003 09:34:27 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id h9FGYNrq021795; Wed, 15 Oct 2003 12:34:23 -0400 (EDT) Date: Wed, 15 Oct 2003 12:34:23 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Alexander Motin In-Reply-To: <3F8D65E2.2090605@alkar.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: David Xu Subject: Re: KSE & MySQL & rc.d X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Oct 2003 16:34:30 -0000 On Wed, 15 Oct 2003, Alexander Motin wrote: > David Xu wrote: > > Alexander Motin wrote: > >> This patch did not fix the problem. On the 4th boot system hang with > >> same symptoms. > >> > >> Daniel Eischen wrote: > >> > >>>> I have P4 system with SMP kernel and HyperThreading enabled. > >>>> I have one strange problem with mysql 4.1.0 when using KSE on > >>>> 5.1-CURRENT. > >>> > >>> > > I have been running MySQL 4.1.0 on my SMP machine for monthes, it is > > not P4 HyperThreading, > > but a dual P3 machine, it just works fine for me. > > Do you have 5.1-CURRENT on your machine? Do you using KSE? Yes, he is a KSE developer and runs -current. > > > >>>> After building mysql server with libkse as thread library and adding > >>>> its start script into /usr/local/etc/rc.d, system hangs on boot > >>>> without any error message when mysql trying to start. > >>> > >>> > > Did kernel lock up or can you press ctrl+c to see if you can interrupt it ? > > After that computer do not respond on Ctrl+C, Ctrl+Alt+Del, Enter or any > other key. > > > >>>> If I trying to start mysql by hands after system completely boot > >>>> then everything works just fine. > >>>> If I add delay into mysql start script and run it in backgroud from > >>>> rc.d - everything is fine > >>> > >>> > > If you build mysql from ports, it should install script mysql-server.sh > > under /usr/local/etc/rc.d, > > the default script will run mysqld_safe in background, I am confused > > that you need to > > manually turn it into background, the work should be done atomically by > > the script. > > I had built mysql by hands from sources with options: Please use the port and use libmap.conf to change the threads library from libc_r to libkse. You may be unknowingly missing freebsd-specific patches or linking to both libc_r and libkse. -- Dan Eischen