ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 6448] New: wspython example fails

Date: Mon, 10 Oct 2011 13:27:21 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6448

           Summary: wspython example fails
           Product: Wireshark
           Version: SVN
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: ewb.asi+wireshark@xxxxxxxxx


Created an attachment (id=7203)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=7203)
Patch homeplug.py wspython sample to not conflict with built in homeplug

Build Information:
wireshark 1.7.0 (SVN Rev 39333 from /trunk)

Copyright 1998-2011 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with GTK+ 2.20.1, with Cairo 1.8.10, with Pango 1.28.0, with
GLib 2.24.1, with libpcap 1.0.0, with libz 1.2.3.3, without POSIX capabilities,
with threads support, with SMI 0.4.8, without c-ares, without ADNS, with Lua
5.1, with Python 2.6.5, with GnuTLS 2.8.5, with Gcrypt 1.4.4, with MIT
Kerberos,
without GeoIP, with PortAudio V19-devel (built Aug  9 2011 12:23:05), without
AirPcap.

Running on Linux 2.6.32-34-generic, with locale en_NZ.UTF-8, with libpcap
version 1.0.0, with libz 1.2.3.3, GnuTLS 2.8.5, Gcrypt 1.4.4.

Built using gcc 4.4.3.

--
(note, this is the first of a number of wspython-related bugs)
Build and install wireshark from SVN with python enabled.
cd /usr/local/lib/wireshark/python/1.7.0/
cp homeplug.py.sample wspy_dissectors/homeplug.py

buglet#1
# wireshark 
Err  Duplicate protocol name "HomePlug protocol"! This might be caused by an
inappropriate plugin or a development error.
Aborted

So, edit the example to change the name to something that doesn't conflict with
built in homeplug dissector. 
(patch#1)

buglet#2
# wireshark 
creating dissector failed /usr/local/lib/libwireshark.so.0: undefined symbol:
py_generic_dissector

libwireshark.so is missing a number of symbols required by wspython.
because they are missing from libwireshark.sym (I'm not sure how
libwireshark.sym is generated, so no patch attached (I fixed manually))

create_dissector_handle
py_generic_dissector
py_pinfo
py_tree
py_tvbuff
hf_register_info_create
hf_register_info_destroy
hf_register_info_add



buglet#3
#wireshark 
creating dissector failed /usr/local/lib/libwireshark.so.0: undefined symbol:
dissector_add

dissector_add is a #define, need to use dissector_add_uint in wspy_dissector.py

After fixing this, wireshark will try to load the plugin, then segfault.  I
have more info about this, but want to wait and see if this whole thing is
worth pursuing first.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.