%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/__pycache__/apport_python_hook.cpython-312.pyc

�

�!f�!��,�dZddlZdZd�Zd�Zd�Zd�Zy)z:Python sys.excepthook hook to generate apport crash dumps.�Nz/etc/default/apportc���	ddl}ttd��5}|j�}ddd�|j	d|j
�duS#1swY�(xYw#t$rYywxYw)z4Return whether Apport should generate crash reports.rNzutf-8��encodingz^\s*enabled\s*=\s*0\s*$T)�re�open�CONFIG�read�search�M�OSError)r�config_file�confs   �4/usr/lib/python3/dist-packages/apport_python_hook.py�enabledrsi��	��
�&�7�
+�	&�{��#�#�%�D�	&��y�y�3�T�2�4�4�@�D�H�H�	&�	&������s'�A�A�&A�A�A�	A'�&A'c�	�	|tfvr 	trtj|||�yyt�s 	trtj|||�yy	ddl}ddl}ddl}ddl}ddl}ddl	}	ddl
m}
m}m
}|s 	trtj|||�yy|j j#|�}||�s 	trtj|||�yy|	j$j'�}
t)|d�rL|j+�}|dk(r 	trtj|||�yy|dk(r
t-||
�n||
d<|tk(r$|j.�t1|j.�|
d<|j3�}|j5||||��|j7�j9�|
d	<|
j;d
dg��|
j=�||
d
<d|
vr0t1t?|jA|�jB��|
d<	tjD�|
d<|
jI�r 	trtj|||�yy|jKtLtN�5|
jQ�ddd�d|
d<|jRjUdd�}	|jW|dd��|jYdd|�}|�d|�d|j[��d�}|j j]|�rC|
|
|�||
|�r 	trtj|||�yy|j_|�|ja|jc||jd|jfz|jhzd�d�5}|
jk|�ddd�trtj|||�yy#ttf$r!Ytrtj|||�yywxYw#tF$rY���wxYw#1swY���xYw#t$r!Ytrtj|||�yywxYw#1swY��xYw#trtj|||�wwxYw)z1Catch an uncaught exception and make a traceback.Nr)�increment_crash_counter�likely_packaged�should_skip_crash�
get_dbus_namez"org.freedesktop.DBus.Error.NoReplyz)org.freedesktop.DBus.Error.ServiceUnknown�_PythonExceptionQualifier)�file�	Traceback�
PYTHONPATH�
PYTHONHOME)�extraenv�ExecutablePath�ExecutableTimestamp�
PythonArgs�no�	_HooksRun�APPORT_REPORT_DIRz
/var/crashi�T)�mode�exist_ok�/�_�.z.crashi��wb)6�KeyboardInterrupt�sys�__excepthook__r�
contextlib�io�osr�	traceback�
apport.report�apport.fileutilsrrr�ImportErrorr�path�realpath�report�Report�hasattrr�dbus_service_unknown_analysis�errno�str�StringIO�print_exception�getvalue�strip�
add_proc_info�
add_user_info�int�stat�st_mtime�argv�AttributeError�
check_ignored�suppress�SystemError�
ValueError�add_package_info�environ�get�makedirs�sub�getuid�exists�unlink�fdopenr�O_WRONLY�O_CREAT�O_EXCL�write)�binary�exc_type�exc_obj�exc_tbr+r,r-rr.�apportrrrr4�name�tb_file�
report_dir�mangled_program�pr_filename�report_files                    r�apport_excepthookra"sY�� f:��)�+�+��D����x��&�9���y��|����x��&�9��y	������ �
�
���T����x��&�9��Q���!�!�&�)���v�&��H����x��&�9��E���%�%�'���7�O�,��(�(�*�D��;�;��r����x��&�9��q�B�B�-�g�v�>�6:��2�3��w��7�=�=�#<�25�g�m�m�2D�F�.�/��+�+�-���!�!�(�G�V�'�!�J�%�.�.�0�6�6�8��{�����|�\�&B��C�����#)��� � �F�*�,/��B�G�G�F�O�4L�4L�0M�,N�F�(�)�	�&)�h�h�\�F�<� ����!��>����x��&�9��;�
 �
 ��j�
9�	&��#�#�%�	&�"��{���Z�Z�^�^�$7��F�
�	��K�K�
��$�K�?��&�&��c�6�2��#��A�o�%6�a��	�	��}�F�K��
�7�7�>�>�+�&�#�F�K�8� ���5������x��&�9��
�I�I�k�"�
�Y�Y��G�G�K����r�z�z�!9�B�I�I�!E�u�M�t�
�	&�
��L�L��%�	&�����x��&�9���_�W�%�	��\����x��&�9��_	��Z�	��	��
	&�	&���	��*����x��&�9��-	��	&�	&������x��&�9��s��	Q �
Q �"O�8Q �#Q �;Q �8C'Q � P
�4Q �$Q �>P�)Q �9P'�
AQ �AQ �Q�0Q �P�&Q �P�Q �
	P�Q �P�Q �P$�Q �'	Q�0Q �Q�Q �Q�Q �  Rc�>�ddl}ddl}ddlm}m}m}ddlm}|jd|j��}|sAtjr1tjjd|j�z�y|jd�}	g}
|d�D]}}|d�	�}|j|d
��	|jdd
�|	k(rI|jdd�}
|jdd|
g|j ��dk(}|
j#||
|f��|
s	d|	��|d<yd|d<|
D]!\}}
}|dxxd|�d|
�d|rdnd�d�z
cc<�#y#||f$rGtjr3tjjd|�d|j����Y��wxYw)z7Analyze D-Bus service error and add analysis to report.rN)�ConfigParser�
NoOptionError�NoSectionError)�globz/name\s+(\S+)\s+was not provided by any .servicez/Error: cannot parse D-BUS name from exception: �z%/usr/share/dbus-1/*services/*.service)�
interpolationzUTF-8rz
D-BUS Service�Name�Exec�pidofz-sx)�stdoutzInvalid D-BUS .service file z: zno service file providing �DbusErrorAnalysiszprovided by� z (z is �znot zrunning))r�
subprocess�configparserrcrdrerfr
�get_dbus_messager)�stderrrU�groupr	rK�call�PIPE�append)rXr4rrprcrdrerf�match�	dbus_name�services�service_file�service�exe�runnings               rr7r7�s���
��H�H��
�I�I�:�G�<T�<T�<V�
�E���:�:��J�J���A��*�*�,�-�
�
����A��I��H��D�E����T�2�����\�G��4�
	��{�{�?�F�3�y�@��k�k�/�6�:���O�O�W�e�S�$9�*�/�/�O�R�VW�W������s�G� <�=���$�(B�9�+�&N��"�#�&3��"�#�%-�	M�!�G�S�'��#�
��W�I�R��u�D�w��F�(C�8�L�
M�
�	M���
�.�	��z�z��
�
� � �2�<�.�A��0�0�2�3�5��
�
	�s�7AE�A
F�Fc�6��tjd��r+�jd�sddl}	|j	��d�����fd�}|t_	y#t
$r<	|j
d���jd�r�dd�n#t$rYYywxYwY�UwxYw)zInstall the python apport hook.rr$Nz/proc/self/cwdz
 (deleted)i����c� ��t�|||�S)N)ra)rWrXrYrVs   �r�partial_apport_excepthookz*install.<locals>.partial_apport_excepthook�s��� ���7�F�C�C�)
r)rC�
startswithr-�getcwd�FileNotFoundError�readlink�endswithr�
excepthook)r-r�rVs  @r�installr��s�����X�X�a�[�F�
�f�'�'��,��	��	�	��}�A�f�X�.�F�D�/�C�N��!�	�
����%5�6���?�?�<�0�#�D�S�\�F���
��
��	�s5�A�	B�'B�B�	B�B�B�B�B)�__doc__r)rrrar7r��r�r�<module>r�s*��@��	��
� v:�r3M�l/r�

Zerion Mini Shell 1.0