https://bugs.kde.org/show_bug.cgi?id=405516

            Bug ID: 405516
           Summary: Memcheck with Ruby produces numerous outputs
           Product: valgrind
           Version: 3.14.0
          Platform: RedHat RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: niko.pelko...@hotmail.com
  Target Milestone: ---

Created attachment 118835
  --> https://bugs.kde.org/attachment.cgi?id=118835&action=edit
Full output

When I run my Ruby program with the following command:

valgrind --tool=memcheck ruby hello.rb

I get outputs for heap, leak and error summaries exactly four times every time.

Full output in attachment.

My Ruby version is 2.5.3p105 (x86-64 Linux). All my Ruby program does is that
it loads a text file containing 10,000 characters. Memcheck worked just fine
for my similar Python programs when I ran them with the same commands. Why do I
get four outputs? Is some of them indicating the correct amount of memory used?
I'm measuring memory consumptions for my master's thesis, so I really need to
find out what's causing this!

Thanks!

STEPS TO REPRODUCE
1. Valgrind version 3.14.0
2. Ruby version 2.5.3p105 (Linux x86-64)
3. command: valgrind --tool=memcheck ruby hello.rb

OBSERVED RESULT

Received four outputs for heap, leak and error summaries. Heap summary is
growing (first output has the smallest amount of bytes allocated, and fourth
has the highest)

EXPECTED RESULT

Only one output for each summary (heap, leak, error) received. 

I'm using Fedora 29.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to