[Bug 2043823] Re: valgrind shared memory programs
Philip M
2043823 at bugs.launchpad.net
Fri Jan 26 12:53:56 UTC 2024
Up to shmat call, the args are exactly the same in both cases:
pmilosla at 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 at 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 at pmilosla-ubuntu22:mgr>
pmilosla at 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
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to valgrind in Ubuntu.
https://bugs.launchpad.net/bugs/2043823
Title:
valgrind shared memory programs
Status in valgrind package in Ubuntu:
New
Bug description:
Unexpected error occurred attempting to attach to shared memory.
This worked fine in ubuntu 20 with our APP. But is failing on ubuntu
22. I tried the latest valgrind from the internet also, same thing.
root at pmilosla-ubuntu22:/opt/iris/TAGGED/mgr# valgrind ../bin/irisdb -s.
==236668== Memcheck, a memory error detector
==236668== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==236668== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
==236668== Command: ../bin/irisdb -s.
==236668==
==236668== Conditional jump or move depends on uninitialised value(s)
==236668== at 0x936BB7: mainsub (mux.c:917)
==236668== by 0x939C56: mmain (mux.c:2341)
==236668== by 0x4107C9: main (main.c:120)
==236668==
==236668== Conditional jump or move depends on uninitialised value(s)
==236668== at 0x936BCA: mainsub (mux.c:918)
==236668== by 0x939C56: mmain (mux.c:2341)
==236668== by 0x4107C9: main (main.c:120)
==236668==
Unexpected error occurred attempting to attach to shared memory.
==236668==
==236668== HEAP SUMMARY:
==236668== in use at exit: 0 bytes in 0 blocks
==236668== total heap usage: 11 allocs, 11 frees, 80,626 bytes allocated
==236668==
==236668== All heap blocks were freed -- no leaks are possible
==236668==
==236668== Use --track-origins=yes to see where uninitialised values come from
==236668== For lists of detected and suppressed errors, rerun with: -s
==236668== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
root at pmilosla-ubuntu22:/opt/iris/TAGGED/mgr#
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: valgrind (not installed)
ProcVersionSignature: Ubuntu 6.2.0-36.37~22.04.1-generic 6.2.16
Uname: Linux 6.2.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Nov 17 12:05:06 2023
InstallationDate: Installed on 2023-06-14 (156 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: valgrind
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.default.apport:
# set this to 0 to disable apport, or to 1 to enable it
# you can temporarily override this with
# sudo service apport start force_start=1
enabled=0
mtime.conffile..etc.default.apport: 2023-07-11T12:19:20.955497
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/2043823/+subscriptions
More information about the foundations-bugs
mailing list