Skip to content

sometimes slips throws exception on Ctrl+c instead fo shutting down gracefully #1847

@AlyaGomaa

Description

@AlyaGomaa

^C[Flow Alerts] Unhandled exception in task: KeyboardInterrupt() .. r of IPs seen in the last (1 hr): 0. Analyzed 1 flows/min.
[Flow Alerts] Problem in line 205 of /StratosphereLinuxIPS/slips_files/common/abstracts/isqlite.py
[Flow Alerts] Traceback (most recent call last):
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
self.run_forever()
File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
self._run_once()
File "/usr/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
handle._run()
File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/StratosphereLinuxIPS/modules/flowalerts/dns.py", line 412, in check_dns_without_connection
if self.is_any_flow_answer_contacted(profileid, twid, flow):
File "/StratosphereLinuxIPS/modules/flowalerts/dns.py", line 233, in is_any_flow_answer_contacted
contacted_ips = self.db.get_all_contacted_ips_in_profileid_twid(
File "/StratosphereLinuxIPS/slips_files/core/database/database_manager.py", line 1075, in get_all_contacted_ips_in_profileid_twid
return self.sqlite.get_all_contacted_ips_in_profileid_twid(
File "/StratosphereLinuxIPS/slips_files/core/database/sqlite_db/database.py", line 84, in get_all_contacted_ips_in_profileid_twid
all_flows: dict = self.get_all_flows_in_profileid_twid(profileid, twid)
File "/StratosphereLinuxIPS/slips_files/core/database/sqlite_db/database.py", line 98, in get_all_flows_in_profileid_twid
all_flows: list = self.select("flows", condition=condition)
File "/StratosphereLinuxIPS/slips_files/common/abstracts/isqlite.py", line 183, in select
result = self.fetchall(cursor)
File "/StratosphereLinuxIPS/slips_files/common/abstracts/isqlite.py", line 205, in fetchall
res = cursor.fetchall()
KeyboardInterrupt

Metadata

Metadata

Assignees

Labels

BugA bug that needs to be fixed

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions