manticoresoftware / manticoresoftware/manticore-load

shmop_open error

Open
#7 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
8
Forks
0
Avg merge
3d 16h
Merged PRs (30d)
2

Description

for the table `CREATE TABLE t(f1 text, f2 text, age int, color string, age2 int);`

the load emulation like
```
manticore-load \
--host=127.0.0.1 \
--port=27315 \
--threads=20 \
--total=1000 \
--load="SELECT * FROM t WHERE MATCH('() | () | () | () ')" \
--together \
--batch-size=10000 \
--threads=5 \
--total=1000000 \
--load="INSERT INTO t(id, f1, f2, age, color, age2) VALUES(0, '', '', , '', )"
```

exits with the following error
```
Warning: shmop_open(): Unable to attach or create shared memory segment "Invalid argument" in /usr/bin/manticore-load on line 86
Failed to create shared memory segment. Error: shmop_open(): Unable to attach or create shared memory segment "Invalid argument"
```

sometimes it helps to start the load with the sudo.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the shown manticore-load command and inspect /usr/bin/manticore-load at line 86, where shmop_open reports the shared-memory failure. Compare runs with and without sudo, then verify that the load starts without the Invalid argument error under the documented conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.