cccc crashed with SIGABRT in __gnu_cxx::__verbose_terminate_handler() when starting execution with wildcard

Bug #1702879 reported by Thomas A. F. Thorne
This bug report is a duplicate of:  Bug #376859: CCCC crashed on AMD64. Edit Remove
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cccc (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I ran `$ cccc **` in the directory of a C/C++ git work area. A few seconds later I had seen:
$ cccc **
build
cppcheck.xml
Jenkinsfile
Makefile
NOTICE.3rd_party
directory_1
directory_2
directory_3
directory_4
CCCC - a code counter for C and C++
===================================

A program to analyse C and C++ source code and report on
some simple software metrics
Version 3.1.4
Copyright Tim Littlefair, 1995, 1996, 1997, 1998, 1999, 2000
with contributions from Bill McLean, Herman Hueni, Lynn Wilson
Peter Bell, Thomas Hieber and Kenneth H. Cox.

The development of this program was heavily dependent on
the Purdue Compiler Construction Tool Set (PCCTS)
by Terence Parr, Will Cohen, Hank Dietz, Russel Quoung,
Tom Moog and others.

CCCC comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING in the source
code distribution for details.
Parsing
terminate called after throwing an instance of 'std::out_of_range'
  what(): basic_string::substr: __pos (which is 4294967295) > this->size() (which is 5)
Aborted (core dumped)

ProblemType: Crash
DistroRelease: Ubuntu 16.04
Package: cccc 1:3.1.4-9
ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49
Uname: Linux 4.4.0-72-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Jul 7 11:36:24 2017
Dependencies:
 gcc-5-base 5.4.0-6ubuntu1~16.04.4
 gcc-6-base 6.0.1-0ubuntu1
 libc6 2.23-0ubuntu9
 libgcc1 1:6.0.1-0ubuntu1
 libstdc++6 5.4.0-6ubuntu1~16.04.4
ExecutablePath: /usr/bin/cccc
InstallationDate: Installed on 2015-03-12 (847 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
ProcCmdline: cccc build cppcheck.xml Jenkinsfile Makefile NOTICE.3rd_party third_party vtss_api vtss_appl vtss_basics
Signal: 6
SourcePackage: cccc
StacktraceTop:
 __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 std::__throw_out_of_range_fmt(char const*, ...) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
Title: cccc crashed with SIGABRT in __gnu_cxx::__verbose_terminate_handler()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin lxd mock plugdev sambashare sudo wireshark

Revision history for this message
Thomas A. F. Thorne (tafthorne) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __gnu_cxx::__verbose_terminate_handler () at ../../../../src/libstdc++-v3/libsupc++/vterminate.cc:95
 __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:47
 std::terminate () at ../../../../src/libstdc++-v3/libsupc++/eh_terminate.cc:57
 __cxxabiv1::__cxa_throw (obj=obj@entry=0x5652dd23b850, tinfo=0x7f0bce6f9ad8 <typeinfo for std::out_of_range>, dest=0x7f0bce427b40 <std::out_of_range::~out_of_range()>) at ../../../../src/libstdc++-v3/libsupc++/eh_throw.cc:87
 std::__throw_out_of_range_fmt (__fmt=__fmt@entry=0x5652db4c9c00 "%s: __pos (which is %zu) > this->size() (which is %zu)") at ../../../../../src/libstdc++-v3/src/c++11/functexcept.cc:101

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in cccc (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Thomas A. F. Thorne (tafthorne) wrote :

Eyeballed the attachments. Looks safe to make public.

information type: Private → Public
Revision history for this message
Tabor Kelly (taborkelly) wrote :

This also affects me running cccc 1:3.1.4-9Ubuntu on 16.04.3 LTS.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cccc (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.