Board.KolibriOS.org

Official KolibriOS board
It is currently Sat Oct 19, 2019 10:14 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Tue Jan 21, 2014 3:15 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
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 :(

_________________
Через тернии к звездам


Top
   
PostPosted: Tue Jan 21, 2014 8:51 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
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

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Tue Jan 21, 2014 9:16 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
I tried VirtualBox with PCnet-FAST III (Am79C973)
In this case I was clicked actively about 5 minutes to got freese. r4497

_________________
Через тернии к звездам


Last edited by Leency on Tue Jan 21, 2014 9:20 pm, edited 1 time in total.

Top
   
PostPosted: Tue Jan 21, 2014 9:18 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
BUT. Clock dots are blinking 18:08 > 18 08 > 18:08

_________________
Через тернии к звездам


Top
   
PostPosted: Tue Jan 21, 2014 9:38 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
Leency wrote:
BUT. Clock dots are blinking 18:08 > 18 08 > 18:08

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

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Wed Jan 22, 2014 5:34 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Please test build #4510

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Wed Jan 22, 2014 7:34 pm 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
Sorry, not fixed rev 4511


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

_________________
Через тернии к звездам
Top
   
PostPosted: Thu Jan 23, 2014 12:54 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
I'm unable to reproduce this freeze with version #4512.
If somebody is still able to reproduce, please let me know.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Thu Jan 23, 2014 1:39 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
Sorry, still reproduced #4512.

_________________
Через тернии к звездам


Top
   
PostPosted: Thu Jan 23, 2014 4:13 am 
Offline
Designer
User avatar

Joined: Thu Jan 25, 2007 3:33 pm
Posts: 5062
With English distro too.

_________________
Через тернии к звездам


Top
   
PostPosted: Fri Jan 24, 2014 12:58 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
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?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Fri Jan 24, 2014 7:58 am 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
I am not a guru, but... probably overwriting code area or data for one area overlaps another area.
This is just idea.

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
PostPosted: Fri Jan 24, 2014 1:05 pm 
Offline
Kernel Developer
User avatar

Joined: Thu Sep 03, 2009 1:52 pm
Posts: 1621
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.

_________________
Сделаем мир лучше!


Top
   
PostPosted: Sat Jan 25, 2014 3:54 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
There was a bug in SOCKET_notify which might have resulted in stack corruption in some cases.
Please test #4528

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
PostPosted: Sat Jan 25, 2014 5:39 pm 
Offline
Kernel Developer

Joined: Sun Feb 10, 2013 12:37 pm
Posts: 2329
hidnplayr wrote:
Please test #4528

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

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 17 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited