You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/11/16 15:57:06 UTC
DO NOT REPLY [Bug 4924] New: -
Core Dump ( Segmentation fault ) during the instance creation of XSLTInputSource with const char* passed to constructor
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4924>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4924
Core Dump ( Segmentation fault ) during the instance creation of XSLTInputSource with const char* passed to constructor
Summary: Core Dump ( Segmentation fault ) during the instance
creation of XSLTInputSource with const char* passed
to constructor
Product: Xerces-C++
Version: 1.5.1
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Critical
Priority: Other
Component: SAX/SAX2
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: dlganesan@hotmail.com
Core dump occured when i tried to create an instance of XSLTInputSource with
const char* passed as a parameter for the constructor. When i tried to trace
the source of error, debugger reports error in this method
XMLCh* XMLString::transcode(const char* const toTranscode)
{
gTranscoder->transcode(toTranscode)
}
contents of toTranscode is correctly shown by the debugger but value of
gTranscoder is nil. For reference, i'm placing the debugger trace:
--------------------------------------------------------------------------------
[1] XMLString::transcode(toTranscode = 0x92fc0 "dharma"), line 538
in "XMLString.cpp"
[2] InputSource::InputSource(this = 0xffbeea1c, systemId = 0x92fc0 "dharma"),
line 161 in "InputSource.cpp"
[3] XSLTInputSource::XSLTInputSource(0xffbeea1c, 0x92fc0, 0xffbef370,
0x7efefeff, 0x81010100, 0xff00), at 0xff25fa08
[4] EC_Xslt_core::getStylesheet(this = 0xffbef3b0, file_name = CLASS), line
251 in "xslt_core.cc"
[5] EC_Xslt_core::transformer(this = 0xffbef3b0, xml_stream_in =
0x596cc "dharma", xml_stream_out = (nil), stylesheet = CLASS, param_names =
CLASS, param_values = CLASS), line 188 in "xslt_core.cc"
[6] main(), line 68 in "test_xslt_core.cc"
--------------------------------------------------------------------------------
steps[4],[5],[6] are part of my own functions. In [4], i create an instance of
XSLTInputSource with const char* passed as argument.
i.e.,
XSLTInputSource stylesheet_source(file_name);
where file_name is a const char* .
Please let me know if there is anything wrong in the usage pattern.
Thanks and Regards
Dharma
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org