Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Feb 2021 00:17:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 253335] emulators/qemu-user-static php segfault building devel/pear for armv7
Message-ID:  <bug-253335-4077-KvNc5BNF84@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-253335-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-253335-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253335

--- Comment #9 from Mark Johnston <markj@FreeBSD.org> ---
qemu is doing the mprotect here:

Thread 1 hit Catchpoint 1 (call to syscall mprotect), 0x000000006049f48a in=
 ??
()=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
(gdb) bt=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#0  0x000000006049f48a in ?? ()=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
#1  0x00000000602b413a in page_find_alloc (index=3D5, alloc=3D1)=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/accel/tcg/translate-all.c:497=20
#2  page_lock_pair (ret_p1=3D<optimized out>, phys1=3D4095827272, ret_p2=3D=
<optimized
out>, phys2=3D4294967295, alloc=3D1)=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/accel/tcg/translate-all.c:882=20
#3  tb_link_page (tb=3D0x60598280 <static_code_gen_buffer+166752>,
phys_pc=3D4095827272, phys_page2=3D4294967295)=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/accel/tcg/translate-all.c:1628=20
#4  tb_gen_code (cpu=3D<optimized out>, pc=3D<optimized out>, cs_base=3D0,
flags=3D1626480128, cflags=3D<optimized out>)=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/accel/tcg/translate-all.c:1831=20
#5  0x00000000602b2a95 in cpu_loop_exit_restore (cpu=3D0xf4215000, pc=3D409=
6)=20=20=20=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/accel/tcg/cpu-exec-common.c:72=20
#6  0x00000000602c2ff1 in target_cpu_loop (env=3D0x0)=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-=
user-39244526c0af/bsd-user/arm/target_arch_cpu.h:259=20
#7  0x00000000602c2f89 in target_cpu_loop (env=3D0x860933c00)

In tb_page_add() I see:

1560         /* force the host page as non writable (writes will have a=20=
=20=20=20=20=20=20=20=20
1561            page fault + mprotect overhead) */

but it looks like something's not implementing that...?

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253335-4077-KvNc5BNF84>