[xsd-users] Re: Loading URLs

Boris Kolpackov boris at codesynthesis.com
Thu Nov 2 10:27:35 EST 2006


Hi Patrick,

Patrick Shinpaugh <shpatric at vt.edu> writes:

> Unfortunately I have run into another problem which I cannot be sure is
> XSD specific. Basically I am traversing the DOMNodes using a recursive
> function and as a test if the node is a x3d::Transform then grab it and
> print out the info accessed directly from the Transform xsd-generated
> class and compare it to the data printed directly from the DOMNodes. So
> as I traverse the nodes, everything works great - I am able to grab the
> data from the first Transform - until I reach the second Transform and
> attempt to print its info.
>
> [...]
>
> Unfortunately, it segfaults with gdb backtrace:
>
> (gdb) bt
> #0  0x054fdc70 in __dynamic_cast ()
> at /usr/local/xsd/libxsd/xsd/cxx/tree/types.hxx:1214
>
> [...]
>
> Because the error is within /usr/local/xsd/libxsd/xsd/cxx/tree/types.hxx
> I figured I'd contact you about it first

I check the code around line 1214 in types.hxx and there is nothing that
calls dynamic_cast. This could mean one of the two things:

1. You are compiling with optimization and the debug info does not
   correspond to the code.

2. We are looking at different versions of XSD. I checked 2.3.1.a1 and
   2.3.1.b1.


> though at the same time I am wondering if it might be an issue with gcc
> or perhaps with my code.

I could not spot anything in your code. Would it possible for you to send
a complete but minimal test case that reproduces this problem? I might
then be able to debug it further.


thanks,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20061102/5b7b726b/attachment.pgp


More information about the xsd-users mailing list