1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #2847 (closed defect: fixed)

Opened 2 years ago

Last modified 11 months ago

cppcheck hangs with 100% cpu load

Reported by: ettlmartin Owned by: noone
Priority: Normal Milestone: 1.49
Component: Other Keywords:
Cc:

Description

following code lets cppcheck hang with 100% cpu load:

#define
  strpbrk #include
a,
#define 
b
--


$ cppcheck --enable=all --debug hang10.cpp 
Checking hang10.cpp...


##file hang10.cpp
1:
2: strpbrk #include
3: a ,
4:
5: b
6: --

^C

Change History

Changed 2 years ago by aggro80

I don't see the problem in Linux with latest git.

Changed 2 years ago by ettlmartin

Sorry, but is still see it on my Ubuntu Linux (32-Bit) with latest git. Have you used the --enable=all flag? Without this, cppcheck does not hang!

Changed 2 years ago by aggro80

Yes, with --enable=style I see it.

Changed 2 years ago by aggro80

  • status changed from new to closed
  • resolution set to fixed

Changed 11 months ago by danielmarjamaki

  • priority set to Normal
  • milestone set to 1.49
Note: See TracTickets for help on using tickets.