Board.KolibriOS.org
http://board.kolibrios.org/

System freezes while using network in virtualbox
http://board.kolibrios.org/viewtopic.php?f=11&t=3620
Page 1 of 2

Author:  Leency [ Tue Jan 21, 2014 3:15 pm ]
Post subject:  System freezes while using network in virtualbox

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 :(

Author:  Mario_r4 [ Tue Jan 21, 2014 8:51 pm ]
Post subject:  Re: System freezes while using network

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

Author:  Leency [ Tue Jan 21, 2014 9:16 pm ]
Post subject:  Re: System freezes while using network

I tried VirtualBox with PCnet-FAST III (Am79C973)
In this case I was clicked actively about 5 minutes to got freese. r4497

Author:  Leency [ Tue Jan 21, 2014 9:18 pm ]
Post subject:  Re: System freezes while using network

BUT. Clock dots are blinking 18:08 > 18 08 > 18:08

Author:  Mario_r4 [ Tue Jan 21, 2014 9:38 pm ]
Post subject:  Re: System freezes while using network

Leency wrote:
BUT. Clock dots are blinking 18:08 > 18 08 > 18:08

It makes sense to try viewtopic.php?f=42&t=2034

Author:  hidnplayr [ Wed Jan 22, 2014 5:34 pm ]
Post subject:  Re: System freezes while using network

Please test build #4510

Author:  Leency [ Wed Jan 22, 2014 7:34 pm ]
Post subject:  Re: System freezes while using network

Sorry, not fixed rev 4511

Attachments:
22-01-2014 18-28-15.png
22-01-2014 18-28-15.png [ 62.8 KiB | Viewed 3569 times ]

Author:  hidnplayr [ Thu Jan 23, 2014 12:54 am ]
Post subject:  Re: System freezes while using network

I'm unable to reproduce this freeze with version #4512.
If somebody is still able to reproduce, please let me know.

Author:  Leency [ Thu Jan 23, 2014 1:39 am ]
Post subject:  Re: System freezes while using network

Sorry, still reproduced #4512.

Author:  Leency [ Thu Jan 23, 2014 4:13 am ]
Post subject:  Re: System freezes while using network

With English distro too.

Author:  hidnplayr [ Fri Jan 24, 2014 12:58 am ]
Post subject:  Re: System freezes while using network

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:
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?

Author:  Mario_r4 [ Fri Jan 24, 2014 7:58 am ]
Post subject:  Re: System freezes while using network

I am not a guru, but... probably overwriting code area or data for one area overlaps another area.
This is just idea.

Author:  CleverMouse [ Fri Jan 24, 2014 1:05 pm ]
Post subject:  Re: System freezes while using network

Quote:
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.

Author:  hidnplayr [ Sat Jan 25, 2014 3:54 pm ]
Post subject:  Re: System freezes while using network

There was a bug in SOCKET_notify which might have resulted in stack corruption in some cases.
Please test #4528

Author:  Mario_r4 [ Sat Jan 25, 2014 5:39 pm ]
Post subject:  Re: System freezes while using network

hidnplayr wrote:
Please test #4528

VirtualBox 4.3.0. r.89960 - all 5 configurations are working properly.

Page 1 of 2 All times are UTC+03:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/