Hi !

I have read several mails/bug in the mailing list about reloading relayd. But i didn't understand if all the bugs were fixed or not ?

Here is my relayd.conf (OpenBSD 5.3, amd64) :

# Global Options
interval 10
timeout 2000
log updates

std_vip_ssl1="X.X.X.X"
std_proxy="172.17.1.4"

table <std_proxy_hosts> { $std_proxy }
table <std_proxy_fallback> { "172.17.1.5" }

redirect std_https1 {
        listen on $std_vip_ssl1 port https
        # Tag every packet that goes thru the rdr rule with RELAYD
        tag STDPRODSSL1
forward to <std_proxy_hosts> check https "/" host "www.XXXX.com" code 200
        forward to <std_proxy_fallback> check tcp
}

Everything is fine with this config (redirect and tables active, hosts active), but relayd crashes if i reload (/etc/rc.d/relayd reload, without error in the log)

If i launch the daemon with "relayd -d -vvv", and "relayctl reload", i have this error :

parent_sig_handler: reload requested with SIGHUP
parent_reload: level 0 config file /etc/relayd.conf
relayd in free(): error: chunk is already free 0x139b3e2e6400
init_filter: filter init done
init_tables: created 0 tables
flush_table: flushed table std_https1
kill_tables: deleted 1 tables
flush_rulesets: flushed rules
pfe exiting, pid 1270
lost child: hce terminated; signal 6
relay exiting, pid 18390
relay exiting, pid 17435
relay exiting, pid 579
relay exiting, pid 7823
relay exiting, pid 25910
parent terminating, pid 23068

I know that relayd can't be reloaded if we have relays with SSL, but i've just a redirect (with check https...). I've tested with "check tcp" (and not check https "/"....), and it seems that reload is OK with this !
Am I missing something ?

Thanks in advance !

Dmesg :

OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
    dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2136576000 (2037MB)
avail mem = 2057265152 (1961MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x7f79c000 (63 entries)
bios0: vendor Dell Inc. version "1.5.2" date 10/18/2010
bios0: Dell Inc. PowerEdge R210
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC SPCR HPET DM__ MCFG WD__ SLIC ERST HEST BERT EINJ TCPA SSDT
acpi0: wakeup devices PCI0(S5) USBA(S0) USBB(S0)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU G6950 @ 2.80GHz, 2793.34 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 4 (application processor)
cpu1: Intel(R) Pentium(R) CPU G6950 @ 2.80GHz, 2792.99 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,POPCNT,NXE,LONG,LAHF,PERF,ITSC
cpu1: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 20, 24 pins
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (LYD0)
acpiprt2 at acpi0: bus -1 (LYD2)
acpiprt3 at acpi0: bus 1 (HVD0)
acpiprt4 at acpi0: bus -1 (HVD2)
acpiprt5 at acpi0: bus 2 (PEX0)
acpiprt6 at acpi0: bus -1 (PEX4)
acpiprt7 at acpi0: bus -1 (PEX5)
acpiprt8 at acpi0: bus 3 (COMP)
acpicpu0 at acpi0: C3, C1
acpicpu1 at acpi0: C3, C1
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x0048 rev 0x12 ppb0 at pci0 dev 1 function 0 vendor "Intel", unknown product 0x0049 rev 0x12: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel PRO/1000 (82576)" rev 0x01: msi, address 00:1b:21:86:40:20 em1 at pci1 dev 0 function 1 "Intel PRO/1000 (82576)" rev 0x01: msi, address 00:1b:21:86:40:21
ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 0 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05
pci2 at ppb1 bus 2
bnx0 at pci2 dev 0 function 0 "Broadcom BCM5716" rev 0x20: apic 0 int 16
bnx1 at pci2 dev 0 function 1 "Broadcom BCM5716" rev 0x20: apic 0 int 17
ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 0 int 22
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
pci3 at ppb2 bus 3
vga1 at pci3 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD2502ABYS-1, 02.0> SCSI3 0/direct fixed naa.50014ee102efed99
sd0: 238418MB, 512 bytes/sector, 488281250 sectors
sd1 at scsibus0 targ 1 lun 0: <ATA, WDC WD2502ABYS-1, 02.0> SCSI3 0/direct fixed naa.50014ee15844bfa3
sd1: 238418MB, 512 bytes/sector, 488281250 sectors
cd0 at scsibus0 targ 3 lun 0: <TEAC, DVD-ROM DV-28SW, R.2A> ATAPI 5/cdrom removable
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
kbc: cmd word write error
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub4 at uhub3 port 5 "Standard Microsystems product 0x2514" rev 2.00/0.00 addr 3
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (003d3fb6364626d5.a) swap on sd0b dump on sd0b
bnx0: address b8:ac:6f:87:5f:53
brgphy0 at bnx0 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8
bnx1: address b8:ac:6f:87:5f:54
brgphy1 at bnx1 phy 1: BCM5709 10/100/1000baseT PHY, rev. 8


--
Mathieu

Reply via email to