Who to report bugs in wide-dhcp? (was Re: wide-dhcps dumps core freeing modified pointer)

qhwt_at_myrealbox.com
Date: 08/10/03

  • Next message: Dan Langille: "The FreeBSD Diary: 2003-07-20 - 2003-08-09"
    Date: Sun, 10 Aug 2003 16:01:29 +0900
    To: questions@FreeBSD.org
    
    

    Hello.

    On Mon, Aug 04, 2003 at 11:33:19AM +0900, qhwt@myrealbox.com wrote:
    > wide-dhcps dumps core upon boot if the bind file exists and non-empty
    > (actually I haven't tested if it dumps core even when the file exists
    > AND is empty, but who cares... :)
    > The bind file sometimes contains garbage (malloc error message)
    > after the core dump, but even if I delete the garbage and try to start dhcps
    > result in the same core dump.
    > The core dump occurs in function read_subnet() defined in server/database.c,
    > trying to free() a line buffer via a pointer already modified by prs_inaddr()
    > called from get_ip().
    > The following patch seem to remedie the core dump.
    >
    > (I believe MIHIRA-san is the original author of this software, right?)
    > Regards.
    >
    > --- database.c.orig Fri Jan 1 22:35:33 1999
    > +++ database.c Sun Aug 3 19:55:32 2003
    > @@ -560,15 +560,15 @@
    > char **cp;
    > struct in_addr *subnet;
    > {
    > - char *tmpstr;
    > + char *tmpstr, *line;
    > struct in_addr *tmpaddr;
    >
    > - if ((tmpstr = get_string(cp)) == NULL) {
    > + if ((line = get_string(cp)) == NULL) {
    > errno = 0;
    > syslog(LOG_WARNING, "Can't get strings");
    > return(-1);
    > }
    > -
    > + tmpstr = line;
    > if ((tmpaddr = get_ip(&tmpstr)) == NULL) {
    > errno = 0;
    > syslog(LOG_WARNING, "get_ip() error in read_subnet()");
    > @@ -576,7 +576,7 @@
    > }
    >
    > *subnet = *tmpaddr;
    > - free(tmpstr);
    > + free(line);
    > free(tmpaddr);
    >
    > return(0);
    >
    >

    Does anyone know who to report bugs in wide-dhcp? I've found a bug in
    wide-dhcp ports the other day, and reported to ports@FreeBSD.org because
    the Makefile says it's the maintainer of the port. However, I've received
    no responses from anyone since then. Shortly after that, I realized that
    the bug itself is in the original code rather than FreeBSD patches, so
    I must have sent it to the original author, and that MIHIRA-san is not,
    because I had no responses from him, even though I Cc:'d on him.
    Then I found in one of installed documents that bug report should be
    sent to dhcp-dist@wide.ad.jp . I did, and the mail server at wide.ad.jp
    said there's no such account there.

    Or, should I send-pr even if I'm sure the bug is in the orignal code
    rather than in the FreeBSD ports? But I don't feel like using it because
    I don't know(and not interested in) how to configure it use my mailer
    instead of sendmail(1),

    Regards.
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Dan Langille: "The FreeBSD Diary: 2003-07-20 - 2003-08-09"

    Relevant Pages

    • Re: 2.6.27-rc5-mm1
      ... I don't know why the default Malta platform build assumes a MIPS MT core ... See the `hot-fixes' directory for any important updates to this patchset. ... If you hit a bug in -mm and it is not obvious which patch caused it, ... ALSA fix ...
      (Linux-Kernel)
    • [PATCH]: allow individual core dump methods to be unlimited when sending to a pipe
      ... It allows individual core dump methods to have the core dump size limit passed ... int has_dumped = 0; ... struct elfhdr elf; ...
      (Linux-Kernel)
    • Re: My thoughts on the "new development model"
      ... bug fixes and sometimes core changes... ... I could show you what kinds of changes go in a development kernel as ... "Extremely slow and unstable" is so vague it can't be acted upon. ...
      (Linux-Kernel)
    • [PATCH] ELF core dump options
      ... segments are dumped in ELF core files. ... can be set to have private file mappings dumped in their entirety. ... people prefer the certainty to the saving disk space and i/o at dump time, ... + * Decide what to dump of a segment, part, all or none. ...
      (Linux-Kernel)
    • Re: [PATCH] coredump - as root not only if euid switched
      ... > Solaris can keep their security holes. ... HP-UX didn't dump core on a seteuid 0->n prog ... > type of security you expect it to implement. ...
      (Linux-Kernel)