[xsd-users] Program Crash with message : basic_string::_S_construct null not valid

Vishwanath Kale vishkale at gmail.com
Fri Dec 2 18:02:35 EST 2011


Hi,

When trying to run the program (open SRC SRGS code) I got the
error/assertion which indicates that the failure occurred in file
grammar.cxx line 147, function doc_p.parse...

The message says "basic_string::_S_construct null not valid."

Here's the snippet of the code. The full src file with few other files is
attached to email as well.

        parser::grammar grammar_p;
        grammar_p.parsers(rule_p,
                          lexicon_p,
                          meta_p,
                          string_p,
                          tag_p,
                          Tag_format_datatype_p,
                          Version_datatype_p,
                          lang_p,
                          string_p,        // base
                          Root_datatype_p,
                          Mode_datatype_p);


        // Parse the XML instance document.
        xml_schema::parser::document<grammar *> doc_p(
            grammar_p,
            "http://www.w3.org/2001/06/grammar", // root element namespace
            "grammar");                          // root element name


            gram =
doc_p.parse("C:\\Work\\SRGS_Parser\\SRGS_Loader\\Debug\\mode-dtmf.grxml",
flags);


Following versions of the products i am using:

xsd : xsd-2.3.0-i686-windows
xerces : xerces-c-src_2_8_0

Operating system name and version: Windows XP Prof. Ver 2002, SP 3
IDE: Eclipse CDT

C++ compiler name and version:
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/work/devtools/mingw/bin/../libexec/gcc/mingw32/4.6.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.6.1/configure
--enable-languages=c,c++,fortran,objc,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-runtime-libs
--build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.1 (GCC)

Any help will greatly appreciated!

Thank you
-------------- next part --------------
A non-text attachment was scrubbed...
Name: srgs.zip
Type: application/zip
Size: 35384 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20111202/f19c1f75/srgs-0001.zip


More information about the xsd-users mailing list