Menu

cppcheck1.88 SegFault with Boost library code

Martin
2019-07-10
2019-07-10
  • Martin

    Martin - 2019-07-10

    Hi,

    cppcheck1.88 crashes with a segmentation fault when analyzing a boost library file; this didn’t happen with previous versions:

    ./cppcheck --enable=warning,style,performance,portability --force --inconclusive --std=c++11 /boost_1_67_0/libs/proto/example/mini_lambda.cpp
    Checking /boost_1_67_0/libs/proto/example/mini_lambda.cpp ...
    Segmentation fault (core dumped)

    The file can be found here: https://dl.bintray.com/boostorg/release/1.67.0/source/
    I’ve also attached it to the thread.

    Best regards,
    Martin

     
  • versat

    versat - 2019-07-10

    It seems to work with the current development version (head):

    $ ./cppcheck --enable=warning,style,performance,portability --force --inconclusive --std=c++11 ./boost_1_67_0/libs/proto/example/mini_lambda.cpp
    Checking boost_1_67_0/libs/proto/example/mini_lambda.cpp ...
    [boost_1_67_0/libs/proto/example/mini_lambda.cpp:71]: (style) Struct 'lambda_context' has a constructor with 1 argument that is not explicit.
    

    Tested with default Makefile and with -O2 option for g++.

     

Log in to post a comment.