greenbone / openvas-scanner

This repository contains the scanner component for Greenbone Community Edition.

Home Page:https://greenbone.github.io/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[7.0.0] Coredump when the log file is not accessible.

tuxmaster5000 opened this issue · comments

Hi, when the log can't opened by openvas, the it will crash with an coredump

{ "signal": 6
, "executable": "/usr/sbin/openvas"
, "stacktrace":
[ { "crash_thread": true
, "frames":
[ { "address": 140476180898615
, "build_id": "398944d32cf16a67af51067a326e6c0cc14f90ed"
, "build_id_offset": 222007
, "function_name": "raise"
, "file_name": "/lib64/libc.so.6"
}
, { "address": 140476180904488
, "build_id": "398944d32cf16a67af51067a326e6c0cc14f90ed"
, "build_id_offset": 227880
, "function_name": "abort"
, "file_name": "/lib64/libc.so.6"
}
, { "address": 140476221688690
, "build_id": "36933a0e00cf7727e701e773f3051f91bd0ee04a"
, "build_id_offset": 334706
, "file_name": "/lib64/libglib-2.0.so.0"
}
, { "address": 140476221693570
, "build_id": "36933a0e00cf7727e701e773f3051f91bd0ee04a"
, "build_id_offset": 339586
, "function_name": "g_logv"
, "file_name": "/lib64/libglib-2.0.so.0"
}
, { "address": 140476221693935
, "build_id": "36933a0e00cf7727e701e773f3051f91bd0ee04a"
, "build_id_offset": 339951
, "function_name": "g_log"
, "file_name": "/lib64/libglib-2.0.so.0"
}
, { "address": 140476224626052
, "build_id": "a59cdf5248262929cbad458c35321d8c8f3985f3"
, "build_id_offset": 36228
, "function_name": "gvm_log_func"
, "file_name": "/lib64/libgvm_base.so.11"
}
, { "address": 140476221693281
, "build_id": "36933a0e00cf7727e701e773f3051f91bd0ee04a"
, "build_id_offset": 339297
, "function_name": "g_logv"
, "file_name": "/lib64/libglib-2.0.so.0"
}
, { "address": 140476221693935
, "build_id": "36933a0e00cf7727e701e773f3051f91bd0ee04a"
, "build_id_offset": 339951
, "function_name": "g_log"
, "file_name": "/lib64/libglib-2.0.so.0"
}
, { "address": 140476203389900
, "build_id": "7acec81c013b519ad1e974165b07ada9c6b40675"
, "build_id_offset": 41932
, "function_name": "fetch_max_db_index.isra.0"
, "file_name": "/lib64/libgvm_util.so.11"
}
, { "address": 140476203395581
, "build_id": "7acec81c013b519ad1e974165b07ada9c6b40675"
, "build_id_offset": 47613
, "function_name": "redis_find"
, "file_name": "/lib64/libgvm_util.so.11"
}
, { "address": 140476203400250
, "build_id": "7acec81c013b519ad1e974165b07ada9c6b40675"
, "build_id_offset": 52282
, "function_name": "nvticache_init"
, "file_name": "/lib64/libgvm_util.so.11"
}
, { "address": 94769896315624
, "build_id": "7c2182a9c5aa9875254bcbe5d17f83a0edfa3c4d"
, "build_id_offset": 39656
, "function_name": "plugins_init"
, "file_name": "/usr/sbin/openvas"
}
, { "address": 94769896310662
, "build_id": "7c2182a9c5aa9875254bcbe5d17f83a0edfa3c4d"
, "build_id_offset": 34694
, "function_name": "openvas"
, "file_name": "/usr/sbin/openvas"
} ]
} ]
}

Log file:

openvas[35713]: Can not open '/var/log/greenbone/openvas/openvas.log' logfile: Permission denied
openvas[35713]: **
openvas[35713]: 35713
openvas[35713]: ERROR (recursed) **