tailwind-config-viewer icon indicating copy to clipboard operation
tailwind-config-viewer copied to clipboard

MEMCHECK: ==69335== 272 bytes in 1 blocks are possibly lost in loss record

Open JohnSmithBH84 opened this issue 6 months ago • 0 comments

I’ve scanned sandboxed-api with MEMCHECK and it has triggered on sandboxed-api/build/_deps/protobuf-src/src/google/protobuf/port.h line 132. I'm not sure whether this is an actual issue, or whether code of sandboxed-api is too sophisticated for MEMCHECK to understand. Do you guys have any idea?

Project version

sandboxed-api: main

Operating system

compiler: gcc (Debian 12.2.0-14) 12.2.0

Ubuntu 22.04.4 LTS Linux 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I did this

Launched sandboxed-api/build/sandboxed_api/sandbox2/examples/static/sandbox2_static_sandbox

I expected the following

No problem reported by MEMCHECK

I got the following

sandboxed-api/build/sandboxed_api/sandbox2/examples/static/sandbox2_static_sandbox                         
==69335== Memcheck, a memory error detector                                                                      
==69335== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.                                        
==69335== Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info                                     
==69335== Command: sandboxed-api/build/sandboxed_api/sandbox2/examples/static/sandbox2_static_sandbox      
==69335==                                                                                                        
[global_forkclient.cc : 148] RAW: Starting global forkserver                                                     
[global_forkclient.cc : 144] RAW: Could not launch forkserver binary: No such file or directory [2]              
==69336==                                                                                                        
==69336== Process terminating with default action of signal 6 (SIGABRT): dumping core                            
==69336==    at 0x4BF9EBC: __pthread_kill_implementation (nptl/./nptl/pthread_kill.c:44)                         
==69336==    by 0x4BAAFB1: raise (signal/../sysdeps/posix/raise.c:26)                                            
==69336==    by 0x4B95471: abort (stdlib/./stdlib/abort.c:79)                                                    
==69336==    by 0x560FE1: absl::raw_log_internal::(anonymous namespace)::RawLogVA(absl::LogSeverity, char        
const*, int, char const*, __va_list_tag*)
...
==69336==    by 0x195128: sandbox2::Executor::StartSubProcess(int, sandbox2::Namespace const*, bool,             
sandbox2::MonitorType) (sandboxed-api/sandboxed_api/sandbox2/executor.cc:121)                               
==69336==    by 0x18BC50: sandbox2::MonitorBase::Launch()                                                        
(sandboxed-api/sandboxed_api/sandbox2/monitor_base.cc:210)                                                  
==69336==    by 0x14DD9F: sandbox2::Sandbox2::Launch()                                                           
(sandboxed-api/sandboxed_api/sandbox2/sandbox2.cc:111)                                                      
==69336==    by 0x14D92F: sandbox2::Sandbox2::RunAsync()                                                         
(sandboxed-api/sandboxed_api/sandbox2/sandbox2.cc:74)                                                       
==69336==    by 0x135A5B: sandbox2::Sandbox2::Run() (sandboxed-api/sandboxed_api/sandbox2/sandbox2.h:60)    
==69336==    by 0x133F4F: main (sandboxed-api/sandboxed_api/sandbox2/examples/static/static_sandbox.cc:167) 
==69336==                                                                                                        
==69336== 272 bytes in 1 blocks are possibly lost in loss record 62 of 82                                        
==69336==    at 0x4840F2F: operator new(unsigned long) (coregrind/m_replacemalloc/vg_replace_malloc.c:422)       
==69336==    by 0x212643: google::protobuf::internal::AllocateAtLeast(unsigned long)                             
(sandboxed-api/build/_deps/protobuf-src/src/google/protobuf/port.h:132)

JohnSmithBH84 avatar Jun 10 '25 07:06 JohnSmithBH84