Hi Ian, I do not have a HP-UX machine around and I am quite happy about this fact, things do never work as expected on HP-UX in the first place. Of course, if you have your program running, it will never break on this machine.
If you take a look at PdfOutputDevice.cpp line 166 there is a call to
vsnprintf with a NULL buffer and over it there is ifdef'ed code for Windows
which uses a buffer. Could you please check if it works if you use a buffer
similar to the windows version?
Best regards,
Dominik
PS: Could you please always send issues like this to the public mailing list?
So that I don't have to answer to the same questions again and again, in case
someone has a similar problem. Thanks.
Am Dienstag 10 August 2010 schrieb Ian Ashley:
> Dear Dominik,
>
> By any chance do you have access to a HPUX box as my test harness crashes
> on that platform.
>
> The output from gdb is
>
> #0 0x60000000c04fbe40:0 in __milli_memmove+0xa0 ()
> from /usr/lib/hpux32/libc.so.1
> #1 0x60000000c0481dd0:0 in T_19_f81_cl___doprnt_main+0x8480 ()
> from /usr/lib/hpux32/libc.so.1
> #2 0x60000000c0471570:0 in _doprnt+0x30 () from /usr/lib/hpux32/libc.so.1
> #3 0x60000000c049a000:0 in vsnprintf+0xa0 () from
> /usr/lib/hpux32/libc.so.1 #4 0x4276770:0 in
> PoDoFo::PdfOutputDevice::Print ()
> at
> /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfOutputDevice.cpp:166
> #5 0x42746a0:0 in PoDoFo::PdfObject::WriteObject ()
> at /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfObject.cpp:165
> #6 0x4305d00:0 in PoDoFo::PdfWriter::CreateFileIdentifier ()
> at /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfWriter.cpp:599
> #7 0x4304ba0:0 in PoDoFo::PdfWriter::Write ()
> at /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfWriter.cpp:133
> #8 0x426a420:0 in PoDoFo::PdfMemDocument::Write ()
> at
> /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfMemDocument.cpp:278
> #9 0x426a2f0:0 in PoDoFo::PdfMemDocument::Write ()
> at
> /user/source/Other/PoDoFo/0.8.1/podofo-0.8.1/src/PdfMemDocument.cpp:239
> #10 0x4242ce0:0 in main () at podofoxmp.cpp:69
>
> We use the HP aCC and cc compilers.
>
> I had a quick look and cannot see a problem.
>
> Uname a from our box outputs
> HP-UX acomputer B.11.23 U ia64 3644321612 unlimited-user license
>
> Regards,
> Ian
>
>
> Ian Ashley
> Software Engineering Manager
> Development
>
>
> Open Text
> Sandridge Park, Porters Wood,
> St Albans, Herts.
> AL3 6PH
> UK
>
> Phone: +44 (0) 1727 847488
> Fax: +44 (0) 1727 840649
> Email: [email protected]
> Web site: http://www.opentext.com/
>
> Nstein is now Open Text.
> Please update your address book with my new email address.
> This email is protected by domestic and international copyright laws and
> treaties and is the property of Open Text Corporation, it may contain
> confidential and/or trade secret information of the Open Text Corporation
> and/or its subsidiaries (OTC), and may be subject to legal privilege in
> favour of OTC. This email may only be lawfully received, accessed,
> displayed on a computer screen, printed, copied, and/or used by the
> specific addressee(s) named above ("Authorized Recipient") for the purpose
> for which it was sent by OTC. All other rights and licenses to this email
> are fully reserved to OTC. If you are not an Authorized Recipient, you are
> required to immediately delete this email in its entirety without
> printing, copying, using, and/or re-transmitting this email, either in
> whole or in part. The transmission of this email by OTC is not to be
> construed as a waiver by OTC and/or the individual sending this email on
> behalf of OTC of any of their respective rights or privileges at law or
> otherwise, howsoever arising
>
--
**********************************************************************
Dominik Seichter - [email protected]
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
