|
Bugzilla – Full Text Bug Listing |
| Summary: | dhcrelay segfaults at first request | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.3 | Reporter: | Andi N Kleen <andi-nbz> |
| Component: | Network | Assignee: | Marius Tomaschewski <mt> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | ast |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | Patch fixing the segfault and discarding packeds on interfaces without IP | ||
|
Description
Andi N Kleen
2010-08-15 09:47:22 UTC
Going to take a look ... Both versions work fine for me: dhcp-relay-4.1.1.P1-3.2.x86_64 from openSUSE-11.3-Oss dhcp-relay-4.1.1.P1-4.1.1.x86_64 from openSUSE-11.3-Update Could you provide more details about your setup please? Which parameters are used (ps auxwww | grep dhcrelay)? Please install also debuginfo/debugsource packages from http://download.opensuse.org/debug/update/11.3/rpm/x86_64/dhcp-debugsource-4.1.1.P1-4.1.1.x86_64.rpm http://download.opensuse.org/debug/update/11.3/rpm/x86_64/dhcp-relay-debuginfo-4.1.1.P1-4.1.1.x86_64.rpm and try to recreate the backtrace when possible. I do not see anything special in dhcrelay.c:660. You're using a tap interface. Did you remove and recreated the tap interface without to restart the relay? The set up is dhcp relay was supposed to forward requests from qemu guests to the main network. qemu-ifup is just exit 0 so the tap interfaces already exist before created with tunctl Created attachment 397166 [details]
Patch fixing the segfault and discarding packeds on interfaces without IP
I've retested it and found out how you run into this problem:
The tap0 interface you were using did not have any IP address configured.
I'll fix it and forward the patch upstream, but this is a misconfiguration:
Both, the interface to the server and the interface to the client need IPs.
For example:
eth0: 192.168.0.1/24 -- interface to the dhcp-server (192.168.0.254)
tap0: 192.168.1.1/24 -- interface to the dhcp-client(s)
The /etc/sysconfig/dhcrelay configuration for this scenario is:
DHCRELAY_INTERFACES="tap0 eth0"
DHCRELAY_SERVERS="192.168.0.254"
on the command line it is:
/usr/sbin/dhcrelay -i tap0 -i eth0 192.168.0.254
I've reported it upstream with the attached patch: ISC-Bugs #22409. This is an autogenerated message for OBS integration: This bug (631305) was mentioned in https://build.opensuse.org/request/show/54219 Factory / dhcp |