Port-arm archive

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

Re: earmhf issues on Beaglebone Black



On Sun, Jul 20, 2014 at 06:17:49PM +0200, Manuel Bouyer wrote:
> I have the problem too; here's what I got:
> data_abort_handler: data_aborts fsr=0x186e far=0x7fffb890
> 23012.1(sh): trap: signo=10 code=2 addr=0x7fffb890 trap=0x186e
> r0=40202ce8 r1=00000000 r2=00001544 r3=401ffcbc
> r4=00000000 r5=00000000 r6=00000000 r7=403644f4
> r8=40322400 r9=ffffffff rA=00032f00 rB=7fffb8b4
> ip=7fffb8a0 sp=7fffb8a0 lr=40175ea4 pc=400d2150 spsr=60000010
> 
> Note that not all data_abort_handler printfs cause a verbose output.
> Here's a complete console log since I set printfataltraps to 1:
> login: data_abort_handler: data_aborts fsr=0x83e far=0x40042000
> data_abort_handler: data_aborts fsr=0x186e far=0x7fffb890
> 23012.1(sh): trap: signo=10 code=2 addr=0x7fffb890 trap=0x186e
> r0=40202ce8 r1=00000000 r2=00001544 r3=401ffcbc
> r4=00000000 r5=00000000 r6=00000000 r7=403644f4
> r8=40322400 r9=ffffffff rA=00032f00 rB=7fffb8b4
> ip=7fffb8a0 sp=7fffb8a0 lr=40175ea4 pc=400d2150 spsr=60000010
> data_abort_handler: data_aborts fsr=0x186e far=0x7fffc160

FWIW: it's quite easy to reproduce with pkgsrc:
beagle# cd /usr/pkgsrc/x11/deforaos-panel/
beagle# make install
make[3]: "if [ -x /usr/pkg/sbin/pkg_info ]; then echo /usr/pkg/sbin; else echo 
/usr/sbin; fi" exited on a signal
sh: /pkg_admin: not found
test: 20090528: unexpected operator

and on the console:
data_abort_handler: data_aborts fsr=0x182e far=0x40062000

I suspect pkgsrc does a lot of calls of this kind, because ot doesn't always
take the same time to get the signal. But I couldn't get the build to start.

I tried running this sequence:
if [ -x /usr/pkg/sbin/pkg_info ]; then echo /usr/pkg/sbin; else echo /
usr/sbin; fi
in a shell loop, but it didn't cause the problem, so it looks like
make has something to do in the problem.

I also got:
make[3]: "" exited on a signal
as if a memory got corrupted. And also
make[2]: "../../mk/compiler/../../mk/compiler/gcc.mk" line 168: warning: "( env 
LC_ALL=C /usr/bin/gcc -v 2>&1 | /usr/bin/grep 'gcc version') 2>/dev/null || 
echo 0" exited on a signal
make: "../../mk/../../mk/bsd.prefs.mk" line 706: warning: "cd 
/usr/pkgsrc/x11/deforaos-panel/../.. && /bin/pwd" exited on a signal

Unfortunably, no core dump.

Here's a kdump related to one of these messages:
   773      1 make     CALL  pipe
   773      1 make     RET   pipe 3, 4
   773      1 make     CALL  getpid
   773      1 make     RET   getpid 773/0x305, 1223/0x4c7
   773      1 make     CALL  __vfork14
    85      1 make     EMUL  "netbsd"
    85      1 make     RET   fork 0
    85      1 make     CALL  close(3)
    85      1 make     RET   close 0
    85      1 make     CALL  dup2(4,1)
    85      1 make     RET   dup2 1
    85      1 make     CALL  close(4)
    85      1 make     RET   close 0
    85      1 make     CALL  execve(0x403124d0,0x7fffb6e8,0x7fffcb90)
    85      1 make     NAMI  "/bin/sh"
    85      1 make     NAMI  "/libexec/ld.elf_so"
   773      1 make     RET   __vfork14 85/0x55
   773      1 make     CALL  close(4)
   773      1 make     RET   close 0
   773      1 make     CALL  read(3,0x7fffb6f8,0x400)
   773      1 make     GIO   fd 3 read 0 bytes
       ""
   773      1 make     RET   read 0
   773      1 make     CALL  close(3)
   773      1 make     RET   close 0
   773      1 make     CALL  __wait450(0x55,0x7fffb6f8,0,0)
   773      1 make     RET   __wait450 85/0x55
   773      1 make     CALL  write(2,0x7fffb618,9)
   773      1 make     GIO   fd 2 wrote 9 bytes
       "make[3]: "
   773      1 make     RET   write 9
   773      1 make     CALL  write(2,0x465ab,1)
   773      1 make     GIO   fd 2 wrote 1 bytes
       "\""
   773      1 make     RET   write 1
   773      1 make     CALL  write(2,0x7fffb618,0x2a)
   773      1 make     GIO   fd 2 wrote 42 bytes
       "../../mk/compiler/../../mk/compiler/gcc.mk"
   773      1 make     RET   write 42/0x2a
   773      1 make     CALL  write(2,0x7fffb618,0xc)
   773      1 make     GIO   fd 2 wrote 12 bytes
       "\" line 168: "
   773      1 make     RET   write 12/0xc
   773      1 make     CALL  write(2,0x3144c,9)
   773      1 make     GIO   fd 2 wrote 9 bytes
       "warning: "
   773      1 make     RET   write 9
   773      1 make     CALL  write(2,0x7fffb648,0x6d)
   773      1 make     GIO   fd 2 wrote 109 bytes
       "\"( env LC_ALL=C /usr/bin/gcc -v 2>&1 | /usr/bin/grep 'gcc version') 2\
        >/dev/null || echo 0\" exited on a signal"
   773      1 make     RET   write 109/0x6d

Maybe it's related to vfork ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index