Program received signal SIGSEGV, Segmentation fault.
0x0000000000561ef5 in __ns_initparse ()
(gdb) bt #0 0x0000000000561ef5 in __ns_initparse ()
Cannot access memory at address 0xffd2a510
This may be a longshot, but in the past folks have worked around resolver
problems on Linux but linking to /usr/lib/libresolv.a directly. Worth
giving a try.
FWIW, we run without problems on Red Hat 2.4.21. But we're not running
64-bit native, which it looks like you are. (Our glibc is a slightly older,
but I don't imagine that matters.)
Program received signal SIGSEGV, Segmentation fault.
0x0000000000561ef5 in __ns_initparse ()
(gdb) bt #0 0x0000000000561ef5 in __ns_initparse ()
Cannot access memory at address 0xffd2a510
This may be a longshot, but in the past folks have worked around resolver
problems on Linux but linking to /usr/lib/libresolv.a directly. Worth
giving a try.
FWIW, we run without problems on Red Hat 2.4.21. But we're not running
64-bit native, which it looks like you are. (Our glibc is a slightly older,
but I don't imagine that matters.)
Unfortunately I suggested that our discussion get punted back to the
list since I have no experience with the 64 bit libs on linux. I
suspect that you may be correct about the linking. If that does not
work you may want to explore forcing the issue of compiling & running in
32 bit mode.
If this continues to be a problem, I can ask around here and see what
other peoples suggestions are.
Ah, 64 bit and resolver-problems, that rings a bell: I've seen
core-dumps on a 64bit SUSE Linux which were caused by linking in the
32bit version of the resolver-library. However, I recall that there
was a corresponding warning during compiling/linking (which was easy
to miss though). David, do you see anything like this?
Ah, 64 bit and resolver-problems, that rings a bell: I've seen
core-dumps on a 64bit SUSE Linux which were caused by linking in the
32bit version of the resolver-library. However, I recall that there
was a corresponding warning during compiling/linking (which was easy
to miss though). David, do you see anything like this?
Yes, during the compile of bro the following message is seen:
I assume that is the error we are looking for. Unfortunately, it seems that removing the references to /usr/lib/libresolv.a in each of the Makefiles causes ns_initparse to go undefined and make fails:
That sounds indeed familiar. On the SUSE system, this hack solved
the problem:
(1) Patching configure.in:
--- configure.in~ 2005-12-22 01:12:21.000000000 +0100
+++ configure.in 2005-12-22 01:12:21.000000000 +0100
@@ -241,7 +241,7 @@
dnl Specifying a specific resolver library seems to work/be necessary
dnl on all OSs, but Darwin needs -lresolv instead of
/usr/lib/libresolv.a
dnl We define the default here and overwrite below. --ck
-bro_libresolv="/usr/lib/libresolv.a"
+bro_libresolv="/usr/lib64/libresolv.a"