Project

General

Profile

Actions

Bug #7447

open

NULL dereference in ThreadLogFileHashFreeFunc in bug-5198 SV test

Added by Philippe Antoine 16 days ago. Updated 14 days ago.

Status:
In Review
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

cf #5198 and #5836

bug-5198 catena$ more output/stderr 
Error: logopenfile: Error opening file: "/Users/catena/catena/prod/suricata-verify/tests/bug-5198/output/noperms/eve.1.json": Permission denied [SCLogOpenFileFp:util-logopenfile.c:425]
Error: logopenfile: Unable to open slot 1 for file /Users/catena/catena/prod/suricata-verify/tests/bug-5198/output/noperms/eve.json [LogFileEnsureExists:util-logopenfile.c:732]
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3267==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000078 (pc 0x0001026abc0d bp 0x7ff7bdc8d630 sp 0x7ff7bdc8d610 T0)
==3267==The signal is caused by a READ memory access.
==3267==Hint: address points to the zero page.
    #0 0x1026abc0d in ThreadLogFileHashFreeFunc util-logopenfile.c:352
    #1 0x1026a052b in HashTableRemove util-hash.c:152
    #2 0x1026aec12 in LogFileEnsureExists util-logopenfile.c:733
    #3 0x1025beea4 in OutputStatsLogInitSub output-json-stats.c:486
    #4 0x1025df085 in RunModeInitializeOutputs runmodes.c:827
    #5 0x102662d93 in SuricataInit suricata.c:2956
    #6 0x102272190 in main main.c:54

Jeff, assigning you as you seems to co have worked on the previous issues


Subtasks 1 (1 open0 closed)

Bug #7448: NULL dereference in ThreadLogFileHashFreeFunc in bug-5198 SV test (7.0.x backport)AssignedJeff LucovskyActions

Related issues 3 (1 open2 closed)

Related to Suricata - Bug #5198: eve/stats: ASAN error when eve output file can't be opened.ClosedJeff LucovskyActions
Related to Suricata - Bug #5836: output: abort triggered on no permission testClosedJeff LucovskyActions
Blocks Suricata - Task #7461: suricata-verify: pass all testsIn ReviewPhilippe AntoineActions
Actions #1

Updated by Philippe Antoine 16 days ago

  • Related to Bug #5198: eve/stats: ASAN error when eve output file can't be opened. added
Actions #2

Updated by Philippe Antoine 16 days ago

  • Related to Bug #5836: output: abort triggered on no permission test added
Actions #3

Updated by OISF Ticketbot 16 days ago

  • Subtask #7448 added
Actions #4

Updated by OISF Ticketbot 16 days ago

  • Label deleted (Needs backport to 7.0)
Actions #5

Updated by Jeff Lucovsky 14 days ago

  • Status changed from New to In Review
Actions #6

Updated by Philippe Antoine 9 days ago

  • Blocks Task #7461: suricata-verify: pass all tests added
Actions

Also available in: Atom PDF