Hi,
I found that this error wouldn't occur with the latest version.
When I tried the same operation with dev version, changeset:5bb25d3ce208,
there wasn't segmentation fault!
I attached the output of gdb with v2.0.8 just for your information.
Thanks,
Junko
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Junko IKEDA
> Sent: Thursday, June 28, 2007 9:58 AM
> To: 'General Linux-HA mailing list'
> Subject: RE: [Linux-HA] segmentation fault occurred during the operation
> ofcibadmin
>
> > On 6/27/07, Junko IKEDA <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I encountered a segmentation fault when I tried cibadmin like this;
> > >
> > > cibadmin -U -o resources -X
> > > '<primitive id="prmDummy" class="ocf"
> > > type="Dummy" provider="heartbeat"
> > > resource_stickiness="0">
> > >
> > > actually, it's my miss. I had to close the tag.
> > >
> > > Correct usage is here, right?
> > > cibadmin -U -o resources -X
> > > '<primitive id="prmDummy" class="ocf"
> > > type="Dummy" provider="heartbeat"
> > > resource_stickiness="0"/>
> > >
> > > I think it's more helpful if there are some usages instead of a
> segmentation
> > > fault.
> > > Could you fix it easily?
> >
> > Possibly if you provide the stack trace
>
> I attached the output of strace.
>
> >
> > > I also try to check the source.
> > >
> > > Thanks,
> > > Junko
> > >
> > > _______________________________________________
> > > Linux-HA mailing list
> > > [email protected]
> > > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > > See also: http://linux-ha.org/ReportingProblems
> > >
> > _______________________________________________
> > Linux-HA mailing list
> > [email protected]
> > http://lists.linux-ha.org/mailman/listinfo/linux-ha
> > See also: http://linux-ha.org/ReportingProblems
#0 0x0000002a957bf9b1 in parse_xml (input=Variable "input" is not available.
) at xml.c:1460
1460 lpc++;
(gdb) where
#0 0x0000002a957bf9b1 in parse_xml (input=Variable "input" is not available.
) at xml.c:1460
#1 0x0000002a957bffdb in string2xml (input=Variable "input" is not available.
) at xml.c:465
#2 0x0000000000401d8e in main (argc=4, argv=0x7fbffff938) at cibadmin.c:306
#3 0x000000315f31c3fb in __libc_start_main () from /lib64/tls/libc.so.6
#4 0x000000000040127a in _start ()
#5 0x0000007fbffff928 in ?? ()
#6 0x000000000000001c in ?? ()
#7 0x0000000000000004 in ?? ()
#8 0x0000007fbffffb3a in ?? ()
#9 0x0000007fbffffb43 in ?? ()
#10 0x0000007fbffffb46 in ?? ()
#11 0x0000007fbffffb49 in ?? ()
#12 0x0000000000000000 in ?? ()
(gdb) list
1455 crm_free(attr_value);
1456 }
1457 break;
1458 case '>':
1459 while(our_input[lpc+1] != '<') {
1460 lpc++;
1461 }
1462 break;
1463 case ' ':
1464 case '\t':
(gdb) print lpc
$1 = 135047
(gdb) print our_input
$2 = 0x505078 "<primitive id=\"p1\" class=\"ocf\" type=\"Dummy\"
provider=\"heartbeat\">"
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems