SYSERR: Write to socket: Connection reset by peer

More
5 months 3 weeks ago #7435 by thomas
Ok, some observations:

Nothing in this code is overflowing.
d->history[] is totally messed up. I can recognize the contents as http headers, though the first 4 bytes of each is garbage.

The first four bytes of d->history[1] are 0x28 0x0b 0x39 0x09, or the byte representation of 0x9390b28.

Please run the command
x/40xb 0x9390b28.

This should list out memory contents at that location. It might provide a clue...

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #7436 by Treblin
#0  0x003223d0 in _int_free () from /lib/libc.so.6
(gdb) up
#1  0x00326a89 in free () from /lib/libc.so.6
(gdb) up
#2  0x0809d541 in close_socket (d=0x938cf70) at comm.c:2094
2094            free(d->history[cnt]);
(gdb) x/40xb 0x9390b28
0x9390b28:      0x68    0x0b    0x39    0x09    0x19    0x00    0x00    0x00
0x9390b30:      0x00    0x00    0x00    0x00    0x3a    0x20    0x77    0x77
0x9390b38:      0x77    0x2e    0x62    0x6f    0x78    0x75    0x6e    0x2e
0x9390b40:      0x63    0x6f    0x6d    0x00    0x21    0x00    0x00    0x00
0x9390b48:      0x70    0x0b    0x39    0x09    0x65    0x63    0x74    0x69

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
5 months 2 weeks ago #7537 by JTP
Any luck find out why it crashes with some connections ?

Please Log in or Create an account to join the conversation.

More
5 months 2 weeks ago #7540 by Treblin
Not sure if Thomas has had any luck tracking it down. Luckily this hasn't been a prevalent issue at least for myself. I've had it happen just the one time.

Please Log in or Create an account to join the conversation.

  • JTP
  • Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
More
5 months 2 weeks ago - 5 months 2 weeks ago #7541 by JTP
Last time i had it was a few weeks ago, where it happened twice in two days, and Then nothing. But a year ago i also had it 2-3 times. Its not very often, but quite annoying to the game flow when it happends.
Last edit: 5 months 2 weeks ago by JTP.

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #7547 by thomas
No, I still haven't come to the bottom of this.

Apparently, you're being crawled by a web crawler and that causes trouble, but I can't seem to trigger it myself, locally.

Please Log in or Create an account to join the conversation.

More
5 months 1 week ago #7549 by Treblin
The web crawler makes me really interested in seeing JTP's gdb output. Im curious if it is the same website and/or related to the mud hosting services we use. I for one receive 4-5 logins per day from people clicking on old links to a mud that used to exist on the same server/port.

Please Log in or Create an account to join the conversation.

Time to create page: 1.195 seconds