[Webnucleo-bugs] Bug in Libnucnet__Zone__assignOptionalPropertiesFromXml

mbradle at clemson.edu mbradle at clemson.edu
Fri May 7 16:42:20 EDT 2010


Bug report from paulucci at usp dot br:


>
> >xml2-config --version
>
> localhost.localdomain:/examples < 95 >xml2-config --version
2.7.2



For example35 (libnucnet 0.6), which gives me segmentation fault:

localhost.localdomain:/examples < 62 >./example35
../../data_pub/example_3d.xml > ex35_output.txt
Segmentation fault
localhost.localdomain:/examples < 63 >gdb ./example35

(gdb) run ../../data_pub/example_3d.xml
Starting program: /home/local1/modules/libnucnet/0.6/src/examples/example35
../../data_pub/example_3d.xml
[Thread debugging using libthread_db enabled]
[New Thread -1209043264 (LWP 6636)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209043264 (LWP 6636)]
0x0805ccd8 in Libnucnet__Zone__assignOptionalPropertiesFromXml (
    self=0x10e0da48, p_zone_node=0xe5d0570) at ../Libnucnet.c:506
506       for( i = 0; i < p_xpathObj->nodesetval->nodeNr; i++ )
(gdb) where
#0  0x0805ccd8 in Libnucnet__Zone__assignOptionalPropertiesFromXml (
    self=0x10e0da48, p_zone_node=0xe5d0570) at ../Libnucnet.c:506
#1  0x0805c76f in Libnucnet__assignZoneDataFromXmlDocument (self=0x8bc7008,
    p_doc=0xe5e99d8, s_xpath_suffix=0x0) at ../Libnucnet.c:306
#2  0x0805c453 in Libnucnet__assignZoneDataFromXml (self=0x8bc7008,
    s_xml_filename=0xbff7bef6 "../../data_pub/example_3d.xml",
    s_xpath_suffix=0x0) at ../Libnucnet.c:179
#3  0x0805c3ed in Libnucnet__new_from_xml (
    s_xml_filename=0xbff7bef6 "../../data_pub/example_3d.xml",
    s_xpath_nuc=0x0, s_xpath_reac=0x0, s_xpath_zone=0x0) at
../Libnucnet.c:143
#4  0x0804af4e in main (argc=2, argv=0xbff5a3d4) at example35.c:81

 For example34, which, besides segmentation fault, also gives the
unimplement block:

localhost.localdomain:/examples < 100 >./example34
../../data_pub/example_3d.xml > ex34_output.txt
Unimplemented block at xmlschemas.c:5588
Segmentation fault
localhost.localdomain:/examples < 101 >gdb ./example34

(gdb) run ../../data_pub/example_3d.xml
Starting program: /home/local1/modules/libnucnet/0.6/src/examples/example34
../../data_pub/example_3d.xml
[Thread debugging using libthread_db enabled]
[New Thread -1209010496 (LWP 6566)]
Unimplemented block at xmlschemas.c:5588

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209010496 (LWP 6566)]
0x0805cfe8 in Libnucnet__Zone__assignOptionalPropertiesFromXml (
    self=0x1101f560, p_zone_node=0xe7dc8c8) at ../Libnucnet.c:506
506       for( i = 0; i < p_xpathObj->nodesetval->nodeNr; i++ )
(gdb) where
#0  0x0805cfe8 in Libnucnet__Zone__assignOptionalPropertiesFromXml (
    self=0x1101f560, p_zone_node=0xe7dc8c8) at ../Libnucnet.c:506
#1  0x0805ca7f in Libnucnet__assignZoneDataFromXmlDocument (self=0x8dd2ca8,
    p_doc=0x1101efe8, s_xpath_suffix=0x0) at ../Libnucnet.c:306
#2  0x0805c763 in Libnucnet__assignZoneDataFromXml (self=0x8dd2ca8,
    s_xml_filename=0xbfff7ef6 "../../data_pub/example_3d.xml",
    s_xpath_suffix=0x0) at ../Libnucnet.c:179
#3  0x0805c6fd in Libnucnet__new_from_xml (
    s_xml_filename=0xbfff7ef6 "../../data_pub/example_3d.xml",
    s_xpath_nuc=0x0, s_xpath_reac=0x0, s_xpath_zone=0x0) at
../Libnucnet.c:143
#4  0x0804af83 in main (argc=2, argv=0xbffcead4) at example34.c:83

 Also, please tell me what
> operating system you are using (cygwin, linux, ???)


I am using Scientific Linux 4.2 installed in a VMWare Workstation.

and the result of the
> following:
>
> >gcc --version
>

gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-8)

>make --version
>
> GNU Make 3.80

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.clemson.edu/pipermail/webnucleo-bugs/attachments/20100507/d4f73414/attachment.html 


More information about the Webnucleo-bugs mailing list