Wireshark-dev: Re: [Wireshark-dev] mergecap seg-faulting in master
From: Michal Labedzki <[email protected]>
Date: Wed, 28 May 2014 17:40:24 +0200
Ok, I know this one.

mergecap.c has merge_open_in_files()
merge_open_in_files() use wtap_open_offline()
wtap_open_offline() need init_open_routines(); // before use

So add init_open_routines(); before merge_open_in_files() solve issue.
But... it seems that before use libwiretap we should do
init_open_routines()... file.c use merge_open_in_files() and may be
affected too. To be continue... ("don't have time to look at it at the
moment" - me too)

On 28 May 2014 16:37, Jeff Morriss <[email protected]> wrote:
> ... don't have time to look at it at the moment:
>> #0  0x00007fcbb1ceb3b9 in wtap_open_offline (filename=<optimized out>,
>> [email protected]=0, [email protected]=0x7fffd367cf8c,
>> [email protected]=0x7fffd367cfa8, [email protected]=0)
>>     at file_access.c:890
>> 890                     for (i = heuristic_open_routine_idx; i <
>> open_info_arr->len; i++) {
>> Missing separate debuginfos, use: debuginfo-install
>> glib2-2.38.2-2.fc20.x86_64 glibc-2.18-12.fc20.x86_64
>> libgcrypt-1.5.3-2.fc20.x86_64 libgpg-error-1.12-1.fc20.x86_64
>> zlib-1.2.8-3.fc20.x86_64
>> (gdb) bt
>> #0  0x00007fcbb1ceb3b9 in wtap_open_offline (filename=<optimized out>,
>> [email protected]=0, [email protected]=0x7fffd367cf8c,
>> [email protected]=0x7fffd367cfa8, [email protected]=0)
>>     at file_access.c:890
>> #1  0x00007fcbb1cf51d4 in merge_open_in_files
>> ([email protected]=10, in_file_names=<optimized out>,
>> [email protected]=0x7fffd367cfa0, [email protected]=0x7fffd367cf8c,
>>     [email protected]=0x7fffd367cfa8,
>> [email protected]=0x7fffd367cf9c) at merge.c:63
>> #2  0x000000000040186c in main (argc=<optimized out>, argv=0x7fffd367d198)
>> at mergecap.c:317
> (this was from a run like "mergecap -w mergecap.pcapng *")
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <[email protected]>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>             mailto:[email protected]?subject=unsubscribe


Pozdrawiam / Best regards
Michał Łabędzki, Software Engineer
Tieto Corporation

Product Development Services

http://www.tieto.com / http://www.tieto.pl
ASCII: Michal Labedzki
location: Swobodna 1 Street, 50-088 Wrocław, Poland
room: 5.01 (desk next to 5.08)
Please note: The information contained in this message may be legally
privileged and confidential and protected from disclosure. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorised use, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank You.
Please consider the environment before printing this e-mail.
Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w
Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym
Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego
Rejestru Sądowego pod numerem 0000124858. NIP: 8542085557. REGON:
812023656. Kapitał zakładowy: 4 271500 PLN