Project

General

Profile

Actions

Bug #1382

closed

stable-2.0 branch fails to build

Added by Mathieu Desnoyers over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
-
Start date:
07/12/2023
Due date:
% Done:

0%

Estimated time:

Description

stable-2.0 branch at commit 375847ee0df2f fails to build on my debian laptop:

make[2]: Entering directory '/home/compudj/git/babeltrace/src/ctf-writer'
  CC       trace.lo
In file included from object-pool.h:54,
                 from clock-class.h:29,
                 from trace.c:43:
In function 'bt_ctf_object_set_parent',
    inlined from 'bt_ctf_object_set_parent' at object.h:120:6,
    inlined from 'bt_ctf_trace_common_add_stream_class' at trace.c:1243:3:
object.h:141:26: error: null pointer dereference [-Werror=null-dereference]
  141 |                 if (child->parent) {
      |                     ~~~~~^~~~~~~~
object.h:141:26: error: null pointer dereference [-Werror=null-dereference]

with gcc version 12.2.0 (Debian 12.2.0-14)

Actions #1

Updated by Mathieu Desnoyers over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Mathieu Desnoyers over 1 year ago

This commit from master should be picked into stable-2.0:

commit 5c97e2daa9712d1fc3e1df186b25367b1e4cb8b1
Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Date:   Wed May 18 11:49:34 2022 -0400

    Fix: ctf-writer: null dereference in bt_ctf_trace_common_add_stream_class
Actions #3

Updated by Jérémie Galarneau over 1 year ago

  • Status changed from New to Resolved

Merged in stable-2.0 as 1fdbadfc

Actions

Also available in: Atom PDF