TUD-OS / NRE

NOVA runtime environment (official branch)
GNU General Public License v2.0
34 stars 12 forks source link

TimeoutList slots are not being dellocated #31

Closed parthy closed 11 years ago

parthy commented 11 years ago

Although the TimeoutList provides a function for deallocating a previously allocated slot, it is never used. So starting and killing a VM several times quickly leads to this exception: Exception: Capacity exceeded (14): No free timeout slots Would it be possible to eliminate this limitation by using the dealloc function?

parthy commented 11 years ago

Did you test that? When I apply the commit, nothing works. Lots of messages like this:

[0] Child[cmdline='bin/apps/storage noidedma' cpu=3 entry=0000:0003:0040:0098]:
[0]     Scs:
[0]     GSIs: Bitfield[0000000000000000 0000000000000000]
[0]     Ports:
[0]     Dataspaces:
[0]     [ 8847] 0000:0003:0040:0000 .. 0000:0003:0044:2000 (0x0000000000042000 bytes) or-x <- 0000:0002:03ac:2000
[0]     [ 8851] 0000:0003:0044:2000 .. 0000:0003:0045:6000 (0x0000000000014000 bytes) orw- <- 0000:0002:03b0:4000
[0]     [-----] 0000:0003:0045:7000 .. 0000:0003:0045:8000 (0x0000000000001000 bytes) ---- <- 0000:0000:0000:0000
[0]     [-----] 0000:0003:0045:a000 .. 0000:0003:0045:c000 (0x0000000000002000 bytes) orw- <- 0000:0000:02f4:2000
[0]     [ 8861] 0000:0003:0045:d000 .. 0000:0003:0045:e000 (0x0000000000001000 bytes) or-- <- 0000:0002:03b1:b000
[0]     [ 8865] 0000:0003:0045:f000 .. 0000:0003:0046:0000 (0x0000000000001000 bytes) or-- <- 0000:0002:03b1:c000
[0] 
[0] 
[6] Exception: Assert failed (10): 
[6] Backtrace:
[6]     0000:0003:0015:7db2
[6]     0000:0003:0014:69a8
[6]     0000:0003:0015:5244
[6]     0000:0003:0015:4d9c
[6]     0000:0003:0015:42cd
[6]     0000:0003:0016:9b97
[0] Child 'bin/apps/console': Pd terminated with exit code 1 on cpu 2
Nils-TUD commented 11 years ago

Oh, damn, I haven't tested it in debug-mode and thus haven't seen that an assert fails. I'll fix that.