Martin Pieuchot writes:
> On 17/09/17(Sun) 17:05, Bryan Linton wrote:
> > [ CCing all potentially involved parties, because I'd rather CC
> > more people than necessary than leave out an interested party.
> > Please ignore this mail if it's not relevant to you. ]
> >
> > [...]
> >
> > Reverting the above commit fixes the issue for me. Without the
> > reversion, SDL games freeze at a black screen if a joypad is
> > connected. Invoking "kill -9" or unplugging the joypad is the
> > only way to unfreeze the program.
>
> When the program "freeze" what does top says? Where is it sleeping?
PID USERNAME PRI NICE SIZE RES STATE WAIT TIME CPU COMMAND
30135 anthony 0 0 2616K 5596K idle uhidrea 0:00 0.00% gambatte_sdl
> Could you please ktrace the freezing programme when this happen? What
> do you see?
Once it's frozen ktrace seems to show no output. Here's the last few
lines if I run ktrace from the start:
90169 gambatte_sdl RET read 5228/0x146c
90169 gambatte_sdl CALL mmap(0,0x1000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,-1,0)
90169 gambatte_sdl RET mmap 27459591401472/0x18f96f30f000
90169 gambatte_sdl CALL mmap(0,0x1000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,-1,0)
90169 gambatte_sdl RET mmap 27460549373952/0x18f9a84a7000
90169 gambatte_sdl CALL mmap(0,0x1000,0x3<PROT_READ|PROT_WRITE>,0x1002<MAP_PRIVATE|MAP_ANON>,-1,0)
90169 gambatte_sdl RET mmap 27461614313472/0x18f9e7c42000
90169 gambatte_sdl CALL read(5,0x18f984ee8000,0x4000)
90169 gambatte_sdl RET read 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd620,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL close(5)
90169 gambatte_sdl RET close 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd860,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL open(0x18f984f3db00,0<O_RDONLY>)
90169 gambatte_sdl NAMI "/dev/uhid0"
90169 gambatte_sdl RET open 5
90169 gambatte_sdl CALL ioctl(5,_IOR('U',21,0x4),0x7f7ffffcd400)
90169 gambatte_sdl RET ioctl 0
90169 gambatte_sdl CALL ioctl(5,_IOR('U',25,0x4),0x18f960a5c7b0)
90169 gambatte_sdl RET ioctl 0
90169 gambatte_sdl CALL fcntl(5,F_SETFL,0x4<O_NONBLOCK>)
90169 gambatte_sdl RET fcntl -1 errno 22 Invalid argument
90169 gambatte_sdl CALL kbind(0x7f7ffffcd860,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd840,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd5c0,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL gettimeofday(0x7f7ffffcd668,0)
90169 gambatte_sdl STRU struct timeval { 1505889358<"Sep 20 00:35:58 2017">.094049 }
90169 gambatte_sdl RET gettimeofday 0
90169 gambatte_sdl CALL recvmsg(3,0x7f7ffffcd480,0)
90169 gambatte_sdl RET recvmsg -1 errno 35 Resource temporarily unavailable
90169 gambatte_sdl CALL recvmsg(3,0x7f7ffffcd480,0)
90169 gambatte_sdl RET recvmsg -1 errno 35 Resource temporarily unavailable
90169 gambatte_sdl CALL recvmsg(3,0x7f7ffffcd480,0)
90169 gambatte_sdl RET recvmsg -1 errno 35 Resource temporarily unavailable
90169 gambatte_sdl CALL recvmsg(3,0x7f7ffffcd480,0)
90169 gambatte_sdl RET recvmsg -1 errno 35 Resource temporarily unavailable
90169 gambatte_sdl CALL recvmsg(3,0x7f7ffffcd480,0)
90169 gambatte_sdl RET recvmsg -1 errno 35 Resource temporarily unavailable
90169 gambatte_sdl CALL kbind(0x7f7ffffcd5c0,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL select(4,0x7f7ffffcd6d0,0,0,0x18f9d3627c90)
90169 gambatte_sdl STRU struct timeval { 0 }
90169 gambatte_sdl STRU struct fd_set { 3 }
90169 gambatte_sdl STRU struct fd_set { }
90169 gambatte_sdl RET select 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd7f0,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL kbind(0x7f7ffffcd710,24,0xa4f186cee2e7bfa5)
90169 gambatte_sdl RET kbind 0
90169 gambatte_sdl CALL read(5,0x18f94585a804,0x4)
--
Anthony J. Bentley
No comments:
Post a Comment