Wind River Support Network

HomeDefectsLIN7-7535
Fixed

LIN7-7535 : stopping/restarting bind9 service generates coredump

Created: Feb 16, 2017    Updated: Sep 8, 2018
Resolved Date: Mar 3, 2017
Found In Version: 7.0.0.21
Fix Version: 7.0.0.23
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Networking, Userspace

Description

After adding a DNS zone to bind9 and converting it to master, any bind9 stop or restart generates a coredump.

Steps to Reproduce

Config line:
/opt/cross_wrl/7.0.0/161117/wrlinux-7/wrlinux/configure --enable-board=intel-x86-64 --enable-bootimage=tar.bz2 --enable-kernel=cgl+features/kvm/qemu-kvm-enable.scc+cfg/virtio.scc+features/igb/igb.scc+cfg/fs/btrfs.scc+cfg/fs/ext4.scc --enable-rootfs=glibc-cgl --with-template=feature/wr-hp-support,feature/kvm,feature/target-toolchain,feature/debug-wb,feature/analysis,feature/code_coverage,feature/oprofile,feature/system-stats,feature/valgrind --with-package=gdb,gdbserver --with-init=sysvinit --enable-doc-pages=target --enable-parallel-pkgbuilds=48 --enable-jobs=48 --enable-unsupported-config=yes --enable-rm-oldimgs=yes --enable-reconfig --with-rcpl-version=0021 

##configure coredumps to be saved to /cores/

 cp coredump-setup /etc/default/
 cp coredump-setup.sh /etc/init.d/
 update-rc.d coredump-setup.sh start 99 S .
 reboot

### checking if cores are placed inside /cores/
# kill -s SEGV $(pidof named)
root@localhost:~# ls -la /cores/
total 5976
drwxrwxrwx  2 root root    4096 Feb 16 05:10 .
drwxr-xr-x 25 root root    4096 Feb 16 05:06 ..
-rw-------  1 bind bind 6283264 Feb 16 05:10 core.named.1254
root@localhost:~# rm -f /cores/core.named.*  

### we need to enable the the bind service to generate cores:
root@localhost:~# sed -i 's|#!/bin/sh|#!/bin/sh\nulimit -Sc unlimited\nulimit -Hc unlimited|' /etc/init.d/bind
root@localhost:~# head /etc/init.d/bind
#!/bin/sh
ulimit -Sc unlimited
ulimit -Hc unlimited
[...]

root@localhost:~# /etc/init.d/bind start
Starting domain name service: named.
root@localhost:~# /etc/init.d/bind stop 
Stopping domain name service: named.
root@localhost:~# ls -la /cores/
total 8
drwxrwxrwx  2 root root 4096 Feb 16 05:15 .
drwxr-xr-x 25 root root 4096 Feb 16 05:06 ..

^^^ - no cores generated without adding a custom DNS zone.


### Adding a DNS zone
root@localhost:~# cd /etc
root@localhost:/etc# mv bind/ bind.orig
root@localhost:/etc# tar -zxvf bind.tar.gz 

# Start and stop BIND service with modified configurations

root@localhost:/etc# /etc/init.d/bind start
Starting domain name service: named.
root@localhost:/etc# /etc/init.d/bind stop 
Stopping domain name service: named.
root@localhost:/etc# ls -l /cores/
total 5640
-rw------- 1 bind bind 5951488 Feb 16 05:27 core.named.1360

Other Downloads


Live chat
Online