[augeas-devel] [Augeas] #123: unref of static value causes segfault
Augeas
trac at fedorahosted.org
Tue Jun 22 20:21:45 UTC 2010
#123: unref of static value causes segfault
-------------------------+--------------------------------------------------
Reporter: fgiraldeau | Owner: lutter
Type: defect | Status: new
Priority: minor | Milestone: next
Component: Augeas | Version: 0.7.0
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Comment (by lutter):
That is as expected - main2.c tries to write into readonly memory (because
the struct is declared const, the compiler will put it into write-
protected memory)
main1.c has a subtler bug: it is returning a pointer to a struct allocated
on the stack. That will blow up when there is additional stack activity.
I still don't see though where the original Augeas code is writing into
write-protected memory.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/123#comment:5>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list