From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Philipp Reisner To: Dave Jiang Subject: Re: [Drbd-dev] drbdadm segfaults with incorrect drbd.conf Date: Mon, 25 Jun 2007 16:07:39 +0200 References: <467956FB.5060507@mvista.com> <200706201932.29361.philipp.reisner@linbit.com> <46796D1E.5090105@mvista.com> In-Reply-To: <46796D1E.5090105@mvista.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_sw8fGgkF45fKWlk" Message-Id: <200706251607.40415.philipp.reisner@linbit.com> Cc: drbd-dev@lists.linbit.com List-Id: Coordination of development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --Boundary-00=_sw8fGgkF45fKWlk Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 20 June 2007 20:08:30 Dave Jiang wrote: > Philipp Reisner wrote: > > On Wednesday 20 June 2007 18:34:03 Dave Jiang wrote: > >> It seems that when the resources aren't setup exactly right in drbd.conf > >> drbdadm can segfault due to using a pointer that is NULL. Attached is a > >> patch that fixes the issue. > > > > Could you provide such an drbd.conf file as well, so that we can see > > the issue, that gets fixed by the patch ? > > > > Thanks! > > > > -Phil > > Ah I got one that does it. You can use it as it is. Hi Dave, Now I understand what you wanted to fix ;) I did a patch that rejects such config files beforehand. http://lists.linbit.com/pipermail/drbd-cvs/2007-June/001562.html -phil -- : Dipl-Ing Philipp Reisner Tel +43-1-8178292-50 : : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : : Vivenotgasse 48, 1120 Vienna, Austria http://www.linbit.com : --Boundary-00=_sw8fGgkF45fKWlk Content-Type: text/plain; charset="iso-8859-15"; name="drbd.conf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="drbd.conf" # # drbd.conf example # # parameters you _need_ to change are the hostname, device, disk, # meta-disk, address and port in the "on {}" sections. # # you ought to know about the protocol, and the various timeouts. # # you probably want to set the rate in the syncer sections # # NOTE common pitfall: # rate is given in units of _byte_ not bit # # # increase timeout and maybe ping-int in net{}, if you see # problems with "connection lost/connection established" # (or change your setup to reduce network latency; make sure full # duplex behaves as such; check average roundtrip times while # network is saturated; and so on ...) # skip { As you can see, you can also comment chunks of text with a 'skip[optional nonsense]{ skipped text }' section. This comes in handy, if you just want to comment out some 'resource {...}' section: just precede it with 'skip'. The basic format of option assignment is