Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jan 2001 11:31:57 -0500
From:      "Jonathan Roy" <roy@efront.com>
To:        "Ken Menzel" <kenm@icarz.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Mysqld/libc_r problems in getsockname()?
Message-ID:  <200101171131570630.00657E95@smtp-server.tampabay.rr.com>
In-Reply-To: <02d601c06f69$f3836e20$711663cf@icarz.com>
References:  <200012261126300710.00653A19@smtp-server.tampabay.rr.com> <02d601c06f69$f3836e20$711663cf@icarz.com>

next in thread | previous in thread | raw e-mail | index | archive | help

  This did seem to fix the problem right up. All core dumps in
getsockname() have stopped. Is this fix a part of -stable now?

-Jonathan

*********** REPLY SEPARATOR  ***********

On 12/26/2000 at 1:30 PM Ken Menzel wrote:

>Hi Johnathon,  Max Thon gave me this patch to try.  You can see if it
>works for you, if you like,  or I understand there will be a fix to
>FreeBSD-stable in the next few days.   If you try this patch,  install
>the patch,  buildworld, installworld,  then recompile MySQL as this
>patch changes the compiler.
>Ken
>
>RCS file: /home/ncvs/src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v
>retrieving revision 1.5.2.1
>diff -u -r1.5.2.1 freebsd-native.h
>--- freebsd-native.h 2000/11/11 21:52:40 1.5.2.1
>+++ freebsd-native.h 2000/12/06 17:56:06
>@@ -52,7 +52,4 @@
> #define LIBGCC_SPEC \
>  "%{!shared: \
>     %{!pthread:libgcc.a%s} \
>-    %{pthread:libgcc_r.a%s}} \
>-  %{shared: \
>-    %{!pthread:libgcc_pic.a%s} \
>-    %{pthread:libgcc_r_pic.a%s}}"
>+    %{pthread:libgcc_r.a%s}}"
>
>-----------------------------------------------------
>Ken Menzel  ICQ# 9325188
>www.icarz.com  kenm@icarz.com
>----- Original Message -----
>From: "Jonathan Roy" <roy@efront.com>
>To: <freebsd-questions@FreeBSD.ORG>
>Sent: Tuesday, December 26, 2000 11:26 AM
>Subject: Mysqld/libc_r problems in getsockname()?
>
>
>>
>>   Hi there. I wrote to the mysql developers list, and they thought
>the
>> problem may be in the system libraries or from linking both libc and
>> libc_r. I checked with ldd and only libc_r is being linked. I'm
>getting
>> common (15-20 per day) seg faults in mysqld, in both 3.22 and 3.23,
>with
>> the latest versions compiled and installed from /usr/ports/database.
>The
>> specific version in place right now is 3.23.29a-gamma. The kernel/OS
>is
>> FreeBSD 4.2-RELEASE. gdb gives me the following stack trace:
>>
>> (gdb) where
>> #0  0x80b1e96 in getsockname ()
>> #1  0x8b15100 in ?? ()
>> #2  0x8085604 in getsockname ()
>> #3  0x8088ca8 in getsockname ()
>> #4  0x80847f9 in getsockname ()
>> #5  0x8083e6c in getsockname ()
>> #6  0x282799a7 in _thread_start () from /usr/lib/libc_r.so.4
>> #7  0xbfa98ffc in ?? ()
>> #8  0x8080415 in getsockname ()
>>
>>   And mysqld is linked as follows:
>>
>> /usr/local/libexec/mysqld:
>>         libwrap.so.3 => /usr/lib/libwrap.so.3 (0x281d6000)
>>         libz.so.2 => /usr/lib/libz.so.2 (0x281de000)
>>         libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x281eb000)
>>         libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x28200000)
>>         libm.so.2 => /usr/lib/libm.so.2 (0x28246000)
>>         libc_r.so.4 => /usr/lib/libc_r.so.4 (0x28261000)
>>
>>   If anyone has any ideas on what is wrong and how to fix it, please
>let me
>> know. Thanks!
>>
>> -Jonathan
>>
>> ---
>> Jonathan Roy - roy@efront.com - eFront Media, Inc.
>>
>>
>>
>>
>> To Unsubscribe: send mail to majordomo@FreeBSD.org
>> with "unsubscribe freebsd-questions" in the body of the message
>>


---
Jonathan Roy - roy@efront.com - eFront Media, Inc.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101171131570630.00657E95>