[Drbd-dev] [PATCH] drbdadm: Fix segfault while starting stacked resource in DRBD9

Roland Kammerer roland.kammerer at linbit.com
Mon Jul 4 11:30:05 CEST 2016


On Tue, Jun 28, 2016 at 06:24:31PM +0800, Nick Wang wrote:
>   Happens in:
>     adm_new_peer()
>       argv[NA(argc)] = ssprintf("%s", conn->peer->node_id);
>       conn->peer == 0x0
> 
>   Example config:
>     resource r0-U {
>       stacked-on-top-of r0 {
>         address    192.168.122.5:7788;
>       }
>     }
> 
> The name of stacked host_info is set as all hosts's
> name concatenate by '_'. Fail to find the fake hostname
> in on_hosts list, which make peer of conn set to 0x0.
> 

Hi Nick,

The segfault happens because conn->peer is NULL? It could still be NULL
with your patch. I need a real/complete configuration and please provide
more information how and why you think this fixes anything. As is, I can
not apply this patch, the intention is unclear to me and it looks broken.

Regards, rck


More information about the drbd-dev mailing list