[Bug 2043823] Re: valgrind shared memory programs
Philip M
2043823 at bugs.launchpad.net
Fri Nov 17 17:40:00 UTC 2023
read(1028, "D", 1) = 1
close(4) = 0
getpid() = 237478
write(1027, "--237478-- REDIR: 0x522cc80 (lib"..., 91) = 91
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1ffeffdb28} ---
gettid() = 237478
mmap(0x1ffeffd000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1ffeffd000
rt_sigreturn({mask=~[ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 7013
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1ffeffcb28} ---
gettid() = 237478
mmap(0x1ffeffc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1ffeffc000
rt_sigreturn({mask=~[ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 6501
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1ffeffbb28} ---
gettid() = 237478
mmap(0x1ffeffb000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1ffeffb000
rt_sigreturn({mask=~[ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 5989
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1ffeffafe8} ---
gettid() = 237478
mmap(0x1ffeffa000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1ffeffa000
rt_sigreturn({mask=~[ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 5629
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(AT_FDCWD, ".", {st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
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() = 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
newfstatat(AT_FDCWD, ".", {st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
shmget(0x5e3f7a5a, 0, 000) = 2457631
shmctl(2457631, IPC_STAT, {shm_perm={uid=0, gid=1001, mode=0660, key=1581218394, cuid=0, cgid=1001}, shm_segsz=1063256064, shm_cpid=237240, shm_lpid=237336, shm_nattch=24, shm_atime=1700242652, shm_dtime=1700242653, shm_ctime=1700242643}) = 0
shmat(2457631, 0x56bf000, 0) = -1 EINVAL (Invalid argument)
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5230600 (lib"..., 93) = 93
getpid() = 237478
write(1027, "--237478-- REDIR: 0x5233980 (lib"..., 103) = 103
shmget(0xe150a762, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x763d1137, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x71bf908, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x7f6d1642, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x83ace8d1, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x55868ac7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xcb343506, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xacb9a12, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x7a609132, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xfeae7be7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x6223b3a4, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x430bcad9, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x72ecfd3, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x586f62de, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x4c317f3c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x32945d9c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xb5e25b6c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x8c669ea8, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x37545d6e, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xc63b8def, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xdab51b3, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xeb039d6e, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xd93d5941, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xffd65729, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xed475577, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe538f958, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x69e3fa07, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1168e8a6, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe11ff0f0, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe75932f7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xb381231c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x2fdcfda4, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x804abb36, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x57e8ff9e, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe58256f2, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1989b427, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x857cb96c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x405a77df, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x784793d5, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x2ecc4a12, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x412ab62a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xa04bc8ce, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x6d7daf23, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xbb6a28e, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xc9079624, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xdb72ce40, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xfb0f3eab, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x672645f2, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x520fc473, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x4c3b1f9a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xc42d71a7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1f1eae1f, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x10c564f4, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xa3acc510, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x55a68aea, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x85309652, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x67587a5a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xeddfdb5a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xbc8b5cc1, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x58d4c74d, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x76849557, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xf767da1, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xa0fd85a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xfd68f6a2, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x2449cb50, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xc8f3184b, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x28ca4b86, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xee26ab67, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x535db59b, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x583b11a4, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x84e67acf, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x9ee073d9, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x9ee073, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x89d3b500, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x2ae6f821, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x45f5ba8d, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xf04a66fe, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x862398b2, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x938fdc05, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1b922aa7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x721cf5af, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xf810b29c, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x8df01d47, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1f577373, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x6faf2092, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x3c6c4bf1, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xcf86f9d2, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe01a6fe7, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xe7583768, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1ee6aa5f, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x6c187347, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xfcd5900f, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xd59c9474, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x96dc341a, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1b97794f, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0xabcaaa20, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x1cc7abc8, 0, 000) = -1 ENOENT (No such file or directory)
shmget(0x96156f25, 0, 000) = -1 ENOENT (No such file or directory)
getcwd("/opt/iris/TAGGED/mgr", 226) = 21
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x1ffeff9c58} ---
gettid() = 237478
mmap(0x1ffeff9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1ffeff9000
rt_sigreturn({mask=~[ILL TRAP BUS FPE KILL SEGV STOP SYS]}) = 5003
newfstatat(AT_FDCWD, "/opt/iris/TAGGED/mgr/", {st_mode=S_IFDIR|0775, st_size=4096, ...}, 0) = 0
gettimeofday({tv_sec=1700242663, tv_usec=720401}, {tz_minuteswest=0, tz_dsttime=0}) = 0
getpid() = 237478
write(1027, "--237478-- REDIR: 0x522bb40 (lib"..., 87) = 87
mmap(0x1008d7c000, 90112, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x1008d7c000
getpid() = 237478
umask(000) = 022
getpid() = 237478
getpid() = 237478
getpid() = 237478
gettid() = 237478
write(1029, "E", 1) = 1
rt_sigprocmask(SIG_SETMASK, [], ~[ILL TRAP BUS FPE KILL SEGV STOP SYS], 8) = 0
openat(AT_FDCWD, "/opt/iris/TAGGED/mgr/messages.log", O_WRONLY|O_CREAT|O_APPEND, 0664) = 4
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP SYS], NULL, 8) = 0
gettid() = 237478
read(1028, "E", 1) = 1
umask(022) = 000
gettid() = 237478
write(1029, "F", 1) = 1
rt_sigprocmask(SIG_SETMASK, [], ~[ILL TRAP BUS FPE KILL SEGV STOP SYS], 8) = 0
write(4, "11/17/23-12:37:43:720 (237478) 2"..., 115) = 115
rt_sigprocmask(SIG_SETMASK, ~[ILL TRAP BUS FPE KILL SEGV STOP SYS], NULL, 8) = 0
gettid() = 237478
read(1028, "F", 1) = 1
close(4) = 0
gettimeofday({tv_sec=1700242663, tv_usec=737945}, {tz_minuteswest=0, tz_dsttime=0}) = 0
getpid() = 237478
umask(000) = 022
--
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