+++ This bug was initially created as a clone of Bug #522315 +++ Description of problem: system-config-lvm fails when using pvcreate - initialize partition to use lvm seems like the --config option is not working... Version-Release number of selected component (if applicable): system-config-lvm-1.1.9-1.fc11.noarch lvm2-2.02.48-2.fc11.i586 How reproducible: Steps to Reproduce: 1.start system-config-lvm in a gnome-terminal 2.Try to initialize a partition for LVM use. 3. Actual results: This fails: /sbin/pvcreate --config 'log{command_names=0}' -M 2 /dev/sdb1 Expected results: This works: /sbin/pvcreate -M 2 /dev/sdb1 Additional info: python script to fix: /usr/share/system-config-lvm/CommandHandler.py --- Additional comment from jvillain on 2009-09-10 22:13:16 EDT --- vgcreate has the same problem. I started creating my vg in system-config-lvs and failed which led me to this bug report. Thanks for pointing out the issue rwhalb. This fails: /sbin/vgcreate --config 'log{command_names=0}' -M2 -l 256 -p 256 -s 8m -c n vg_data /dev/md0 This works: /sbin/vgcreate -M2 -l 256 -p 256 -s 8m -c n vg_data /dev/md0 lvm2-2.02.51-3.fc12.x86_64 system-config-lvm-1.1.9-1.fc12.noarch --- Additional comment from mgrac on 2009-09-14 04:15:55 EDT --- It looks like this problem is in lvm2, but we don't need this arg in *create so I'm removing it. http://git.fedorahosted.org/git/system-config-lvm.git?p=system-config-lvm.git;a=commit;h=34b5d3ac2d07e7b6dd407166342b3f3bd4d48327
Please be more specific! What do you mean by 'This fails'?
Hehe. That was my request to have a bug for this. Anyway, I have reproducer, simply this segfaults for example segfaults vgcreate --config 'log{command_names=0}' -M2 vg_test /dev/sdb
This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '11'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
backtrace from comment #2: Starting program: vgcreate --config log\{command_names=0\} -M2 vg_test /dev/sdb Program received signal SIGSEGV, Segmentation fault. 0x080aa2b3 in vg_create (cmd=0x81ad6a8, vg_name=0xbffff736 "vg_test") at metadata/metadata.c:924 924 if (!(vg->fid = cmd->fmt->ops->create_instance(cmd->fmt, vg_name, (gdb) bt #0 0x080aa2b3 in vg_create (cmd=0x81ad6a8, vg_name=0xbffff736 "vg_test") at metadata/metadata.c:924 #1 0x0806a70e in vgcreate (cmd=0x81ad6a8, argc=1, argv=0xbffff5ac) at vgcreate.c:57 #2 0x0805782c in lvm_run_command (cmd=0x81ad6a8, argc=2, argv=0xbffff5a8) at lvmcmdline.c:1071 #3 0x08058634 in lvm2_main (argc=6, argv=0xbffff598) at lvmcmdline.c:1423 #4 0x08071493 in main (argc=7, argv=0xbffff594) at lvm-static.c:22 (gdb) p cmd->fmt->ops $4 = (struct format_handler *) 0x0
Also --config and --type similar problem. Fix: remove arg_ptr_value entirely, store string instead, and lookup+revalidate each time it's accessed.
Fixed upstream. (Code was storing pointer to format/segtype during cmdline arg processing which could become invalid if config was refreshed. Now it delays converting the names into pointers until after the config is processed.)