Page 1 of 2
System freezes while using network in virtualbox
Posted: Tue Jan 21, 2014 3:15 pm
by Leency
Tested in VirtualBox
See
http://screencast.com/t/6nWryOab
hidnplayer, fix, please.
Please, do not develop anything else. Because nothing else metter when system freezes
Re: System freezes while using network
Posted: Tue Jan 21, 2014 8:51 pm
by Mario_r4
I repeated the same for Qemu 0.12.2 and VirtualBox 4.3.0. r.89960 - the problem is not detected.
Qemu
-net nic,model=rtl8139
VirtualBox
PCnet-FAST III (Am79C973)
Host System: Windows 7 Home Premium 64-bit SP1
Kolibri r.4497
Re: System freezes while using network
Posted: Tue Jan 21, 2014 9:16 pm
by Leency
I tried VirtualBox with PCnet-FAST III (Am79C973)
In this case I was clicked actively about 5 minutes to got freese. r4497
Re: System freezes while using network
Posted: Tue Jan 21, 2014 9:18 pm
by Leency
BUT. Clock dots are blinking 18:08 > 18 08 > 18:08
Re: System freezes while using network
Posted: Tue Jan 21, 2014 9:38 pm
by Mario_r4
Leency wrote:BUT. Clock dots are blinking 18:08 > 18 08 > 18:08
It makes sense to try
viewtopic.php?f=42&t=2034
Re: System freezes while using network
Posted: Wed Jan 22, 2014 5:34 pm
by hidnplayr
Please test build #4510
Re: System freezes while using network
Posted: Wed Jan 22, 2014 7:34 pm
by Leency
Sorry, not fixed rev 4511
Re: System freezes while using network
Posted: Thu Jan 23, 2014 12:54 am
by hidnplayr
I'm unable to reproduce this freeze with version #4512.
If somebody is still able to reproduce, please let me know.
Re: System freezes while using network
Posted: Thu Jan 23, 2014 1:39 am
by Leency
Sorry, still reproduced #4512.
Re: System freezes while using network
Posted: Thu Jan 23, 2014 4:13 am
by Leency
With English distro too.
Re: System freezes while using network
Posted: Fri Jan 24, 2014 12:58 am
by hidnplayr
It seems latest call before freeze is SOCKET_block.
Latest message on debug board was: "SOCKET_block: suspending thread: 26"
Then mouse and keyboard became unuseable, clock keeps ticking. After a while the screensaver appears.
Code: Select all
SOCKET_block:
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: %x\n", eax
push eax
pushf
cli
; Set the 'socket is blocked' flag
or [eax + SOCKET.state], SS_BLOCKED
; Suspend the thread
push edx
mov edx, [TASK_BASE]
mov [edx + TASKDATA.state], 1 ; Suspended
; Remember the thread ID so we can wake it up again
mov edx, [edx + TASKDATA.pid]
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: suspending thread: %u\n", edx
mov [eax + SOCKET.TID], edx
pop edx
popf
call change_task
pop eax
DEBUGF DEBUG_NETWORK_VERBOSE, "SOCKET_block: continuing\n"
ret
O mighty guru, what have I done wrong this time?
Re: System freezes while using network
Posted: Fri Jan 24, 2014 7:58 am
by Mario_r4
I am not a guru, but... probably overwriting code area or data for one area overlaps another area.
This is just idea.
Re: System freezes while using network
Posted: Fri Jan 24, 2014 1:05 pm
by CleverMouse
Then mouse and keyboard became unuseable, clock keeps ticking
This usually means that some high-priority IRQ handler hangs somewhere, maybe blocked while waiting for something - which it shouldn't do in first place - or, less probably, does not return to the caller due to stack issues. When any IRQ is generated, IRQ controller blocks any other IRQ with same and lower priority, and the code must notify IRQ controller when IRQ handling is done; the code that calls a handler is responsible for that. Timer is IRQ0 and has the highest possible priority, so clock keeps ticking, scheduler keeps switching threads and so on. The priority of USB controller is variable, in particular, it can be lower than the priority of network IRQ, in which case USB would be blocked by broken network IRQ handler.
Re: System freezes while using network
Posted: Sat Jan 25, 2014 3:54 pm
by hidnplayr
There was a bug in SOCKET_notify which might have resulted in stack corruption in some cases.
Please test #4528
Re: System freezes while using network
Posted: Sat Jan 25, 2014 5:39 pm
by Mario_r4
hidnplayr wrote:Please test #4528
VirtualBox 4.3.0. r.89960 - all 5 configurations are working properly.