Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problems with ifconfig(8) on the latest RPI build



	hello.  I have sources from 2017-01-09 21:00 UTC or so and I've
successfully built and run an image on my RPI3.  However, I'm having
trouble with the ifconfig(8) program and with dhcpcd.  With dhcpcd, the
program runs, but never obtains an IP address on the usmsc0 interface.
With ifconfig, I can manually configure the interface and it will work, but
it won't show me status or anything.  See below for sample output.
Any ideas on what's wrong?  This is with a 7.99.56 kernel and 7.99.43
userland.  If I take the /rescue/ifconfig file from the 7.99.56 userland
tree and run it on this kernel, I get an illegal instruction error even if
I use it to configure the interface manually.  I ran into this problem a
couple of days earlier, but it took this long for me to get a working
console on the thing so I could perform more complete testing.  In my
traces, I see an allocation failure when ifconfig calls sysctl, but that
isn't where the program fails.  Is this a known issue?
Here is a script showing the bad output from the 7.99.43 version of
ifconfig, followed by the ktrace output from the very broken 7.99.56
version.  Any thoughtw would be greatly appreciated.

-thanks
-Brian
<script file>
Script started on Tue Jan 10 00:01:27 2017
rpi# /sbin/ifconfig -l

rpi# /rescue/ifconfig -l

rpi# /sbin/ifconfig usmsc0
rpi# /rescue/ifconfig usmsc0
rpi# /sbin/ifconfig
ifconfig: status: getifinfo: Device not configured
rpi# /rescue/ifconfig
ifconfig: status: getifinfo: Device not configured
rpi# /sbin/ifconfig -m usmsc0
rpi# /rescue/ifconfig usmsc0
rpi# /rescue/ifconfig -m usmsc0
rpi# exit
rpi# exit

Script done on Tue Jan 10 00:02:59 2017

<cut here for trace with broken 7.99.56 ifconfig>

   989      1 ktrace   EMUL  "netbsd"
   989      1 ktrace   CALL  execve(0x7fe7ab5e,0x7fe79a6c,0x7fe79a78)
   989      1 ktrace   NAMI  "/var/tmp/./ifconfig"
   989      1 ifconfig EMUL  "netbsd"
   989      1 ifconfig RET   execve JUSTRETURN
   989      1 ifconfig CALL  __sysctl(0x5d7c14,2,0x9512b8,0x7fffcbfc,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffcbe8,2,0x7fffcbe0,0x7fffcbe4,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  mmap(0,8,PROT_READ|PROT_WRITE,0x1000<ANONYMOUS,ALIGN=NONE>,0xffffffff,0,0,0)
   989      1 ifconfig RET   mmap 2080358400/0x7bffc000
   989      1 ifconfig CALL  _lwp_setprivate(0x7bffc000)
   989      1 ifconfig RET   _lwp_setprivate 0
   989      1 ifconfig CALL  __sigprocmask14(3,0x7fffcbe4,0x7fffcbb8)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigaction_sigtramp(SIGILL,0x7fffcbe0,0x7fffcbc8,0x4c5d14,2)
   989      1 ifconfig RET   __sigaction_sigtramp 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig PSIG  SIGILL caught handler=0x312bcc mask=(1,2,3,4,6,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63): code=ILL_ILLOPC, addr=0x3b0228, trap=-224391680)
   989      1 ifconfig CALL  __sigprocmask14(3,0x941674,0)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig PSIG  SIGILL caught handler=0x312bcc mask=(1,2,3,4,6,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63): code=ILL_ILLOPC, addr=0x3b0210, trap=-206568704)
   989      1 ifconfig CALL  __sigprocmask14(3,0x941674,0)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig PSIG  SIGILL caught handler=0x312bcc mask=(1,2,3,4,6,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63): code=ILL_ILLOPC, addr=0x3b0218, trap=-234877888)
   989      1 ifconfig CALL  __sigprocmask14(3,0x941674,0)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig PSIG  SIGILL caught handler=0x312bcc mask=(1,2,3,4,6,7,12,13,14,15,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63): code=ILL_ILLOPC, addr=0x3b0220, trap=-218100672)
   989      1 ifconfig CALL  __sigprocmask14(3,0x941674,0)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigprocmask14(0,0,0x941674)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sigaction_sigtramp(SIGILL,0x7fffcbc8,0,0x4c5d14,2)
   989      1 ifconfig RET   __sigaction_sigtramp 0
   989      1 ifconfig CALL  __sigprocmask14(3,0x7fffcbb8,0)
   989      1 ifconfig RET   __sigprocmask14 0
   989      1 ifconfig CALL  __sysctl(0x7fffc3d8,2,0x94a69c,0x7fffc3d4,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffc318,2,0x94c788,0x7fffc314,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  readlink(0x5d183c,0x7fffc3e8,0x400)
   989      1 ifconfig NAMI  "/etc/malloc.conf"
   989      1 ifconfig RET   readlink -1 errno 2 No such file or directory
   989      1 ifconfig CALL  break(0x9544a4)
   989      1 ifconfig RET   break 0
   989      1 ifconfig CALL  break(0x9544a4)
   989      1 ifconfig RET   break 0
   989      1 ifconfig CALL  break(0xa00000)
   989      1 ifconfig RET   break 0
   989      1 ifconfig CALL  mmap(0,0x100000,PROT_READ|PROT_WRITE,0x14001002<PRIVATE,ANONYMOUS,ALIGN=1MB>,0xffffffff,0,0,0)
   989      1 ifconfig RET   mmap 2078277632/0x7be00000
   989      1 ifconfig CALL  __sysctl(0x7fffc93c,1,0x7be02400,0x7fffc85c,0x7fffc860,0x60)
   989      1 ifconfig RET   __sysctl -1 errno 12 Cannot allocate memory
   989      1 ifconfig CALL  __sysctl(0x7fffc93c,1,0x7be02800,0x7fffc85c,0x7fffc860,0x60)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffc93c,2,0x7be0b000,0x7fffc85c,0x7fffc860,0x60)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffcba8,2,0x953fd0,0x7fffcc04,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffc93c,1,0x7be03000,0x7fffc938,0x7fffc990,0x60)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig CALL  __sysctl(0x7fffcba8,2,0x953fd4,0x7fffcc04,0,0)
   989      1 ifconfig RET   __sysctl 0
   989      1 ifconfig PSIG  SIGILL SIG_DFL: code=ILL_ILLOPC, addr=0x411e2c, trap=-519880546)
   989      1 ifconfig NAMI  "ifconfig.core"


Home | Main Index | Thread Index | Old Index