Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcups crash in ppd.c #2425

Closed
michaelrsweet opened this Issue Jun 28, 2007 · 4 comments

Comments

Projects
None yet
1 participant
@michaelrsweet
Copy link
Collaborator

michaelrsweet commented Jun 28, 2007

Version: 1.2.11
CUPS.org User: twaugh.redhat

The attached PPD causes a segmentation fault when opened using ppdOpenFile() from libcups.

On Fedora it can be shown by just starting cupsd from the command line with this PPD in use for a printer, or like this:

python -c 'import cups; cups.PPD("XeroxPhaser6120.ppd")'
#0 0x4a911038 in strcmp () from /lib/libc.so.6
#1 0x00146be3 in ppd_get_option (group=0x884c24c,

name=0xbfd5ea71 "PageRegion") at ppd.c:2522

#2 0x0014a3ec in ppdOpen2 (fp=0x883ddb8) at ppd.c:1224
#3 0x0014bafd in ppdOpenFile (filename=0xb7eea334 "XeroxPhaser6120.ppd")

at ppd.c:2026

#4 0x0011d42b in ?? () from /usr/lib/python2.5/site-packages/cups.so
#5 0x4ae7ba05 in ?? () from /usr/lib/libpython2.5.so.1.0
#6 0x4ae32127 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#7 0x4aeae561 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#8 0x4aeb263f in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#9 0x4aeb26c3 in PyEval_EvalCode () from /usr/lib/libpython2.5.so.1.0
#10 0x4aecc3b6 in ?? () from /usr/lib/libpython2.5.so.1.0
#11 0x4aecc611 in PyRun_StringFlags () from /usr/lib/libpython2.5.so.1.0
#12 0x4aecd903 in PyRun_SimpleStringFlags () from /usr/lib/libpython2.5.so.1.0
#13 0x4aed77fb in Py_Main () from /usr/lib/libpython2.5.so.1.0
#14 0x080485b2 in main ()

Original bug report:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186231

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jun 28, 2007

CUPS.org User: twaugh.redhat

Hmm, this won't let me add the file here. Well, it's in the tarball here:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=186231#c6

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jun 28, 2007

CUPS.org User: mike

Please try against the patch for STR #2408 - I'd guess the problem is the same.

(file attachment problem should be resolved now - side-effect of the server move...)

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jun 29, 2007

CUPS.org User: twaugh.redhat

Yes, that fixes it. Thanks!

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

michaelrsweet commented Jun 29, 2007

CUPS.org User: mike

Just got a separate STR with that PPD file - same problem as #2408, already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.