Comment 8 for bug 2043823

Revision history for this message
Philip M (pmilosla) wrote :

Up to shmat call, the args are exactly the same in both cases:
pmilosla@pmilosla-ubuntu22:mgr> sudo ../bin/irisdb -s. About to call attshm with irisdb arg:0 msgbuf:
shmem crckeystr crc:1786300436
status: 1 buf:

Node: pmilosla-ubuntu22, Instance: LATEST

USER>h
pmilosla@pmilosla-ubuntu22:mgr> sudo valgrind --verbose --tool=memcheck --log-file=valgrind_log_%p.txt --trace-children=yes --leak-check=full --show-leak-kinds=all --track-origins=yes ../bin/irisdb -s.
About to call attshm with irisdb arg:0 msgbuf:
shmem crckeystr crc:1786300436
status: -1 buf:Error 22 mapping shared memory id 0x002f8023 (keyval: 0x6a78c814)
Unexpected error occurred attempting to attach to shared memory.
pmilosla@pmilosla-ubuntu22:mgr>

pmilosla@pmilosla-ubuntu22:mgr> ipcs

------ Message Queues --------
key msqid owner perms used-bytes messages
0x00000000 98304 root 660 0 0
0x00000000 98305 root 660 0 0
0x00000000 98306 root 660 0 0

------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x00000000 1572877 pmilosla 606 15377076 2 dest
0x00000000 1572878 pmilosla 606 15377076 2 dest
0x00000000 3112976 pmilosla 600 524288 2 dest
0x00000000 1572882 pmilosla 600 524288 2 dest
0x00000000 2850845 pmilosla 600 524288 2 dest
0x00000000 3112993 pmilosla 600 524288 2 dest
0x6a78c814 3112995 root 660 1090519040 25
0x00000000 3145764 pmilosla 600 524288 2 dest
0x00000000 3113008 pmilosla 600 524288 2 dest

------ Semaphore Arrays --------
key semid owner perms nsems