Skip to content

Sandbox scripts do not set unlimited stack size #1192

@johnbrvc

Description

@johnbrvc

Describe the issue:
The default stacksize on Linux is 8MB. For some problems, this isn't enough. The stack size should be set to be the maximum allowed (unlimited). It will be governed by the maximum memory size allocated to the process though (eg. 2GB)

To Reproduce:
Observe that the pc2v9/scripts/pc2sandbox* scripts do not do "ulimit -s unlimited". This causes the system to use the system default, which is 8MB.

Expected behavior:
Stack size should be set to the maximum memory allocated to the process.

Actual behavior:
Stack size maximum is 8MB.

Environment: please complete the following information:
Ubuntu 24.04

Log Info:

Screenshots:

Additional context:
This has not been a problem in recent contests because the scripts reside on on the AWS servers and they don't get updated, so they all have the ulimit -s unlimited. This issue is to update the scripts that go into the git repo.

Metadata

Metadata

Assignees

Labels

NEXT ContestConsider fixing for next contetOne ApprovalA very low risk and low LOE PR/ChangeSmall LOELess than an hour to code, test and push a PRbugSomething isn't workinghigh priorityBugs that are high priority (to fix)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions