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

Augeas trac at fedorahosted.org
Sat Nov 6 07:06:13 UTC 2010


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

 here is a trace, on a fresh f4 32b install, both on a minimal install
 (+augtool + the debuginfos + ssh + gdb + php-common), as well as a
 graphical desktop install.

 it also happens without php-common, i.e. without /etc/php.ini

 {{{
 [root at hda ~]# gdb
 GNU gdb (GDB) Fedora (7.2-23.fc14)
 Copyright (C) 2010 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i686-redhat-linux-gnu".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>.
 (gdb) file /usr/bin/augtool
 Reading symbols from /usr/bin/augtool...Reading symbols from
 /usr/lib/debug/usr/bin/augtool.debug...done.
 done.
 (gdb) run
 Starting program: /usr/bin/augtool
 augtool> set /files/etc/php.ini/Date/date.timezone "America/Los_Angeles"
 augtool> save

 Program received signal SIGSEGV, Segmentation fault.
 dict_pos (key=0x94276b8 "PHP", dict=<value optimized out>) at ast.c:132
 132             int cmp = strcmp(dict->nodes[m]->key, key);
 (gdb) where
 #0  dict_pos (key=0x94276b8 "PHP", dict=<value optimized out>) at
 ast.c:132
 #1  0x00152bcc in dict_lookup (key=0x94276b8 "PHP", dict=0x9786328,
     skel=0xbffff3bc, subdict=0xbffff3b8) at ast.c:204
 #2  0x001566cf in put_subtree (state=0xbffff3a8, lens=<value optimized
 out>)
     at put.c:449
 #3  0x00156238 in put_lens (lens=<value optimized out>,
     state=<value optimized out>) at put.c:624
 #4  0x001562a0 in put_quant_star (lens=<value optimized out>,
     state=<value optimized out>) at put.c:544
 #5  put_lens (lens=<value optimized out>, state=<value optimized out>)
     at put.c:627
 #6  0x00156433 in put_concat (lens=<value optimized out>,
     state=<value optimized out>) at put.c:504
 #7  put_lens (lens=<value optimized out>, state=<value optimized out>)
     at put.c:618
 #8  0x00156c8d in lns_put (out=0x971cd88, lens=0x98b6c50, tree=0x9797040,
     text=0x930fd08 "[PHP]\n\n", ';' <repeats 19 times>, "\n; About php.ini
 ;\n", ';' <repeats 19 times>, "\n; PHP's initialization file, generally
 called php.ini, is responsible for\n; configuring many of the aspects of
 PHP's behavior.\n\n; PHP"..., err=0xbffff44c) at put.c:787
 #9  0x00151ef9 in transform_save (aug=0x804f860, xfm=0x98d8870,
     path=0x97946e0 "/files/etc/php.ini", tree=0x97843f8) at
 transform.c:940
 #10 0x00136136 in tree_save (aug=0x804f860, tree=<value optimized out>,
     path=0x977cc50 "/files/etc") at augeas.c:1117
 #11 0x00136231 in tree_save (aug=0x804f860, tree=<value optimized out>,
     path=0x162fdd "/files") at augeas.c:1121
 #12 0x00137850 in aug_save (aug=0x804f860) at augeas.c:1216
 #13 0x080498dd in cmd_save (cmd=0xbffff64c) at augtool.c:774
 #14 0x0804aafb in run_command (line=0x805b760 "save") at augtool.c:1102
 #15 0x0804aef2 in main_loop (argc=1, argv=0xbffff844) at augtool.c:1135
 #16 main (argc=1, argv=0xbffff844) at augtool.c:1188
 (gdb) quit
 A debugging session is active.

         Inferior 1 [process 1505] will be killed.

 Quit anyway? (y or n) y
 [root at hda ~]# exit

 Script done on Fri 05 Nov 2010 11:52:02 PM PDT
 }}}

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




More information about the augeas-devel mailing list