Skip to content

Instantly share code, notes, and snippets.

@scrogson
Last active December 11, 2019 05:49
Show Gist options
  • Save scrogson/d4e11b23b946ef9fa2c7e09a4b38709d to your computer and use it in GitHub Desktop.
Save scrogson/d4e11b23b946ef9fa2c7e09a4b38709d to your computer and use it in GitHub Desktop.

Revisions

  1. scrogson revised this gist Dec 11, 2019. 2 changed files with 170 additions and 0 deletions.
    170 changes: 170 additions & 0 deletions after.valgrind.log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,170 @@
    ==14241== Memcheck, a memory error detector
    ==14241== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
    ==14241== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
    ==14241== Command: /home/scrogson/otp/bin/x86_64-unknown-linux-gnu/beam.valgrind.smp -S 8:8 -SDcpu 8:8 -- -root /home/scrogson/otp -progname /home/scrogson/otp/bin/cerl\ -valgrind -- -home /home/scrogson -- -kernel shell_history enabled -- --track-origins=yes -kernel shell_history enabled -pa /usr/local/lib/elixir/bin/../lib/eex/ebin /usr/local/lib/elixir/bin/../lib/elixir/ebin /usr/local/lib/elixir/bin/../lib/ex_unit/ebin /usr/local/lib/elixir/bin/../lib/iex/ebin /usr/local/lib/elixir/bin/../lib/logger/ebin /usr/local/lib/elixir/bin/../lib/mix/ebin -elixir ansi_enabled true -noshell -s elixir start_cli -- -- -extra /usr/local/bin/mix test
    ==14241==
    ==14241== Warning: set address range perms: large range [0x643d000, 0x4643d000) (noaccess)
    warning: variable "i" is unused (if the variable is not meant to be used, prefix it with an underscore)
    test/franz_test.exs:17: FranzTest."test polling for new messages"/1

    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 0,
    partition: 0,
    payload: 'test',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 1,
    partition: 0,
    payload: 'testing',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 2,
    partition: 0,
    payload: 'holy moly',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 3,
    partition: 0,
    payload: 'wtf',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 4,
    partition: 0,
    payload: 'where are my messages?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 5,
    partition: 0,
    payload: 'how bout now?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 6,
    partition: 0,
    payload: 'there was an error',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 7,
    partition: 0,
    payload: 'omg',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 8,
    partition: 0,
    payload: 'test',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 9,
    partition: 0,
    payload: 'how bout now?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 10,
    partition: 0,
    payload: 'and now?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 11,
    partition: 0,
    payload: 'why?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 12,
    partition: 0,
    payload: 'why is this crashing?',
    timestamp: 1575993215363,
    topic: "test"
    }}
    {:ok,
    %Franz.Message{
    headers: [],
    key: nil,
    offset: 13,
    partition: 0,
    payload: 'why?',
    timestamp: 1575993222592,
    topic: "test"
    }}
    .

    Finished in 12.7 seconds
    1 test, 0 failures

    Randomized with seed 586174
    ==14241==
    ==14241== HEAP SUMMARY:
    ==14241== in use at exit: 25,200,562 bytes in 32,700 blocks
    ==14241== total heap usage: 248,110 allocs, 215,410 frees, 201,160,144 bytes allocated
    ==14241==
    ==14241== LEAK SUMMARY:
    ==14241== definitely lost: 96 bytes in 1 blocks
    ==14241== indirectly lost: 0 bytes in 0 blocks
    ==14241== possibly lost: 1,108,959 bytes in 4,762 blocks
    ==14241== still reachable: 23,937,154 bytes in 27,914 blocks
    ==14241== suppressed: 154,353 bytes in 23 blocks
    ==14241== Rerun with --leak-check=full to see details of leaked memory
    ==14241==
    ==14241== For counts of detected and suppressed errors, rerun with: -v
    ==14241== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
    File renamed without changes.
  2. scrogson created this gist Dec 11, 2019.
    3,114 changes: 3,114 additions & 0 deletions franz.valgrind.log
    3,114 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.