[augeas-devel] [Augeas] #123: unref of static value causes segfault
Augeas
trac at fedorahosted.org
Tue Jun 22 14:01:45 UTC 2010
#123: unref of static value causes segfault
-------------------------+--------------------------------------------------
Reporter: fgiraldeau | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.7.0
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Comment (by lutter):
I am having trouble reproducing this and understanding what's going wrong
there. When I force the code to go into the default branch of the switch
statement at put.c:418, I get a proper error message and augparse exits
cleanly.
The fact that unref is called on a const struct should not be the issue;
its reference count is REF_MAX, which indicates that it should never be
freed (see ref.h)
Are you positive that result isn't NULL there ?
To better investigate the problem, I'd need to see your patches against
master and a description of how to reproduce the issue.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/123#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list