paulfloyd / freebsd_valgrind

Git repo used to Upstream the FreeBSD Port of Valgrind
GNU General Public License v2.0
15 stars 4 forks source link

DRD swapcontext hangs on FreeBSD 13.2 i386 #198

Open paulfloyd opened 1 year ago

paulfloyd commented 1 year ago

Does it hang standalone? No.

Any relationship to https://github.com/paulfloyd/freebsd_valgrind/issues/163 ?

sigframe hasn't changed? Not that I can see.

When it hangs, lots of

--840:4: gdbsrv VG_(gdbserver_reportsyscall) before 1 sysno 423 tid 2 --840:4: gdbsrv VG(gdbserver_reportsyscall) before 0 sysno 423 tid 2 --840:4: gdbsrv VG(gdbserver_reportsyscall) before 1 sysno 240 tid 2 --840:4: gdbsrv VG(gdbserver_reportsyscall) before 0 sysno 240 tid 3 --840:4: gdbsrv VG(gdbserver_reportsyscall) before 1 sysno 423 tid 3 --840:4: gdbsrv VG(gdbserver_report_syscall) before 0 sysno 423 tid 3

That's GENXY(NR_nanosleep, sys_nanosleep), // 240 and BSDXY(NR_swapcontext, sys_swapcontext), // 423

Tracing syscalls

SYSCALL846,7 sys_swapcontext ( 0xfbbf1020, 0xfbbf0d60 ) --> [pre-success] NoWriteResult SYSCALL846,7 sys_nanosleep ( 0x630be1c, 0x0 ) --> [async] ... SYSCALL846,6 ... [async] --> Success(0x0) SYSCALL846,6 sys_swapcontext ( 0xfbbf07d0, 0xfbbf0510 ) --> [pre-success] NoWriteResult SYSCALL846,6 sys_nanosleep ( 0x63088ac, 0x0 ) --> [async] ... SYSCALL846,7 ... [async] --> Success(0x0) SYSCALL846,7 sys_swapcontext ( 0xfbbf0d60, 0xfbbf1020 ) --> [pre-success] NoWriteResult SYSCALL846,7 sys_nanosleep ( 0x630d63c, 0x0 ) --> [async] ...

Can't see anything version specific in there.