Skip to content

Error message sanitization failure (use-after-free) #1235

Closed
@Ulmo

Description

@Ulmo

Issue and Steps to Reproduce

Crashing:

    2018-03-17T19:40:30.826Z lightningd(21673): 02a3a17effc394d27bc71b7f458cab02eeafef4eafd1e736583e40e66ebe98a3dd chan #138: Peer has reconnected, state CHANNELD_NORMAL
    2018-03-17T19:40:30.826Z lightningd(21673): FATAL SIGNAL 6 RECEIVED
    2018-03-17T19:40:30.838Z lightningd(21673): backtrace: lightningd/log.c:493 (log_crash) 0x4156be
    2018-03-17T19:40:30.838Z lightningd(21673): backtrace: (null):0 ((null)) 0x7f38ab89e4af
    2018-03-17T19:40:30.838Z lightningd(21673): backtrace: (null):0 ((null)) 0x7f38ab89e428
    2018-03-17T19:40:30.838Z lightningd(21673): backtrace: (null):0 ((null)) 0x7f38ab8a0029
    2018-03-17T19:40:30.839Z lightningd(21673): backtrace: ccan/ccan/tal/tal.c:98 (call_error) 0x46e7b6
    2018-03-17T19:40:30.839Z lightningd(21673): backtrace: ccan/ccan/tal/tal.c:170 (check_bounds) 0x46e973
    2018-03-17T19:40:30.839Z lightningd(21673): backtrace: ccan/ccan/tal/tal.c:181 (to_tal_hdr) 0x46e9d1
    2018-03-17T19:40:30.839Z lightningd(21673): backtrace: ccan/ccan/tal/tal.c:666 (tal_len) 0x46f953
    2018-03-17T19:40:30.839Z lightningd(21673): backtrace: wire/gen_peer_wire.c:70 (fromwire_error) 0x440644
    2018-03-17T19:40:30.840Z lightningd(21673): backtrace: common/wire_error.c:60 (sanitize_error) 0x437fe6
    2018-03-17T19:40:30.840Z lightningd(21673): backtrace: lightningd/peer_control.c:391 (peer_connected) 0x422b91
    2018-03-17T19:40:30.840Z lightningd(21673): backtrace: lightningd/gossip_control.c:157 (gossip_msg) 0x40bc97
    2018-03-17T19:40:30.841Z lightningd(21673): backtrace: lightningd/subd.c:504 (sd_msg_read) 0x42a233
    2018-03-17T19:40:30.841Z lightningd(21673): backtrace: lightningd/subd.c:330 (read_fds) 0x429b48
    2018-03-17T19:40:30.841Z lightningd(21673): backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x462442
    2018-03-17T19:40:30.841Z lightningd(21673): backtrace: ccan/ccan/io/io.c:387 (do_plan) 0x462f19
    2018-03-17T19:40:30.841Z lightningd(21673): backtrace: ccan/ccan/io/io.c:397 (io_ready) 0x462f57
    2018-03-17T19:40:30.842Z lightningd(21673): backtrace: ccan/ccan/io/poll.c:310 (io_loop) 0x4648a1
    2018-03-17T19:40:30.842Z lightningd(21673): backtrace: lightningd/lightningd.c:400 (main) 0x413e6e
    2018-03-17T19:40:30.842Z lightningd(21673): backtrace: (null):0 ((null)) 0x7f38ab88982f
    2018-03-17T19:40:30.842Z lightningd(21673): backtrace: (null):0 ((null)) 0x403448
    2018-03-17T19:40:30.842Z lightningd(21673): backtrace: (null):0 ((null)) 0xffffffffffffffff

and again:

   2018-03-17T20:02:23.736Z lightningd(16796): 0219b7b9750c94bd47d2300505fc1de2b71b5d97807334340d4bc3835b5ca639c1 chan #136: Peer has reconnected, state CHANNELD_AWAITING_LOCKIN
    2018-03-17T20:02:23.737Z lightningd(16796): FATAL SIGNAL 6 RECEIVED
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: lightningd/log.c:493 (log_crash) 0x4156be
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: (null):0 ((null)) 0x7f98909384af
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: (null):0 ((null)) 0x7f9890938428
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: (null):0 ((null)) 0x7f989093a029
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: ccan/ccan/tal/tal.c:98 (call_error) 0x46e7b6
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: ccan/ccan/tal/tal.c:170 (check_bounds) 0x46e973
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: ccan/ccan/tal/tal.c:180 (to_tal_hdr) 0x46e9c1
    2018-03-17T20:02:23.743Z lightningd(16796): backtrace: ccan/ccan/tal/tal.c:666 (tal_len) 0x46f953
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: gossipd/gen_gossip_wire.c:845 (towire_gossipctl_hand_back_peer) 0x4497ec
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: lightningd/peer_control.c:392 (peer_connected) 0x422bdb
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: lightningd/gossip_control.c:157 (gossip_msg) 0x40bc97
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: lightningd/subd.c:504 (sd_msg_read) 0x42a233
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: lightningd/subd.c:330 (read_fds) 0x429b48
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x462442
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: ccan/ccan/io/io.c:387 (do_plan) 0x462f19
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: ccan/ccan/io/io.c:397 (io_ready) 0x462f57
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: ccan/ccan/io/poll.c:310 (io_loop) 0x4648a1
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: lightningd/lightningd.c:400 (main) 0x413e6e
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: (null):0 ((null)) 0x7f989092382f
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: (null):0 ((null)) 0x403448
    2018-03-17T20:02:23.744Z lightningd(16796): backtrace: (null):0 ((null)) 0xffffffffffffffff

getinfo output

"version" : "v0.5.2-2016-11-21-2350-g234d67d",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions