Opened 15 years ago

Closed 15 years ago

#4864 closed bug (fixed)

message ports not being reaped/reclaimed

Reported by: augiedoggie Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When this problem occurs all currently running applications will just vanish when you attempt to use them and no new applications will launch. For example, trying to run lpe gives an error about bad port id.

I first noticed this when running the ruby test suite, but now I've had it happen even during regular use of Haiku. The ruby test suite is guaranteed to reproduce the problem.

I'm attaching a verbatim copy of my syslog which gives some interesting error messages at the end. There is a lot of noise in the syslog due to the fact that my computer is under almost constant ssh brute force attacks.

I hate to file such a generic bug report, but my system becomes unusable when this starts happening so it's difficult to gather data. Filing this one under Servers/registrar since I've seen some really old bug reports where this was the problem.

Attachments (1)

syslog (144.3 KB ) - added by augiedoggie 15 years ago.

Download all attachments as: .zip

Change History (5)

by augiedoggie, 15 years ago

Attachment: syslog added

comment:1 by augiedoggie, 15 years ago

Component: Servers/registrarSystem/Kernel
Owner: changed from bonefish to axeld
Summary: application/system crash(ports/registrar problem?)message ports not being reaped/reclaimed

While running a 'watch listport' within a terminal I can see that running certain applications or when an application crashes the number of used ports doesn't go back down to the same number as before the application was started. I think there is a gradual build up of these zombie ports which are not being reclaimed by the system.

comment:2 by augiedoggie, 15 years ago

Just to give some examples....

The system "loses" 10 ports for each launch and quit of BeZilla, and at least 3 for each launch of the ruby interpreter. Just running 'ruby' and then killing it with a Ctrl-C shows this behavior.

I'm posting a copy of the ruby optional package here in case someone would like to test with it. unzip -d /boot ruby-1.9.1-x86-gcc2-2009-10-28.zip to install.

My system uses approximately 125-150 ports right after boot. After running for a few hours, I have one BeZilla window and one Terminal window open, I'm seeing 440 ports used.

comment:3 by axeld, 15 years ago

Status: newassigned

comment:4 by axeld, 15 years ago

Resolution: fixed
Status: assignedclosed

Thanks! I didn't notice yet. Fixed in hrev33823.

Note: See TracTickets for help on using tickets.