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 10315] Buildbot crash output: fuzz-2014-07-25-15298.pcap

Date: Tue, 29 Jul 2014 19:01:28 +0000

Comment # 2 on bug 10315 from
The (In reply to comment #1)
> Gerald, I cannot reproduce this. Given that stderr also contained "failed to
> map segment from shared object: Cannot allocate memory" from the plugin
> loading (and the fact that the "failed to allocate" message was only asking
> for ~1MB) I'm thinking this was a more general out-of-memory case on the
> 1.10 fuzz-bot. Can you check the system and confirm that (and maybe see what
> was causing it to run low)?

The system was definitely running out of memory. I upgraded it from Ubuntu
12.04 to 14.04 on the 24th, which included upgrading clang from 3.3 to 3.4. It
looks like the static analyzer in clang 3.4 uses a huge amount of memory when
processing packet-parlay.c. I'm going to try downgrading to clang 3.3. I also
increased the amount of RAM on the VM.

Here's a snippet of scan-build trying to process packet-parlay.c with clang
3.4:

  CC       packet-parlay.lo
  CC       packet-p1.lo
packet-dcerpc-drsuapi.c:2907:6: warning: Value stored to 'tree' is never read
           tree=proto_item_add_subtree(item, ett_drsuapi_DsGetNCChangesCtr7);
           ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
  CC       packet-m3ap.lo
../../asn1/p1/p1.cnf:1358:1: warning: 'dissect_p1_T_report_type' defined but
not used [-Wunused-function]
  CC       packet-ldap.lo
../../asn1/ldap/packet-ldap-template.c:493:44: warning: Dereference of null
pointer
      proto_unregister_field (proto_ldap, *(hf[i].p_id));
                                           ^~~~~~~~~~~~
1 warning generated.
../../asn1/snmp/packet-snmp-template.c:1026:3: warning: Value stored to
'oid_info_is_ok' is never read
                oid_info_is_ok = FALSE;
                ^                ~~~~~
1 warning generated.
0  libLLVM-3.4.so.1 0x00002b98f58d15d2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1  libLLVM-3.4.so.1 0x00002b98f58d13c4
2  libpthread.so.0  0x00002b98f6395340
3  libLLVM-3.4.so.1 0x00002b98f58a26cc
llvm::MallocSlabAllocator::Allocate(unsigned long) + 12
4  libLLVM-3.4.so.1 0x00002b98f58a27a4 llvm::BumpPtrAllocator::StartNewSlab() +
36
5  libLLVM-3.4.so.1 0x00002b98f58a28b1
llvm::BumpPtrAllocator::Allocate(unsigned long, unsigned long) + 81
6  clang            0x0000000000fa3e90
7  clang            0x0000000000fa16ec
clang::LiveVariables::computeLiveness(clang::AnalysisDeclContext&, bool) + 1676
8  clang            0x0000000000cc5b78
9  clang            0x0000000000e00ca6
clang::ento::CheckerManager::runCheckersOnASTBody(clang::Decl const*,
clang::ento::AnalysisManager&, clang::ento::BugReporter&) + 102
10 clang            0x0000000000cbb11b
11 clang            0x0000000000cbfd23
12 clang            0x0000000000cc02cd
13 clang            0x000000000092284b clang::ParseAST(clang::Sema&, bool,
bool) + 507
14 clang            0x0000000000671149 clang::FrontendAction::Execute() + 169
15 clang            0x0000000000651a75
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 293
16 clang            0x000000000063c9b6
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1638
17 clang            0x0000000000638788 cc1_main(char const**, char const**,
char const*, void*) + 1176
18 clang            0x0000000000636fff main + 7519
19 libc.so.6        0x00002b98f6adeec5 __libc_start_main + 245
20 clang            0x00000000006377ef
Stack dump:
0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-analyze -disable-free -disable-llvm-verifier -main-file-name packet-parlay.c
-analyzer-store=region -analyzer-opt-analyze-nested-blocks
-analyzer-eagerly-assume -analyzer-checker=core -analyzer-checker=unix
-analyzer-checker=deadcode
-analyzer-checker=security.insecureAPI.UncheckedReturn
-analyzer-checker=security.insecureAPI.getpw
-analyzer-checker=security.insecureAPI.gets
-analyzer-checker=security.insecureAPI.mktemp
-analyzer-checker=security.insecureAPI.mkstemp
-analyzer-checker=security.insecureAPI.vfork -analyzer-output plist -w
-mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.24 -momit-leaf-frame-pointer -resource-dir
/usr/bin/../lib/clang/3.4 -D HAVE_CONFIG_H -D INET6 -D G_DISABLE_DEPRECATED -D
G_DISABLE_SINGLE_INCLUDES -D GSEAL_ENABLE -D GTK_DISABLE_SINGLE_INCLUDES -D
GDK_DISABLE_DEPRECATION_WARNINGS -D GDK_DISABLE_DEPRECATED -D
GDK_PIXBUF_DISABLE_DEPRECATED -D QT_GUI_LIB -D
PLUGIN_INSTALL_DIR="/usr/local/lib/wireshark/plugins/1.99.0" -D PIC -I . -I
../.. -I ./../.. -I ./.. -I /usr/include/p11-kit-1 -I /usr/include -I
/usr/include/libnl3 -I /usr/include/qt5/QtCore -I /usr/include/qt5 -I
/usr/include/qt5/QtGui -I /usr/include/qt5 -I /usr/include/qt5/QtCore -I
/usr/include/qt5/QtWidgets -I /usr/include/qt5 -I /usr/include/qt5/QtCore -I
/usr/include/qt5/QtGui -I /usr/include/qt5/QtPrintSupport -I /usr/include/qt5
-I /usr/include/qt5/QtCore -I /usr/include/qt5/QtGui -I
/usr/include/qt5/QtWidgets -I /usr/include/gtk-3.0 -I /usr/include/atk-1.0 -I
/usr/include/at-spi2-atk/2.0 -I /usr/include/pango-1.0 -I
/usr/include/gio-unix-2.0/ -I /usr/include/cairo -I /usr/include/gdk-pixbuf-2.0
-I /usr/include/glib-2.0 -I /usr/lib/x86_64-linux-gnu/glib-2.0/include -I
/usr/include/harfbuzz -I /usr/include/freetype2 -I /usr/include/pixman-1 -I
/usr/include/libpng12 -I /usr/include/glib-2.0 -I
/usr/lib/x86_64-linux-gnu/glib-2.0/include -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.4/include -internal-externc-isystem
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/include -internal-externc-isystem
/usr/include/x86_64-linux-gnu -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -Wno-pointer-sign -Wjump-misses-init
-Wno-overlength-strings -Wwrite-strings -Wno-long-long -fconst-strings
-fdebug-compilation-dir
/home/wireshark/builders/trunk-clang-ca/clangcodeanalysis/build/epan/dissectors
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fwrapv -mstackrealign
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp
-analyzer-output=html -o
/home/wireshark/builders/trunk-clang-ca/clangcodeanalysis/sbout/2014-07-29-172211-24293-1
-x c packet-parlay.c 
1.    <eof> parser at end of file
warning: unknown warning option '-Wjump-misses-init'; did you mean
'-Wimplicit-int'? [-Wunknown-warning-option]
1 warning generated.


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