Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 9508] New: crash while reporting a failure to load a libra

Date: Thu, 05 Dec 2013 06:50:52 +0000
Bug ID 9508
Summary crash while reporting a failure to load a library
Classification Unclassified
Product Wireshark
Version 1.11.x (Experimental)
Hardware x86
OS Mac OS X 10.4
Status UNCONFIRMED
Severity Major
Priority Low
Component Common utilities (libwsutil)
Assignee [email protected]
Reporter [email protected]

Build Information:
OSX QT build based on trunk r53786
--
While testing the new 1.11 build (trunk r53786) I encountered a failure to load
a library, but this crashes wireshark completely.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000105230587 in report_failure (msg_format=0x10523b9df "Couldn't load
module %s: %s") at report_err.c:63
#2  0x000000010522c3f9 in plugins_scan_dir (dirname=0x10ceb7f50
".../wireshark/plugins/capp/.libs") at plugins.c:193
#3  0x000000010522c265 in scan_plugins () at plugins.c:310
#4  0x000000010006a171 in main (argc=0, argv=<value temporarily unavailable,
due to optimizations>) at main.cpp:838

reason is:

(gdb) up
#1  0x0000000105230587 in report_failure (msg_format=0x10523b9df "Couldn't load
module %s: %s") at report_err.c:63
63        (*report_failure_func)(msg_format, ap);
Current language:  auto; currently minimal
(gdb) list
58    report_failure(const char *msg_format, ...)
59    {
60        va_list ap;
61
62        va_start(ap, msg_format);
63        (*report_failure_func)(msg_format, ap);
64        va_end(ap);
65    }
66
67    /*
(gdb) print report_failure_func
$1 = (void (*)(const char *, __va_list_tag *)) 0

can I suggest falling back to fprintf(stderr,msg_format,ap); when
report_failure_func is NULL?


You are receiving this mail because:
  • You are watching all bug changes.