THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

Getting Segmentation Fault in strlen() from libc.so.1

Built from source on Solaris10 using GTK.
./autogen.sh is ok
./configure --with-qt=no --with-gtk=yes completes ok
gmake completes ok
./wireshark-gtk
1. Get pango read errors
2. start up dialog opens, ugly font and progress completes.
3. Segmentation Fault and core dump

./tshark
SEGMENTATION FAULT and core dump
What is going wrong?

kevin-gmail's avatar
1
kevin-gmail
asked 2017-11-03 11:53:14 +0000
edit flag offensive 0 remove flag close merge delete

Comments

Can you run Wireshark under a debugger and post a stack trace?

Gerald Combs's avatar Gerald Combs (2017-11-07 10:45:23 +0000) edit

Stack trace from 'gdb binary core' then bt (hand typed in so may be errors):
#0 0xfba9646c in strlen () from /usr/lib/libc.so.1
#1 0xfbaf1bce in _ndoprint () from /usr/lib/libc.so.1
#2 0xfbaf4d8f in vsnprintf () from /usr/lib/libc.so.1
#3 0xfbaf119c in vasprintf () from /usr/lib/libc.so.1
#4 0xfb335a51 in g_vasprintf (string=0x8046b60, format=0x8153416 "Interface found %s\n", args=0x804700c "") at gprintf.c:315
#5 0xfb316791 in g_strdup_vprintf (format=0x8153416 "Interface found %s\n", args=0x804700c "") at gstrfuncs.c:244
#6 0xfb303458 in g_logv (log_domain=0x8158328 "Capture", log_level=G_LOG_LEVEL_DEBUG, format=0x8153416 "Interface found %s\n", args=0x804700c "") at gmessages.c:516
#7 0xfb303697 in g_log (log_domain=0x8158328 "Capture", log_level=G_LOG_LEVEL_DEBUG, format=0x8153416 "Interface found %s\n", args=0x804700c "") at gmessages.c:569
#8 0x08066f62 in cb_load_interfaces (cb_info=...) at extcap.c:1648
#9 0x0806682a in extcap_foreach (argc=argc@entry=1, args=args ... (more)

kevin-gmail's avatar kevin-gmail (2017-11-07 13:16:33 +0000) edit
add a comment see more comments

1 Answer

0

What is going wrong?

Wireshark has a bug. Please file a bug on this on the Wireshark Bugzilla.

(NOTE: if Wireshark crashes, that's a bug, and should be reported on the Wireshark Bugzilla.)

Guy Harris's avatar
19.9k
Guy Harris
answered 2017-11-07 22:01:09 +0000
edit flag offensive 0 remove flag delete link

Comments

Moved to Wireshark Bugzilla, number 14194.

kevin-gmail's avatar kevin-gmail (2017-11-09 13:29:55 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer