cccc crashed with SIGABRT in __gnu_cxx::__verbose_terminate_handler()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cccc (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I was in a sub-directory of a C and C++ project that I am working on. In a lazy attempt at getting CCCC to look at all the files it could I ran it with:
$ cccc **
It seemed to start off by printing all directory names out and then it printed:
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:
Aborted (core dumped)
There are no C or C++ in the directory that I was in, only sub-directories which then contain code files or further sub-directories.
I shall try installing the debug symbols and then check if I can get the problem to reproduce.
1)
$ lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
2)
$ apt-cache policy cccc
cccc:
Installed: 1:3.1.4-6
Candidate: 1:3.1.4-6
Version table:
*** 1:3.1.4-6 0
500 http://
100 /var/lib/
1:3.1.4-5 0
500 http://
3)
I expected the program to moan at me about my poor use of the command line or do some analysis.
4)
It seems to have terminated after throwing an instance of std::out_of_range
ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: cccc 1:3.1.4-6
ProcVersionSign
Uname: Linux 3.16.0-50-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.15
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Oct 9 10:02:17 2015
ExecutablePath: /usr/bin/cccc
InstallationDate: Installed on 2015-03-12 (210 days ago)
InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
ProcCmdline: cccc access_mgmt acl aggr altera_spi arp_inspection auth board ces cli conf daylight_saving ddmi dhcp6_client dhcp_client dhcp_helper dhcp_relay dhcp_server dhcp_snooping dns eps erps eth_link_oam evc firmware green_ethernet hpic_spi hqos https icfg icli include ip ipmc ip_misc ip_source_guard json_rpc json_rpc_
Signal: 6
SourcePackage: cccc
StacktraceTop:
__gnu_
?? () from /usr/lib/
std::terminate() () from /usr/lib/
__cxa_throw () from /usr/lib/
std::_
Title: cccc crashed with SIGABRT in __gnu_cxx:
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin mock plugdev sambashare sudo
information type: | Private → Public |
StacktraceTop: cxx::__ verbose_ terminate_ handler () at ../../. ./../src/ libstdc+ +-v3/libsupc+ +/vterminate. cc:95 :__terminate (handler=<optimized out>) at ../../. ./../src/ libstdc+ +-v3/libsupc+ +/eh_terminate. cc:38 ./../src/ libstdc+ +-v3/libsupc+ +/eh_terminate. cc:48 :__cxa_ throw (obj=0x1000df0, tinfo=0x7fafff8 4e1f0 <typeinfo for std::out_of_range>, dest=0x7fafff5d88b0 <std::out_ of_range: :~out_of_ range() >) at ../../. ./../src/ libstdc+ +-v3/libsupc+ +/eh_throw. cc:87 _throw_ out_of_ range (__s=__ s@entry= 0x4566fb "basic_ string: :substr" ) at ../../. ./../.. /src/libstdc+ +-v3/src/ c++11/functexce pt.cc:80
__gnu_
__cxxabiv1:
std::terminate () at ../../.
__cxxabiv1:
std::_