Skip to content

Fix crashes when using the "--touch" option.#80

Merged
andikleen merged 1 commit into
numactl:masterfrom
patman-cp:master
Oct 16, 2019
Merged

Fix crashes when using the "--touch" option.#80
andikleen merged 1 commit into
numactl:masterfrom
patman-cp:master

Conversation

@patman-cp

Copy link
Copy Markdown
Contributor

Fix memory to be mapped read/write, so that the "touch" option can write to it.

Signed-off-by: Patrick Mansfield patrick.mansfield@cpacketnetworks.com

Fix memory to be mapped read/write, so that the "touch" option can write to it.

Signed-off-by: Patrick Mansfield <patrick.mansfield@cpacketnetworks.com>

@patman-cp patman-cp left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The shmtest test script didn't work for me, I manually ran some simple tests with "--touch" commands, these:

./numactl --length=20m --shm=A --touch
./numactl --length 10485760 --file B --membind 1 --touch

Without the fix, both the above will seg fault.

@bessonc

bessonc commented Oct 16, 2019

Copy link
Copy Markdown

This patch also fixes the issue for me (no more segfaults)

@andikleen andikleen merged commit a47463a into numactl:master Oct 16, 2019
@andikleen

Copy link
Copy Markdown
Contributor

Thanks!

@harish-24

Copy link
Copy Markdown
Contributor

1 similar comment
@harish-24

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants