Bug 126970
Summary: | lock_gulmd seg faults if given invalid server name | ||
---|---|---|---|
Product: | [Retired] Red Hat Cluster Suite | Reporter: | Corey Marthaler <cmarthal> |
Component: | gfs | Assignee: | michael conrad tadpol tilstra <mtilstra> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Cluster QE <mspqa-list> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-09-14 21:54:09 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: |
Description
Corey Marthaler
2004-06-29 21:29:56 UTC
fixed. ifelseifelseifelse doesn't work when you leave out the elses. Lock_gulm asserts now: [root@morph-02 root]# lock_gulmd -s morph-foo,morph-03,morph-05 I cannot find the name for ip "morph-foo". gf->node_cnt = 0 In src/config_main.c:332 (DEVEL.1093621899) death by: ASSERTION FAILED: gf->node_cnt > 0 && gf->node_cnt < 5 && gf->node_cnt != 2 I cannot find the name for ip "morph-foo". gf->node_cnt = 0 In src/config_main.c:332 (DEVEL.1093621899) death by: ASSERTION FAILED: gf->node_cnt > 0 && gf->node_cnt < 5 && gf->node_cnt != 2 [root@morph-02 root]# I cannot find the name for ip "morph-foo". gf->node_cnt = 0 In src/config_main.c:332 (DEVEL.1093621899) death by: ASSERTION FAILED: gf->node_cnt > 0 && gf->node_cnt < 5 && gf->node_cnt != 2 which is technically correct, but I prettied it up anyways. cvs up && make, better? better. However... :) It could be even better if the cmdline parsing also happened before the forking of core, LT, and LTPX in main_main.c and if parse_cmdline_servers returned an error (for invalid node, null server list...). That way it could be checked and could exit right away before daemonizing and then the user would have the exit code and error right away instead of getting it at random times from the three existing daemons. should have this now. give'er'a'go. I like it. :) |