Bug 523123
Summary: | pvcreate does not work with --config 'log{command_names=0}' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marek Grac <mgrac> |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | agk, bmarzins, bmr, dwysocha, heinzm, itamar, jvillain, lvm-team, mbroz, mclasen, mgrac, msnitzer, prajnoha, prockai, rwhalb |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.02.64 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 522315 | Environment: | |
Last Closed: | 2010-04-29 01:36:35 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 522315 | ||
Bug Blocks: |
Description
Marek Grac
2009-09-14 08:19:22 UTC
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.) |