Advertising
- Infinite loop, rlen0
- Thursday, September 9th, 2010 at 11:45:05am MDT
- 378 FD_SET(cl->socket, &reader);
- (gdb)
- 381 timeout.tv_sec = 0;
- (gdb)
- 385 if( select(cl->socket + 1, &reader, NULL, NULL, &timeout) > 0 )
- (gdb)
- 388 ensure_out(rlen = uh_tcp_peek(cl, bufptr, blen));
- (gdb)
- 390 if( (idxptr = strfind(buffer, sizeof(buffer), "\r\n\r\n", 4)) )
- (gdb)
- 402 ensure_out(rlen = uh_tcp_recv(cl, bufptr, rlen));
- (gdb)
- 375 while( blen > 0 )
- (gdb) x/i $pc
- 0x402744 <uh_mainloop+1524>: blez s3,0x402754 <uh_mainloop+1540>
- 0x402748 <uh_mainloop+1528>: addu s1,s1,v0
- (gdb) i r
- zero at v0 v1 a0 a1 a2 a3
- R0 00000000 7fb38984 00000000 00000000 0041e008 0041a5a0 00000000 00000004
- t0 t1 t2 t3 t4 t5 t6 t7
- R8 00000000 00000fff 00001000 fffffffc 830f9ec8 00000000 00000001 00420000
- s0 s1 s2 s3 s4 s5 s6 s7
- R16 00000000 0041a5a0 0041e008 00000fff 00000004 7fb38f04 0041b5a0 0041a5a0
- t8 t9 k0 k1 gp sp s8 ra
- R24 0041a3c8 2ab8e350 00000000 00000000 2abb7540 7fb38860 7fb38980 0040273c
- status lo hi badvaddr cause pc
- 0000fc13 0001868f 0000001d 0040536c 10800024 00402744
- fcsr fir restart
- 00000000 00000000 00000000
- (gdb) n
- 405 bufptr += rlen;
- (gdb) x/i $pc
- 0x40274c <uh_mainloop+1532>: j 0x402388 <uh_mainloop+568>
- 0x402750 <uh_mainloop+1536>: move v0,s8
- (gdb) i r
- zero at v0 v1 a0 a1 a2 a3
- R0 00000000 7fb38984 00000000 00000000 0041e008 0041a5a0 00000000 00000004
- t0 t1 t2 t3 t4 t5 t6 t7
- R8 00000000 00000fff 00001000 fffffffc 830f9ec8 00000000 00000001 00420000
- s0 s1 s2 s3 s4 s5 s6 s7
- R16 00000000 0041a5a0 0041e008 00000fff 00000004 7fb38f04 0041b5a0 0041a5a0
- t8 t9 k0 k1 gp sp s8 ra
- R24 0041a3c8 2ab8e350 00000000 00000000 2abb7540 7fb38860 7fb38980 0040273c
- status lo hi badvaddr cause pc
- 0000fc13 0001868f 0000001d 0040536c 10800024 0040274c
- fcsr fir restart
- 00000000 00000000 00000000
- (gdb)
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.