To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=53742
Issue #:|53742
Summary:|malformed PPD crasher ...
Component:|gsl
Version:|680m123
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|PATCH
Priority:|P3
Subcomponent:|code
Assigned to:|pl
Reported by:|mmeeks
------- Additional comments from [EMAIL PROTECTED] Wed Aug 24 09:32:14 -0700
2005 -------
I don't have the PPD - but the patch / stack-trace is trivial:
#20 <signal handler called>
#21 0x4246b22f in _STL::vector<void*, _STL::allocator<void*> >::size (this=0x4)
at _vector.h:179
#22 0x42484d02 in _STL::hashtable<_STL::pair<rtl::OUString const, psp::PPDKey*>,
rtl::OUString, rtl::OUStringHash, _STL::_Select1st<_STL::pair<rtl::OUString
const, psp::PPDKey*> >, _STL::equal_to<rtl::OUString>,
_STL::allocator<_STL::pair<rtl::OUString const, psp::PPDKey*> >
>::find<rtl::OUString> (this=0x4, [EMAIL PROTECTED]) at _hashtable.h:498
#23 0x42484d2e in _STL::hash_map<rtl::OUString, psp::PPDKey*, rtl::OUStringHash,
_STL::equal_to<rtl::OUString>, _STL::allocator<_STL::pair<rtl::OUString const,
psp::PPDKey*> > >::find (this=0x0, [EMAIL PROTECTED]) at _hash_map.h:182
#24 0x4247e5a4 in psp::PPDParser::getKey (this=0x0, [EMAIL PROTECTED])
at
/usr/src/debug/ooo-build-1.9.124/build/src680-m124/psprint/source/helper/ppdparser.cxx:529
#25 0x423ef9d9 in copyJobDataToJobSetup (pJobSetup=0x48737570, [EMAIL
PROTECTED])
at
/usr/src/debug/ooo-build-1.9.124/build/src680-m124/vcl/unx/source/gdi/salprnpsp.cxx:290
#26 0x423f0333 in X11SalInstance::CreateInfoPrinter (this=0x335c0d9b,
pQueueInfo=0x48705398, pJobSetup=0x48737570)
at
/usr/src/debug/ooo-build-1.9.124/build/src680-m124/vcl/unx/source/gdi/salprnpsp.cxx:497
#27 0x401224dc in Printer::ImplInit (this=0x43e16b50, pInfo=0x48705398)
at
/usr/src/debug/ooo-build-1.9.124/build/src680-m124/vcl/source/gdi/print.cxx:484
#28 0x401237b6 in Printer (this=0x43e16b50)
at
/usr/src/debug/ooo-build-1.9.124/build/src680-m124/vcl/source/gdi/print.cxx:646
Patch follows:
--- vcl/unx/source/gdi/salprnpsp.cxx 30 Mar 2005 09:09:56 -0000 1.37
+++ vcl/unx/source/gdi/salprnpsp.cxx 24 Aug 2005 16:39:55 -0000
@@ -284,7 +287,8 @@ static void copyJobDataToJobSetup( ImplJ
const PPDValue* pValue = NULL;
pJobSetup->mnPaperBin = 0xffff;
- pKey =
rData.m_pParser->getKey( String( RTL_CONSTASCII_USTRINGPARAM(
"InputSlot" ) ) );
+ if (rData.m_pParser)
+ pKey = rData.m_pParser->getKey( String(
RTL_CONSTASCII_USTRINGPARAM(
"InputSlot" ) ) );
if( pKey )
pValue = rData.m_aContext.getValue(
pKey );
if( pKey && pValue )
HTH.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]