Skip to content

resolved: Invalid read of size 8 in on_stream_complete #30928

Closed

Description

@evverx
...
Freeing transaction 18962.
==335181== Invalid read of size 8
==335181==    at 0x43B498: on_stream_complete (resolved-dns-transaction.c:642)
==335181==    by 0x42D3EB: dns_stream_complete (resolved-dns-stream.c:84)
==335181==    by 0x42E125: on_stream_io (resolved-dns-stream.c:310)
==335181==    by 0x4C8242A: source_dispatch (sd-event.c:4187)
==335181==    by 0x4C847F7: sd_event_dispatch (sd-event.c:4808)
==335181==    by 0x4C84CDE: sd_event_run (sd-event.c:4869)
==335181==    by 0x4C84EC2: sd_event_loop (sd-event.c:4891)
==335181==    by 0x473628: run (resolved.c:92)
==335181==    by 0x473781: main (resolved.c:99)
==335181==  Address 0x77909e8 is 264 bytes inside a block of size 296 free'd
==335181==    at 0x4845B2C: free (vg_replace_malloc.c:985)
==335181==    by 0x43930F: dns_transaction_free (resolved-dns-transaction.c:171)
==335181==    by 0x439441: dns_transaction_gc (resolved-dns-transaction.c:190)
==335181==    by 0x43898C: dns_transaction_flush_dnssec_transactions (resolved-dns-transaction.c:48)
==335181==    by 0x4392C0: dns_transaction_free (resolved-dns-transaction.c:164)
==335181==    by 0x439441: dns_transaction_gc (resolved-dns-transaction.c:190)
==335181==    by 0x43AA93: dns_transaction_complete (resolved-dns-transaction.c:460)
==335181==    by 0x43C599: dns_transaction_dnssec_ready (resolved-dns-transaction.c:932)
==335181==    by 0x43C602: dns_transaction_process_dnssec (resolved-dns-transaction.c:942)
==335181==    by 0x442539: dns_transaction_notify (resolved-dns-transaction.c:2752)
==335181==    by 0x43A98F: dns_transaction_complete (resolved-dns-transaction.c:456)
==335181==    by 0x43EC14: dns_transaction_prepare (resolved-dns-transaction.c:1696)
==335181==  Block was alloc'd at
==335181==    at 0x484280F: malloc (vg_replace_malloc.c:442)
==335181==    by 0x437F6A: malloc_multiply (alloc-util.h:119)
==335181==    by 0x43987C: dns_transaction_new (resolved-dns-transaction.c:281)
==335181==    by 0x440C20: dns_transaction_add_dnssec_transaction (resolved-dns-transaction.c:2248)
==335181==    by 0x441050: dns_transaction_request_dnssec_rr (resolved-dns-transaction.c:2311)
==335181==    by 0x442455: dns_transaction_request_dnssec_keys (resolved-dns-transaction.c:2734)
==335181==    by 0x43DCF9: dns_transaction_process_reply (resolved-dns-transaction.c:1409)
==335181==    by 0x43B2E9: dns_transaction_on_stream_packet (resolved-dns-transaction.c:613)
==335181==    by 0x43B599: on_stream_packet (resolved-dns-transaction.c:658)
==335181==    by 0x42E866: on_stream_io (resolved-dns-stream.c:430)
==335181==    by 0x4C8242A: source_dispatch (sd-event.c:4187)
==335181==    by 0x4C847F7: sd_event_dispatch (sd-event.c:4808)
==335181==
==335181==

Activity

  1. added
    bug 🐛
    on Jan 13, 2024
  2. added this to the v256 milestone on Jan 13, 2024
  3. evverx commented on Jan 14, 2024

    @evverx
    ContributorAuthor

    I'll go ahead and link it to #30931 just in case.

  4. added a commit that references this issue on Jan 14, 2024
    1572c28
  5. added a commit that references this issue on Jan 15, 2024
    3db1e6a
  6. added a commit that references this issue on Feb 2, 2024
    170989d
  7. added 2 commits that reference this issue on Apr 26, 2024
    0a23dd3
    6dfda86
  8. added a commit that references this issue on Jan 3, 2025
    3694529
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛resolvetest-candidate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions