On 3/11/06, Eric Evans <[EMAIL PROTECTED]> wrote: > On Wed, Mar 08, 2006 at 07:00:45AM +1000, Jonathan Hepburn muttered these > words: > > On 2/25/06, Eric Evans <[EMAIL PROTECTED]> wrote: > > > > > > Hi Jonathan, > > > > > > ifplugd is working fine for me here, let's see if we can get a little > > > more information and see what's wrong. > > > > > > You are using 0.26-2.1, is it safe to assume that you upgraded from > > > 0.26-2? Near as I can tell, the only change made in this NMU was a > > > in the path to the hotplug functions. > > > > > > -HOTPLUGFUNCS=/lib/udev/hotplug.functions > > > +HOTPLUGFUNCS=/etc/hotplug/hotplug.functions > > > > > > Are you using udev? Does the file /lib/udev/hotplug.functions exist? > > > > Sorry for the delay in replying: I wasn't using udev, so I decided > > that this would be a good excuse to upgrade and, following that, I had > > to get it working properly and upgrade the kernel just in case that > > helped. I'm strapped for time at the moment. > > > > So: > > > > I am now using udev, which appears to be working fine. > > > > /lib/udev/hotplug.functions exists. > > > > I'll assume I upgraded from 0.26-2: I've been using testing for a > > while now, so whatever I was previously using was the etch version at > > the time. > > > > ifplugd still doesn't work. > > Ok, let's step back a bit. > > The only change between 0.26-2 and 0.26-2.1 was to correct the location > of /lib/udev/hotplug.functions. Since your bug report indicated that you > are using hotplug for all your interfaces, I assumed that this was > probably where the problem lie, but perhaps that isn't the case. > > In your original report you also indicated that you ran ifplugd manually > without success. What are aguments are you supplying when you do this? > Can you tell me if anything is being logged, (/var/log/syslog), or if > there is any output in dmesg?
Run manually, with no arguments at all. There is nothing in dmesg or syslog following 'invoke-rc.d ifplugd start'. After 'ifplugd', Syslog has the following: Mar 14 20:56:04 ijtihad ifplugd(eth0)[9891]: ifplugd 0.26 initializing. Mar 14 20:56:04 ijtihad ifplugd(eth0)[9891]: Using interface eth0 Mar 14 20:56:04 ijtihad ifplugd(eth0)[9891]: Failed to detect plug status of eth0 Mar 14 20:56:04 ijtihad ifplugd(eth0)[9891]: Exiting. WTF??? Here are the non-commented contents of /etc/default/ifplugd: INTERFACES="" HOTPLUG_INTERFACES="all" ARGS="-q -f -u0 -d10 -w -I" SUSPEND_ACTION="stop" I did no configuring by hand of ifplugd the first time I used it, and did no configuring by hand following the ugprade, after I purged and reinstalled. > Can you try running ifplugd with strace, (i.e. strace -f ifplugd ... ), > and attaching the output in a reply to the bug report? Attached > > In case it helps, this is the gdb report: > > > > (gdb) start > > Function "main" not defined. > > > > Now, I know very little about programming, but this strikes me as a bad > > thing. > > How did you invoke gdb to arrive at this? gdb /usr/sbin/ifplugd If I understand the syslog entry correctly, is it dying after being invoked with no arguments because I don't have an eth0 interface? To the best of my knowledge, I never have had an eth0. After switching to udev - I'm not sure about before - I don't even have any /dev/eth* entries. Cheers, JH
ifplugd.strace.log
Description: Binary data