Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 837755 Details for
Bug 1044026
crash in rbtdb after two sucessive getoriginnode() calls
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
reproducer which demonstrates the crash
reproducer_minimal.c (text/x-csrc), 2.01 KB, created by
Petr Spacek
on 2013-12-17 16:12:53 UTC
(
hide
)
Description:
reproducer which demonstrates the crash
Filename:
MIME Type:
Creator:
Petr Spacek
Created:
2013-12-17 16:12:53 UTC
Size:
2.01 KB
patch
obsolete
>/* > * Authors: Petr Spacek <pspacek@redhat.com> > * > * Copyright (C) 2012 Red Hat > * see file 'COPYING' for use and warranty information > * > * This program is free software; you can redistribute it and/or > * modify it under the terms of the GNU General Public License as > * published by the Free Software Foundation; version 2 or later > * > * This program is distributed in the hope that it will be useful, > * but WITHOUT ANY WARRANTY; without even the implied warranty of > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > * GNU General Public License for more details. > * > * You should have received a copy of the GNU General Public License > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > */ > >#include <isc/mem.h> >#include <isc/result.h> >#include <isc/util.h> >#include <isc/hash.h> > >#include <dns/db.h> >#include <dns/rbt.h> >#include <dns/result.h> > >#include <string.h> > >void >logger(const char *format, ...) >{ > va_list args; > > va_start(args, format); > vfprintf(stderr, format, args); > va_end(args); >} > >#define CHECK(op) \ > do { \ > logger("%4u: %s = ", __LINE__, #op); \ > result = (op); \ > logger("%s\n", dns_result_totext(result)); \ > if (result != ISC_R_SUCCESS) \ > goto cleanup; \ > } while (0) > >int >main (int argc, char ** argv) { > isc_result_t result = ISC_R_SUCCESS; > dns_db_t *rbtdb = NULL; > isc_mem_t *mctx = NULL; > void *node = NULL; > > CHECK(isc_mem_create2(0, 0, &mctx, ISC_MEMFLAG_DEFAULT)); > CHECK(isc_hash_create(mctx, NULL, 256)); > CHECK(dns_db_create(mctx, "rbt", dns_rootname, dns_dbtype_zone, > dns_rdataclass_in, 0, NULL, &rbtdb)); > > CHECK(dns_db_getoriginnode(rbtdb, &node)); > dns_db_printnode(rbtdb, node, stderr); > dns_db_detachnode(rbtdb, &node); > > CHECK(dns_db_getoriginnode(rbtdb, &node)); > dns_db_printnode(rbtdb, node, stderr); > dns_db_detachnode(rbtdb, &node); > >cleanup: > if (result != ISC_R_SUCCESS) > logger("error: %s\n", dns_result_totext(result)); > > (void) argc; > (void) argv; > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1044026
: 837755 |
837756