valgrind shared memory programs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
valgrind (Ubuntu) |
New
|
Undecided
|
Unassigned |
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@pmilosla-
==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@pmilosla-
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: valgrind (not installed)
ProcVersionSign
Uname: Linux 6.2.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
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-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: valgrind
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
# 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.
read(1028, "D", 1) = 1 SEGV_MAPERR, si_addr= 0x1ffeffdb28} --- PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_ANONYMOUS, 0, 0) = 0x1ffeffd000 {mask=~ [ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 7013 SEGV_MAPERR, si_addr= 0x1ffeffcb28} --- PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_ANONYMOUS, 0, 0) = 0x1ffeffc000 {mask=~ [ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 6501 SEGV_MAPERR, si_addr= 0x1ffeffbb28} --- PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_ANONYMOUS, 0, 0) = 0x1ffeffb000 {mask=~ [ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 5989 SEGV_MAPERR, si_addr= 0x1ffeffafe8} --- PROT_WRITE, MAP_PRIVATE| MAP_FIXED| MAP_ANONYMOUS, 0, 0) = 0x1ffeffa000 {mask=~ [ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 5629 AT_FDCWD, ".", {st_mode= S_IFDIR| 0775, st_size=4096, ...}, 0) = 0
close(4) = 0
getpid() = 237478
write(1027, "--237478-- REDIR: 0x522cc80 (lib"..., 91) = 91
--- SIGSEGV {si_signo=SIGSEGV, si_code=
gettid() = 237478
mmap(0x1ffeffd000, 4096, PROT_READ|
rt_sigreturn(
--- SIGSEGV {si_signo=SIGSEGV, si_code=
gettid() = 237478
mmap(0x1ffeffc000, 4096, PROT_READ|
rt_sigreturn(
--- SIGSEGV {si_signo=SIGSEGV, si_code=
gettid() = 237478
mmap(0x1ffeffb000, 4096, PROT_READ|
rt_sigreturn(
--- SIGSEGV {si_signo=SIGSEGV, si_code=
gettid() = 237478
mmap(0x1ffeffa000, 4096, PROT_READ|
rt_sigreturn(
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5231eb0 (lib"..., 87) = 87
getpid() = 237478
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5234180 (lib"..., 102) = 102
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5230380 (lib"..., 86) = 86
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5232240 (lib"..., 89) = 89
newfstatat(
getuid() = 0
getegid() = 0
setgid(1001) = 0
getpid() = 237478
write(1027, "==237478== Conditional jump or m"..., 70) = 70
getpid() = 237478
write(1027, "==237478== at 0x936BB7: mains"..., 47) = 47
getpid() = 237478
write(1027, "==237478== by 0x939C56: mmain"..., 46) = 46
getpid() = 237478
write(1027, "==237478== by 0x4107C9: main "..., 45) = 45
getpid() = 237478
write(1027, "==237478== Uninitialised value "..., 66) = 66
getpid() = 237478
write(1027, "==237478== at 0x935B36: mains"..., 47) = 47
getpid() = 237478
write(1027, "==237478== \n", 12) = 12
getpid() = 237478
write(1027, "==237478== Conditional jump or m"..., 70) = 70
getpid() = 237478
write(1027, "==237478== at 0x936BCA: mains"..., 47) = 47
getpid() = 237478
write(1027, "==237478== by 0x939C56: mmain"..., 46) = 46
getpid() ...