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 6224] New: core dump and "Duplicate protocol name" error m

Date: Tue, 9 Aug 2011 08:36:56 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6224

           Summary: core dump and "Duplicate protocol name" error message
           Product: Wireshark
           Version: SVN
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: toralf.foerster@xxxxxx


Build Information:
tfoerste@n22 ~/devel/wireshark $ ./wireshark -v
wireshark 1.7.0 (SVN Rev 38425 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 (32-bit) with GTK+ 2.24.4, with Cairo 1.10.2, with Pango 1.28.4, with
GLib 2.28.8, with libpcap 1.1.1, with libz 1.2.5, with POSIX capabilities
(Linux), with threads support, without libpcre, without SMI, without c-ares,
without ADNS, without Lua, with Python 2.7.1, with GnuTLS 2.10.5, with Gcrypt
1.4.6, without Kerberos, without GeoIP, without PortAudio, without AirPcap.

Running on Linux 2.6.39.4, with locale en_US.utf8, with libpcap version 1.1.1,
with libz 1.2.5, GnuTLS 2.10.5, Gcrypt 1.4.6.

Built using gcc 4.4.5.

--
When I start wireshark as a normal user it core dumped with the given back
trace:
$ ./wireshark 
17:30:27          Err  Duplicate protocol name "SERCOS III V1.1"! This might be
caused by an inappropriate plugin or a development error.
Aborted (core dumped)

Here's the back trace
...
(gdb) thread apply all bt

Thread 1 (Thread 31665):
#0  0xb77c5424 in __kernel_vsyscall ()
#1  0xb4ada872 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb4adbfe0 in abort () at abort.c:92
#3  0xb4ccf9e6 in g_logv (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
format=0xb650c554 "Duplicate protocol name \"%s\"! This might be caused by an
inappropriate plugin or a development error.", 
    args1=0xbf8d4b5c
"\204\254\"\262\311\r\225\265\364\017$\262\250K\215\277\271d#\262\275\272#\262\360_#\262\373\364\017#\262\224\254\"\262\260\071\234\b\250K\215\277\066\230\"\262\204\254\"\262\204\254\"\262\231\254\"\262\n\230\"\262\364\017#\262\200\246\032\t\270K\215\277h\223\"\262Y\223\"\262\364\377\362\266\310K\215\277\231\031\224\265\364\377\362\266\260L\022\b\bL\215\277\004\240\225\265\004")
    at gmessages.c:557
#4  0xb4ccfa23 in g_log (log_domain=0x0, log_level=G_LOG_LEVEL_ERROR,
format=0xb650c554 "Duplicate protocol name \"%s\"! This might be caused by an
inappropriate plugin or a development error.")
    at gmessages.c:577
#5  0xb594f05b in proto_register_protocol (name=0xb222ac84 "SERCOS III V1.1",
short_name=0xb222ac84 "SERCOS III V1.1", filter_name=0xb222ac99 "siii") at
proto.c:4382
#6  0xb2229836 in proto_register_sercosiii () at packet-sercosiii.c:1544
#7  0xb2229368 in plugin_register () at plugin.c:23
#8  0xb5941999 in register_all_plugin_registrations () at plugins.c:437
#9  0xb595a004 in proto_init (register_all_protocols_func=0x806cf9c
<register_all_protocols@plt>, register_all_handoffs_func=0x806930c
<register_all_protocol_handoffs@plt>, cb=0x8124cb0 <splash_update>, 
    client_data=0x89c39b0) at proto.c:405
#10 0xb5936f25 in epan_init (register_all_protocols_func=0x806cf9c
<register_all_protocols@plt>, register_all_handoffs_func=0x806930c
<register_all_protocol_handoffs@plt>, cb=0x8124cb0 <splash_update>, 
    client_data=0x89c39b0, report_failure_fcn_p=0x8074f80 <failure_alert_box>,
report_open_failure_fcn_p=0x8074f40 <open_failure_alert_box>,
report_read_failure_fcn_p=0x8074f00 <read_failure_alert_box>, 
    report_write_failure_fcn_p=0x8074ec0 <write_failure_alert_box>) at
epan.c:106
#11 0x0809681b in main (argc=1, argv=0xbf8d4d84) at main.c:2398
(gdb) quit


As user root however it starts fine (althought I didn't realized that warning
message before, b/c I often use kdesu to start wireshark) :

n22 ~ # /home/tfoerste/devel/wireshark/wireshark 
Can't open Python registration file:
/usr/local/lib/wireshark/python/1.7.0/register-dissector.py
17:35:04          Warn openSAFETY - Profinet IO heuristic dissector cannot be
registered, openSAFETY/PNIO native dissection.


And yes, I've set this : WIRESHARK_RUN_FROM_BUILD_DIRECTORY=1

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