[augeas-devel] [Augeas] #149: Segfault when editing php.ini on fedora 14

Augeas trac at fedorahosted.org
Sun Nov 7 00:07:47 UTC 2010


#149: Segfault when editing php.ini on fedora 14
-------------------------+--------------------------------------------------
  Reporter:  fgiraldeau  |       Owner:  fgiraldeau
      Type:  defect      |      Status:  assigned  
  Priority:  major       |   Milestone:  next      
 Component:  Augeas      |     Version:  0.7.0     
Resolution:              |    Keywords:            
-------------------------+--------------------------------------------------
Changes (by fgiraldeau):

  * owner:  lutter => fgiraldeau
  * status:  new => assigned

Comment:

 This bug occur when comiling augeas with CFLAG="-02" with gcc-4.5 on Intel
 32 bits. The compiler optimize the variable struct dict *dict and then the
 function fail by dereferencing the pointer.

 As a workarround, the provided patch copies the dict into a tmp variable,
 then use the address of this new variable.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/149#comment:5>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list