You need to call gdb correctly.
gdb /usr/local/bin/nsupdate nsupdate.core
Thanks Mark.
Sorry, I (obviously) don't have much of a clue about using gdb.
% uname -v
NetBSD 4.0.1 (GENERIC) #0: Tue Oct 7 22:58:48 PDT 2008
bui...@wb30:/home/builds/ab/netbsd-4-0-1-RELEASE/i386/200810080053Z-obj/home/builds/ab/netbsd-4-0-1-RELEASE/src/sys/arch/i386/compile/GENERIC
% gdb /usr/local/bin/nsupdate nsupdate.core
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
Reading symbols from /usr/lib/libcrypto.so.3...done.
Loaded symbols for /usr/lib/libcrypto.so.3
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /lib/libcrypt.so.0...done.
Loaded symbols for /lib/libcrypt.so.0
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `nsupdate'.
Program terminated with signal 11, Segmentation fault.
#0 0xbba8a7a1 in memcpy () from /usr/lib/libc.so.12
(gdb) backtrace
#0 0xbba8a7a1 in memcpy () from /usr/lib/libc.so.12
#1 0x080bca73 in mem_realloc (ptr=0x81c21e0, size=136061320)
at openssl_link.c:158
#2 0xbbba9f77 in lh_new () from /usr/lib/libcrypto.so.3
#3 0xbbbaa53f in CRYPTO_realloc () from /usr/lib/libcrypto.so.3
#4 0xbbb4e304 in sk_insert () from /usr/lib/libcrypto.so.3
#5 0xbbb4e369 in sk_push () from /usr/lib/libcrypto.so.3
#6 0xbbb88b73 in engine_table_register () from /usr/lib/libcrypto.so.3
#7 0xbbb5350b in ENGINE_register_RAND () from /usr/lib/libcrypto.so.3
#8 0xbbb0dab1 in ENGINE_register_complete () from /usr/lib/libcrypto.so.3
#9 0xbbb0dae5 in ENGINE_register_all_complete () from /usr/lib/libcrypto.so.3
#10 0x080bc98d in dst__openssl_init () at openssl_link.c:251
#11 0x080b9e10 in dst_lib_init (mctx=0x8170000, ectx=0x8184000, eflags=0)
at dst_api.c:183
#12 0x0804c43a in main (argc=Cannot access memory at address 0x2
) at nsupdate.c:772
(gdb) quit
%
I just built and installed bind-9.6.0-P1 on NetBSD/i386 4.0 and nsupdate
doesn't crash for me. (Built with default pthread and also linked with
libxml.)
Thanks Jeremy.
Hm, I did a fresh install of NetBSD/i386 4.0.1 to test this (hoping
to avoid the possibility of having made a stupid mistake). I first
encountered the problem on a 4.0 installation which had a few
security patches applied but I hadn't tried on a fresh install of
4.0. Here's the gdb output from that 4.0 machine:
% pwd
/tmp
% ls -l /usr/local/bin/nsupdate
-rwxr-xr-x 1 root wheel 3517495 Jan 22 10:11 /usr/local/bin/nsupdate
% /usr/local/bin/nsupdate
Segmentation fault (core dumped)
% ls -l
total 3680
-rw------- 1 ray wheel 1855328 Mar 6 09:35 nsupdate.core
% file nsupdate.core
nsupdate.core: ELF 32-bit LSB core file Intel 80386, version 1
(SYSV), NetBSD-style, from 'nsupdate' (signal 11)
% gdb /usr/local/bin/nsupdate nsupdate.core
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
Reading symbols from /usr/lib/libcrypto.so.3...done.
Loaded symbols for /usr/lib/libcrypto.so.3
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /lib/libcrypt.so.0...done.
Loaded symbols for /lib/libcrypt.so.0
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `nsupdate'.
Program terminated with signal 11, Segmentation fault.
#0 0xbba8d089 in memcpy () from /usr/lib/libc.so.12
(gdb) backtrace
#0 0xbba8d089 in memcpy () from /usr/lib/libc.so.12
#1 0x080bca73 in mem_realloc (ptr=0x81c21e0, size=136061320)
at openssl_link.c:158
#2 0xbbbabf77 in lh_new () from /usr/lib/libcrypto.so.3
#3 0xbbbac53f in CRYPTO_realloc () from /usr/lib/libcrypto.so.3
#4 0xbbb50304 in sk_insert () from /usr/lib/libcrypto.so.3
#5 0xbbb50369 in sk_push () from /usr/lib/libcrypto.so.3
#6 0xbbb8ab73 in engine_table_register () from /usr/lib/libcrypto.so.3
#7 0xbbb5550b in ENGINE_register_RAND () from /usr/lib/libcrypto.so.3
#8 0xbbb0fab1 in ENGINE_register_complete () from /usr/lib/libcrypto.so.3
#9 0xbbb0fae5 in ENGINE_register_all_complete () from /usr/lib/libcrypto.so.3
#10 0x080bc98d in dst__openssl_init () at openssl_link.c:251
#11 0x080b9e10 in dst_lib_init (mctx=0x8170000, ectx=0x8184000, eflags=0)
at dst_api.c:183
#12 0x0804c43a in main (argc=Cannot access memory at address 0x2
) at nsupdate.c:772
(gdb) quit
%
I've just done a fresh install of 4.0 and the problem exists there too:
% uname -v
NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007
bui...@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC
% pwd
/tmp
% ls -l /usr/local/bin/nsupdate
-rwxr-xr-x 1 root wheel 3517495 Mar 6 13:10 /usr/local/bin/nsupdate
% /usr/local/bin/nsupdate
Segmentation fault (core dumped)
% ls -l
total 3648
-rw------- 1 ray wheel 1850656 Mar 6 13:16 nsupdate.core
% gdb /usr/local/bin/nsupdate nsupdate.core
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...
Reading symbols from /usr/lib/libcrypto.so.3...done.
Loaded symbols for /usr/lib/libcrypto.so.3
Reading symbols from /usr/lib/libc.so.12...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /lib/libcrypt.so.0...done.
Loaded symbols for /lib/libcrypt.so.0
Reading symbols from /usr/libexec/ld.elf_so...done.
Loaded symbols for /usr/libexec/ld.elf_so
Core was generated by `nsupdate'.
Program terminated with signal 11, Segmentation fault.
#0 0xbba8b075 in memcpy () from /usr/lib/libc.so.12
(gdb) backtrace
#0 0xbba8b075 in memcpy () from /usr/lib/libc.so.12
#1 0x080bca73 in mem_realloc (ptr=0x81c21e0, size=136061320)
at openssl_link.c:158
#2 0xbbba9f17 in lh_new () from /usr/lib/libcrypto.so.3
#3 0xbbbaa4df in CRYPTO_realloc () from /usr/lib/libcrypto.so.3
#4 0xbbb4e304 in sk_insert () from /usr/lib/libcrypto.so.3
#5 0xbbb4e369 in sk_push () from /usr/lib/libcrypto.so.3
#6 0xbbb88b73 in engine_table_register () from /usr/lib/libcrypto.so.3
#7 0xbbb5350b in ENGINE_register_RAND () from /usr/lib/libcrypto.so.3
#8 0xbbb0dab1 in ENGINE_register_complete () from /usr/lib/libcrypto.so.3
#9 0xbbb0dae5 in ENGINE_register_all_complete () from /usr/lib/libcrypto.so.3
#10 0x080bc98d in dst__openssl_init () at openssl_link.c:251
#11 0x080b9e10 in dst_lib_init (mctx=0x8170000, ectx=0x8184000, eflags=0)
at dst_api.c:183
#12 0x0804c43a in main (argc=Cannot access memory at address 0x2
) at nsupdate.c:772
(gdb) quit
%
Ray
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users