Wireshark-dev: Re: [Wireshark-dev] core dump when parsed VoIP call with text media
Date Prev · Date Next · Thread Prev · Thread Next
From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Sat, 1 Jun 2019 11:21:07 +0200
Tried it with current HEAD of master, still same event happens. Packet number seems to be 1, but packet scope assert fails. 
This will need a deeper look, so please file a bug report with relevant files attached so someone with time available can take a crack at it.

Thanks,
Jaap

On 31 May 2019, at 20:51, Sergey Safarov <s.safarov@xxxxxxxxx> wrote:

I compiled wireshark with disabled optimization and then created core file.
Then I read core using command
gdb /usr/local/wireshark/bin/wireshark core.20221 -ex "set pagination off" -ex bt -ex "bt full" -ex quit

Output published here http://217.12.247.220/tmp/wireshark-gdb.html
Could you have a look.


On Fri, May 31, 2019 at 8:33 PM Dario Lombardo <lomato@xxxxxxxxx> wrote:
This probably triggered an error hidden in the debug code of the VOIP dissector. Your define popped it up.

The error message says that a line of code tried to use a wmem scope when it's not active. Eg. It tries to allocate memory in the "file" scope when no files are open. You should use a debugger to see the previous line that triggered the error and see which scope the allocator is using and fix it.

On Fri, May 31, 2019, 17:20 Sergey Safarov <s.safarov@xxxxxxxxx> wrote:
I want debug VoIP conversation.
To this I added "add_definitions(-DDEBUG_CONVERSATION)" into CMakeLists.txt and opened attached pcap file.
After this created wireshark core.

with error
ERROR:epan/wmem/wmem_core.c:38:wmem_alloc: assertion failed: (allocator->in_scope)
Aborted (core dumped)