gaim unhappy when Socks5 server goes away
Bug #57430 reported by
Tollef Fog Heen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gaim (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: gaim
Steps to reproduce:
ssh -v -D 1234 somehost (this makes localhost:1234 an SOCKS5 proxy)
start gaim, add an IRC account and ask it to use localhost:1234 as a SOCKS5 proxy
ssh quits with:
debug1: Connection to port 1234 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
buffer_get_ret: trying to get more bytes 2 than in buffer 1
buffer_get: buffer error
gaim stops updating its UI and spins using 100% CPU.
To post a comment you must log in.
It appears that GAIM doesn't recognize that its SOCKS server has disappeared.
The following strace shows that it ignores read() telling it that there's no more
data and that it should close the socket.
[pid 13038] gettimeofday( {1156329645, 910207}, NULL) = 0 POLLIN| POLLPRI} , {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=17, events=POLLIN, revents=POLLIN}], 7, 0) = 1 {1156329645, 910545}, NULL) = 0 POLLIN| POLLPRI} , {fd=12, events=POLLIN}, {fd=13, events=POLLIN}, {fd=17, events=POLLIN, revents=POLLIN}], 7, 0) = 1
[pid 13038] poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=10, events=
[pid 13038] read(17, "", 512) = 0
[pid 13038] ioctl(3, FIONREAD, [0]) = 0
[pid 13038] gettimeofday(
[pid 13038] poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=6, events=POLLIN}, {fd=10, events=
[pid 13038] read(17, "", 512) = 0
[pid 13038] ioctl(3, FIONREAD, [0]) = 0