Gentoo Archives: gentoo-user

From: ooyh eah <cololo@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] keyserv SIGSEGV
Date: Thu, 22 Mar 2007 11:22:56
Message-Id: 20070322140955.O14733@xnet.nnov.ru
In Reply to: Re: [gentoo-user] keyserv SIGSEGV by ooyh eah
1 i've opened a bug http://bugs.gentoo.org/show_bug.cgi?id=171772
2 but several minutes later i've fixed my problem using this way:
3
4 1. took libmp.so.3 and mp.h from another (little older) working gentoo
5 machine
6 2. put it to /usr/lib and /usr/include on the problem machine
7 3. then i compiled previous release of nis-utils:
8 `emerge "<=net-nds/nis-utils-1.4.1-r1"`
9 4. and voila! it has compiled and keyserv is working properly now.
10
11
12 but the main problem with keyserv in nis-utils-1.4.1-r2 still exists, so i
13 leave it on portage maintainer's responsibility :)
14
15
16 On Thu, 22 Mar 2007, ooyh eah wrote:
17
18 >
19 >
20 >
21 > On Wed, 21 Mar 2007, ooyh eah wrote:
22 >
23 > does anyone know how to solve this problem?
24 > it's very important to me
25 >
26 >
27 >
28 >>
29 >>
30 >>
31 >> On Wed, 21 Mar 2007, ooyh eah wrote:
32 >>
33 >>
34 >> forget to show my make.conf:
35 >>
36 >> CHOST="i686-pc-linux-gnu"
37 >> CFLAGS="-march=k8 -O2 -pipe"
38 >> CXXFLAGS="${CFLAGS}"
39 >> MAKEOPTS="-j2"
40 >> USE="nptl nptlonly -X -gnome -kde -gtk sse mmx 3dnow 3dnowex -ipv6 -fortran
41 >> -krb4 unicode"
42 >>
43 >>
44 >>>
45 >>>
46 >>> there's a strange problem with the keyserv from nis-utils package.
47 >>>
48 >>> it doesn't start within the init.d script
49 >>> and when i try to run keyserv manually it cores dump
50 >>>
51 >>> i do everything as said: before nfs nfs-mount autofs and after portmap
52 >>> but it seems not work anyway
53 >>>
54 >>> i've tried to run keyserv on two different systems: amd64 (32bit version)
55 >>> and PIV with hyperthreading. without any flags in make.conf at first
56 >>> and then with standard ones. on both machines keyserv was unable to start
57 >>> :(
58 >>>
59 >>> what is my mistake?
60 >>>
61 >>>
62 >>> moon ~ # keyserv -D
63 >>> [Welcome to the Keyserver, version 1.4.1]
64 >>> Segmentation fault
65 >>>
66 >>>
67 >>> Gentoo Base System release 1.12.9
68 >>>
69 >>> moon ~ # ls -al /etc/make.profile
70 >>> /etc/make.profile -> /usr/portage/profiles/default-linux/x86/2006.1/server
71 >>>
72 >>> moon ~ # equery list | grep nis
73 >>> net-nds/nis-utils-1.4.1-r2
74 >>>
75 >>> here's a gdb backtrace:
76 >>> ~ # gdb -c core /usr/sbin/keyserv
77 >>> GNU gdb 6.6
78 >>> Copyright (C) 2006 Free Software Foundation, Inc.
79 >>> GDB is free software, covered by the GNU General Public License, and you
80 >>> are
81 >>> welcome to change it and/or distribute copies of it under certain
82 >>> conditions.
83 >>> Type "show copying" to see the conditions.
84 >>> There is absolutely no warranty for GDB. Type "show warranty" for
85 >>> details.
86 >>> This GDB was configured as "i686-pc-linux-gnu"...
87 >>> (no debugging symbols found)
88 >>> Using host libthread_db library "/lib/libthread_db.so.1".
89 >>>
90 >>> warning: Can't read pathname for load map: Input/output error.
91 >>> Reading symbols from /usr/lib/libgmp.so.3...(no debugging symbols
92 >>> found)...done.
93 >>> Loaded symbols for /usr/lib/libgmp.so.3
94 >>> Reading symbols from /lib/libc.so.6...(no debugging symbols
95 >>> found)...done.Loaded symbols for /lib/libc.so.6
96 >>> Reading symbols from /lib/ld-linux.so.2...(no debugging symbols
97 >>> found)...done.
98 >>> Loaded symbols for /lib/ld-linux.so.2
99 >>> (no debugging symbols found)
100 >>> Core was generated by `keyserv -D'.
101 >>> Program terminated with signal 11, Segmentation fault.
102 >>> #0 0xb7f8b1da in __gmpz_init_set_str () from /usr/lib/libgmp.so.3
103 >>> (gdb) bt
104 >>> #0 0xb7f8b1da in __gmpz_init_set_str () from /usr/lib/libgmp.so.3
105 >>> #1 0x0804b013 in ?? ()
106 >>> #2 0x00000000 in ?? ()
107 >>>
108 >>>
109 >>> and here's a strace http://paste.org.ru/?asfoy2
110 >>> --
111 >>> gentoo-user@g.o mailing list
112 >>>
113 >>>
114 >> --
115 >> gentoo-user@g.o mailing list
116 >>
117 >>
118 > --
119 > gentoo-user@g.o mailing list
120 >
121 >
122 --
123 gentoo-user@g.o mailing list