Bug 690267 - segfault on second document
Summary: segfault on second document
Status: RESOLVED DUPLICATE of bug 690283
Alias: None
Product: GhostXPS
Classification: Unclassified
Component: General (show other bugs)
Version: master
Hardware: PC Linux
: P2 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 14:47 UTC by Ralph Giles
Modified: 2009-02-11 12:56 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Giles 2009-02-03 14:47:33 UTC
GhostXPS segfaults if more than one document is passed on the command line. The
segfault happens opening the second argument.

$ xps/obj/gxps tools/colorcirc.xps tools/tiger.xps
[Thread debugging using libthread_db enabled]
xps: page /Documents/1/Pages/1.fpage does not have transparency
[New Thread 0x7fe36ee266e0 (LWP 12014)]
End of page 1, press <enter> to continue.
[return pressed]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe36ee266e0 (LWP 12014)]
0x0000000000528126 in inflate_fast (strm=0xb04758, start=6127)
    at ../gs/zlib/inffast.c:137
137	            PUP(out) = (unsigned char)(this.val);
(gdb) bt
#0  0x0000000000528126 in inflate_fast (strm=0xb04758, start=6127)
    at ../gs/zlib/inffast.c:137
#1  0x000000000052a603 in inflate (strm=0xb04758, flush=0)
    at ../gs/zlib/inflate.c:953
#2  0x000000000070813b in xps_read_part (ctx=0xb046a0, buf=0x7fff76e47460)
    at ../xps/xpszip.c:288
#3  0x0000000000708b8e in xps_process_data (ctx=0xb046a0, buf=0x7fff76e47460)
    at ../xps/xpszip.c:513
#4  0x0000000000404c92 in xps_imp_process (pinstance=0xb04620, 
    pcursor=0x7fff76e47460) at ../xps/xpstop.c:225
#5  0x000000000073e8eb in pl_process (instance=0xb04620, cursor=0x7fff76e47460)
    at ../pl/pltop.c:148
#6  0x000000000074a4f0 in pl_main (argc=3, argv=0x7fff76e482c8)
    at ../pl/plmain.c:400
#7  0x000000000074c495 in main (argc=3, argv=0x7fff76e482c8)
    at ../pl/plmain.c:1279

Running with -Zi\| may or may not be enlightening.
Comment 1 Ralph Giles 2009-02-03 14:47:54 UTC
Raising priority because segfaults are ugly.
Comment 2 Tor Andersson 2009-02-11 12:56:00 UTC

*** This bug has been marked as a duplicate of 690283 ***