Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Infinite loop, rlen0
Thursday, September 9th, 2010 at 11:45:05am MDT 

  1. 378               FD_SET(cl->socket, &reader);
  2. (gdb)
  3. 381               timeout.tv_sec  = 0;
  4. (gdb)
  5. 385               if( select(cl->socket + 1, &reader, NULL, NULL, &timeout) > 0 )
  6. (gdb)
  7. 388                    ensure_out(rlen = uh_tcp_peek(cl, bufptr, blen));
  8. (gdb)
  9. 390                    if( (idxptr = strfind(buffer, sizeof(buffer), "\r\n\r\n", 4)) )
  10. (gdb)
  11. 402                         ensure_out(rlen = uh_tcp_recv(cl, bufptr, rlen));
  12. (gdb)
  13. 375          while( blen > 0 )
  14. (gdb) x/i $pc
  15. 0x402744 <uh_mainloop+1524>:    blez        s3,0x402754 <uh_mainloop+1540>
  16. 0x402748 <uh_mainloop+1528>:    addu        s1,s1,v0
  17. (gdb) i r
  18.           zero       at       v0       v1       a0       a1       a2       a3
  19.  R0   00000000 7fb38984 00000000 00000000 0041e008 0041a5a0 00000000 00000004
  20.             t0       t1       t2       t3       t4       t5       t6       t7
  21.  R8   00000000 00000fff 00001000 fffffffc 830f9ec8 00000000 00000001 00420000
  22.             s0       s1       s2       s3       s4       s5       s6       s7
  23.  R16  00000000 0041a5a0 0041e008 00000fff 00000004 7fb38f04 0041b5a0 0041a5a0
  24.             t8       t9       k0       k1       gp       sp       s8       ra
  25.  R24  0041a3c8 2ab8e350 00000000 00000000 2abb7540 7fb38860 7fb38980 0040273c
  26.         status       lo       hi badvaddr    cause       pc
  27.       0000fc13 0001868f 0000001d 0040536c 10800024 00402744
  28.           fcsr      fir  restart
  29.       00000000 00000000 00000000
  30. (gdb) n
  31. 405                         bufptr += rlen;
  32. (gdb) x/i $pc
  33. 0x40274c <uh_mainloop+1532>:    j   0x402388 <uh_mainloop+568>
  34. 0x402750 <uh_mainloop+1536>:    move        v0,s8
  35. (gdb) i r
  36.           zero       at       v0       v1       a0       a1       a2       a3
  37.  R0   00000000 7fb38984 00000000 00000000 0041e008 0041a5a0 00000000 00000004
  38.             t0       t1       t2       t3       t4       t5       t6       t7
  39.  R8   00000000 00000fff 00001000 fffffffc 830f9ec8 00000000 00000001 00420000
  40.             s0       s1       s2       s3       s4       s5       s6       s7
  41.  R16  00000000 0041a5a0 0041e008 00000fff 00000004 7fb38f04 0041b5a0 0041a5a0
  42.             t8       t9       k0       k1       gp       sp       s8       ra
  43.  R24  0041a3c8 2ab8e350 00000000 00000000 2abb7540 7fb38860 7fb38980 0040273c
  44.         status       lo       hi badvaddr    cause       pc
  45.       0000fc13 0001868f 0000001d 0040536c 10800024 0040274c
  46.           fcsr      fir  restart
  47.       00000000 00000000 00000000
  48. (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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

worth-right
worth-right fantasy-obligation