Skip to content

Segmentation Fault on writeRequestData #38

Description

@rvernica
Installed Packages
Name         : python3-cups
Version      : 2.0.1
Release      : 10.fc34
Architecture : x86_64
Source       : python-cups-2.0.1-10.fc34.src.rpm
> ipython
Python 3.9.7 (default, Aug 30 2021, 00:00:00) 

In [1]: import cups
In [2]: con = cups.Connection()
In [3]: con.getPrinters()
Out[3]: 
{'ps': {'printer-is-shared': True,
  'printer-state': 3,
...
In [6]: con.createJob('ps', 'python-job', {})
Out[6]: 101
In [7]: con.startDocument('ps', 101, 'python-doc', 'text/plain', 1)
Out[7]: 100
In [8]: con.writeRequestData('foobartaz', 3)
zsh: segmentation fault (core dumped)  ipython

I'm not sure what 100 means as the return of startDocument -- I might be doing something wrong...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions