From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060506 Firefox/1.5.0.4 (Debian-1.5.dfsg+1.5.0.4-3) Description of problem: ucarp crashes on startup: Version-Release number of selected component (if applicable): ucarp-1.2-2.fc6 How reproducible: Always Steps to Reproduce: 1.cat <<EOF >/etc/sysconfig/carp/vip-023.conf [root@grover ucarp-1.3]# cat /etc/sysconfig/carp/vip-023.conf # Virtual IP configuration file for UCARP # The number (from 001 to 255) in the name of the file is the identifier # $Id$ # Set the same password on all mamchines sharing the same virtual IP PASSWORD="shmapai" # You are required to have an IPADDR= line in the configuration file for # this interface (so no DHCP allowed) BIND_INTERFACE="eth0" # Do *NOT* use a main interface for the virtual IP, use an ethX:Y alias # with the corresponding /etc/sysconfig/network-scripts/ifcfg-ethX:Y file # already configured and ith ONBOOT=no VIP_INTERFACE="eth0:0" # If you have extra options to add, see "ucarp --help" output # (the lower the "-k <val>" the higher priority and "-P" to become master ASAP) OPTIONS="-k 228" EOF 2.cat EOF<< >/etc/sysconfig/network-scripts/ifcfg-eth0:0 # Intel Corporation 82557/8/9 [Ethernet Pro 100] IPADDR=192.168.200.253 NETMASK=255.255.255.0 ONBOOT=no EOF 3./usr/sbin/ucarp -v 023 -p shmapai -s 192.168.200.205 -a 192.168.200.253 -i eth0:0 -k 228 --upscript=/etc/sysconfig/carp/vip-up --downscript=/etc/sysconfig/carp/vip-down Actual Results: [root@grover]# rpm -q ucarp ucarp-1.2-2.fc6 [root@grover]# /usr/sbin/ucarp -v 023 -p shmapai -s 192.168.200.205 -a 192.168.200.253 -i eth0:0 -k 228 --upscript=/etc/sysconfig/carp/vip-up --downscript=/etc/sysconfig/carp/vip-down [INFO] Local advertised ethernet address is [00:12:3f:a4:93:5d] [WARNING] Switching to state: BACKUP [WARNING] Spawning [/etc/sysconfig/carp/vip-down eth0:0] [WARNING] Switching to state: MASTER [WARNING] Spawning [/etc/sysconfig/carp/vip-up eth0:0] *** buffer overflow detected ***: /usr/sbin/ucarp terminated ======= Backtrace: ========= /lib/libc.so.6(__chk_fail+0x41)[0x4e4382b1] /usr/sbin/ucarp[0x804d68d] /usr/sbin/ucarp[0x8049b4c] /usr/sbin/ucarp[0x804a26f] /usr/sbin/ucarp[0x804a6be] /usr/sbin/ucarp[0x8049779] /lib/libc.so.6(__libc_start_main+0xdc)[0x4e371724] /usr/sbin/ucarp[0x8049251] ======= Memory map: ======== 08048000-0804f000 r-xp 00000000 03:02 232391 /usr/sbin/ucarp 0804f000-08050000 rwxp 00007000 03:02 232391 /usr/sbin/ucarp 08df5000-08e16000 rwxp 08df5000 00:00 0 [heap] 4e33e000-4e33f000 r-xp 4e33e000 00:00 0 [vdso] 4e33f000-4e358000 r-xp 00000000 03:02 352018 /lib/ld-2.4.so 4e358000-4e359000 r-xp 00018000 03:02 352018 /lib/ld-2.4.so 4e359000-4e35a000 rwxp 00019000 03:02 352018 /lib/ld-2.4.so 4e35c000-4e489000 r-xp 00000000 03:02 352025 /lib/libc-2.4.so 4e489000-4e48b000 r-xp 0012d000 03:02 352025 /lib/libc-2.4.so 4e48b000-4e48c000 rwxp 0012f000 03:02 352025 /lib/libc-2.4.so 4e48c000-4e48f000 rwxp 4e48c000 00:00 0 4e491000-4e4b9000 r-xp 00000000 03:02 238125 /usr/lib/libpcap.so.0.9.4 4e4b9000-4e4ba000 rwxp 00028000 03:02 238125 /usr/lib/libpcap.so.0.9.4 4e547000-4e552000 r-xp 00000000 03:02 352052 /lib/libgcc_s-4.1.1-20060525.so.1 4e552000-4e553000 rwxp 0000a000 03:02 352052 /lib/libgcc_s-4.1.1-20060525.so.1 b7d54000-b7f54000 r--p 00000000 03:02 228861 /usr/lib/locale/locale-archive b7f54000-b7f55000 rw-p b7f54000 00:00 0 b7f5a000-b7f5c000 rw-p b7f5a000 00:00 0 bfbd2000-bfbe7000 rw-p bfbd2000 00:00 0 [stack] Aborted [root@grover]# yum remove ucarp [root@grover]# yum install ucarp [root@grover]# rpm -q ucarp ucarp-1.1-5.fc5 [root@grover]# /usr/sbin/ucarp -v 023 -p shmapai -s 192.168.200.205 -a 192.168.200.253 -i eth0:0 -k 228 --upscript=/etc/sysconfig/carp/vip-up --downscript=/etc/sysconfig/carp/vip-down [INFO] Local advertised ethernet address is [00:12:3f:a4:93:5d] [WARNING] Switching to state: BACKUP SIOCSIFFLAGS: Cannot assign requested address [WARNING] Spawning [/etc/sysconfig/carp/vip-down eth0:0] [WARNING] Switching to state: MASTER [WARNING] Spawning [/etc/sysconfig/carp/vip-up eth0:0] *** buffer overflow detected ***: /usr/sbin/ucarp terminated ======= Backtrace: ========= /lib/libc.so.6(__chk_fail+0x41)[0x4e4382b1] /usr/sbin/ucarp[0x804d4ad] /usr/sbin/ucarp[0x8049acc] /usr/sbin/ucarp[0x804a1df] /usr/sbin/ucarp[0x804a548] /usr/sbin/ucarp[0x8049709] /lib/libc.so.6(__libc_start_main+0xdc)[0x4e371724] /usr/sbin/ucarp[0x80491f1] ======= Memory map: ======== 08048000-0804f000 r-xp 00000000 03:02 229226 /usr/sbin/ucarp 0804f000-08050000 rwxp 00007000 03:02 229226 /usr/sbin/ucarp 08c33000-08c54000 rwxp 08c33000 00:00 0 [heap] 4e33e000-4e33f000 r-xp 4e33e000 00:00 0 [vdso] 4e33f000-4e358000 r-xp 00000000 03:02 352018 /lib/ld-2.4.so 4e358000-4e359000 r-xp 00018000 03:02 352018 /lib/ld-2.4.so 4e359000-4e35a000 rwxp 00019000 03:02 352018 /lib/ld-2.4.so 4e35c000-4e489000 r-xp 00000000 03:02 352025 /lib/libc-2.4.so 4e489000-4e48b000 r-xp 0012d000 03:02 352025 /lib/libc-2.4.so 4e48b000-4e48c000 rwxp 0012f000 03:02 352025 /lib/libc-2.4.so 4e48c000-4e48f000 rwxp 4e48c000 00:00 0 4e491000-4e4b9000 r-xp 00000000 03:02 238125 /usr/lib/libpcap.so.0.9.4 4e4b9000-4e4ba000 rwxp 00028000 03:02 238125 /usr/lib/libpcap.so.0.9.4 4e547000-4e552000 r-xp 00000000 03:02 352052 /lib/libgcc_s-4.1.1-20060525.so.1 4e552000-4e553000 rwxp 0000a000 03:02 352052 /lib/libgcc_s-4.1.1-20060525.so.1 b7d16000-b7f16000 r--p 00000000 03:02 228861 /usr/lib/locale/locale-archive b7f16000-b7f17000 rw-p b7f16000 00:00 0 b7f1c000-b7f1e000 rw-p b7f1c000 00:00 0 bfac3000-bfad8000 rw-p bfac3000 00:00 0 [stack] Aborted Expected Results: [INFO] Local advertised ethernet address is [00:12:3f:a4:93:5d] [WARNING] Switching to state: BACKUP [WARNING] Spawning [/etc/sysconfig/carp/vip-down eth0:0] [WARNING] Switching to state: MASTER [WARNING] Spawning [/etc/sysconfig/carp/vip-up eth0:0] Additional info: Crashes on x64 as well, if you download source of ucarp, build it, copy over /usr/sbin/ucarp works ok. # wget http://download.pureftpd.org/pub/ucarp/snapshots/ucarp-1.3.tar.bz2 # tar -jxvf ucarp-1.3.tar.bz2 # cd ucarp-1.3 # ./configure && make # cp src/ucarp /usr/sbin/ucarp [root@grover ucarp-1.3]# /usr/sbin/ucarp -v 023 -p shmapai -s 192.168.200.205 -a 192.168.200.253 -i eth0:0 -k 228 --upscript=/etc/sysconfig/carp/vip-up --downscript=/etc/sysconfig/carp/vip-down [INFO] Local advertised ethernet address is [00:12:3f:a4:93:5d] [WARNING] Switching to state: BACKUP SIOCSIFFLAGS: Cannot assign requested address [WARNING] Spawning [/etc/sysconfig/carp/vip-down eth0:0] [WARNING] Switching to state: MASTER [WARNING] Spawning [/etc/sysconfig/carp/vip-up eth0:0] Stays running, host is in master mode now.
This has already been reported. I guess I'll update to the 1.3 snapshot ASAP, I was just really hoping for a new stable release to come out soon. *** This bug has been marked as a duplicate of 200400 ***