Page 2 of 2

Re: Спонтанные зависания системы

Posted: Wed May 27, 2015 2:46 pm
by CleverMouse
hidnplayr: network irq handler calls KernelAlloc, KernelAlloc fails and returns zero, network irq handler tries to write to zero address, in context of the system process it leads to #PF.
1. The handler should not crash in situations with low memory - if KernelAlloc returns zero, it probably isn't possible to do much, but at least fail politely.
2. Something is leaking memory allocated with KernelAlloc - KernelFree calls are missing or have invalid arguments. While theoretically it could be due to some other system components, I suspect the network layer.

Re: Спонтанные зависания системы

Posted: Wed May 27, 2015 8:35 pm
by hidnplayr
CleverMouse: Yes, what you say is what I was thinking as well.
I did not make any comments yet because I need to review code. I should not even be using KernelAlloc, but NetAlloc instead.

Re: Спонтанные зависания системы

Posted: Thu May 28, 2015 1:49 pm
by hidnplayr
Since #5561 i8255x driver should no longer leak memory, and fail graciously when out of resources.
Correct handling of "out of resources" situation remains to be done.

Re: Спонтанные зависания системы

Posted: Thu May 28, 2015 6:20 pm
by popovpa
I8255X: Out of resources!

Re: Спонтанные зависания системы

Posted: Fri May 29, 2015 3:01 pm
by popovpa
Everything is fine! Freezing disappeared, as puddles mushroom from the rain under the bright summer sun.

Re: Спонтанные зависания системы

Posted: Fri May 29, 2015 8:55 pm
by hidnplayr
popovpa: Currently, chain reaction of problems occurs when network card says it's out of resources.
I must figure out how to handle this situation properly, and write this code in the driver.

Re: Спонтанные зависания системы

Posted: Sun Feb 28, 2021 9:59 pm
by aoeuin
I'm in the process of setting out Kolibrios on my PC. Downloaded it yesterday and have it running - dual booting without any issue between mxlinux and kolibrios.

I cannot get networking to work. Have tried a number of different nics.

The PC currently has a I82559 based intel nic and a 3com 3c905B.

The debug says the following:

I8255X: Out of resources!
3C59X: This device is not auto-negotiation capable.

Both nics work without any issue when I boot mxlinux.

When booting Kolibrios, I've tried each nic individually, to rule out any resource conflicts, and get the same results as I mentioned above.

This is an older Supermicro S2DGR motherboard.

Machine:
Type: Desktop Mobo: Supermicro model: Intel 440GX v: Rev. 1

CPU:
Topology: Single Core model: Pentium III (Cascades) bits: 32 type: MT
arch: P6 III Xeon rev: 1 L2 cache: 2048 KiB
flags: pae sse bogomips: 2405
Speed: 601 MHz min/max: N/A Core speeds (MHz): 1: 601 2: 601
Graphics:
Device-1: NVIDIA NV5 [Riva TNT2 / TNT2 Pro] vendor: Diamond Systems Audio:
Device-1: Creative Labs EMU10k2/CA0100/CA0102/CA10200 [Sound Blaster
Audigy Series]
driver: snd_emu10k1 v: kernel bus ID: 00:12.0
Sound Server: ALSA v: k4.15.0-1-686-pae