Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1da83c3e authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Init the abort_msg_address value.

When initiating a manual dump, the abort_msg_address parameter is random
garbage. Initialize this value to 0.

Change-Id: I9ba817ee6104f47cfcb2b746bfa6f02a259c86d7
parent 08a140e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@ int dump_tombstone(pid_t tid, char* pathbuf, size_t pathlen) {
    debugger_msg_t msg;
    debugger_msg_t msg;
    msg.tid = tid;
    msg.tid = tid;
    msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
    msg.action = DEBUGGER_ACTION_DUMP_TOMBSTONE;
    msg.abort_msg_address = 0;


    int result = 0;
    int result = 0;
    if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
    if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
@@ -63,6 +64,7 @@ int dump_backtrace_to_file(pid_t tid, int fd) {
    debugger_msg_t msg;
    debugger_msg_t msg;
    msg.tid = tid;
    msg.tid = tid;
    msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
    msg.action = DEBUGGER_ACTION_DUMP_BACKTRACE;
    msg.abort_msg_address = 0;


    int result = 0;
    int result = 0;
    if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {
    if (TEMP_FAILURE_RETRY(write(s, &msg, sizeof(msg))) != sizeof(msg)) {