403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.139
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/proc/self/root/usr/lib/python3/dist-packages/breezy/__pycache__/crash.cpython-313.pyc
�

p��g_%���SrSSKrSSKrSSKrSSKrSSKrSSKJr SSKrSSK	J
r
JrJrJ
r
Jr SrSrSrS	rS
rSrSrS
rg)aHandling and reporting crashes.

A crash is an exception propagated up almost to the top level of Breezy.

If we have apport <https://launchpad.net/apport/>, we store a report of the
crash using apport into its /var/crash spool directory, from where the user
can either manually send it to Launchpad.  In some cases (at least Ubuntu
development releases), Apport may pop up a window asking if they want
to send it.

Without apport, we just write a crash report to stderr and the user can report
this manually if the wish.

We never send crash data across the network without user opt-in.

In principle apport can run on any platform though as of Feb 2010 there seem
to be some portability bugs.

To force this off in brz turn set APPORT_DISABLE in the environment or
-Dno_apport.
�N)�StringIO�)�bedding�debug�osutils�plugin�tracec���S[R;d%[RR	SS5(a[X5$[
X5(ag[X5$![a/n[R"SRU55 SnAN?SnAf[aDn[R"SRU55 [R"5 SnAN�SnAff=f)N�	no_apport�APPORT_DISABLEz.couldn't find apport bug-reporting library: {}z.brz: failed to report crash using apport: {!r})
r�debug_flags�os�environ�get�report_bug_legacy�report_bug_to_apport�ImportErrorr	�mutter�format�	Exception�log_exception_quietly)�exc_info�stderr�es   �./usr/lib/python3/dist-packages/breezy/crash.py�
report_bugr9s����u�(�(�(�R�Z�Z�^�^�<L�d�-S�-S� ��2�2�
&���1�1��2��X�.�.���Q�
���E�L�L�Q�O�P�P���&�	���E�L�L�Q�O�P�
�#�#�%�%��	&�s$�A#�#
C(�-%B�
C(�$:C#�#C(c
�^^�[R"UT5 TRS5 SSKmUU4SjnU"SR	[
R[
R"[R5[R"SS955 U"SR	[R55 U"TRS	[R"5-S
SS9S-5 U"S
R	[R "5[R""5[$R&R)S555 TRS5 g)z4Report a bug by just printing a message to the user.�
rNc�L>�TRTRUSSS9S-5 g)N�N�    ��width�subsequent_indentr)�write�fill)�l�err_file�textwraps ��r�
print_wrapped�(report_bug_legacy.<locals>.print_wrappedPs#������x�}�}�Q�b�F�}�K�d�R�S�zbrz {} on python {} ({})
r��aliasedzarguments: {!r}
z	plugins: r r!r"z(encoding: {!r}, fsenc: {!r}, lang: {!r}
�LANGz�
*** Breezy has encountered an internal error.  This probably indicates a
    bug in Breezy.  You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/brz/+filebug
    including this traceback and a description of the problem.
)r	�print_exceptionr%r)r�breezy�__version__�_format_version_tuple�sys�version_info�platform�argvr&r�format_concise_plugin_listr�get_user_encoding�getfilesystemencodingrrr)rr(r*r)s ` @rrrJs���	���(�H�-��N�N�4���T��$�+�+�����(�(��)9�)9�:����a�(�	
���%�,�,�S�X�X�6�7���
�
��&�;�;�=�=��$�	�	
�
�	���3�:�:��%�%�'��%�%�'��J�J�N�N�6�"�	
��
�N�N�	K�r,c��SSKn[U5nUcURS5 U$[R"X5 URSRU55 U$)z}Report a bug to apport for optional automatic filing.

:returns: The name of the crash file, or None if we didn't write one.
rNz9
apport is set to ignore crashes in this version of brz.
z�
You can report this problem to Breezy's developers by running
    apport-bug {}
if a bug-reporting window does not automatically appear.
)�apport�_write_apport_report_to_filer%r	r0r)rrr<�crash_filenames    rrrtsh���1�(�;�N������R�S���	���h�/����
I�JP���J�		
��r,c���SSKnSSKJn Uup4nU"5nUR5 US	UR	5 SUS'SUS'[
R"[R5US'[RUS'[R"[R5US	'[R"S
S9US'[R"5US
'[R "5US'["R$R'SS5US'[)5US'[+5US'[
R"[,R.5US'SUS'SUS'SUS'[15nUR3X4XWS9 UR55US'[7U5 UR95 UR;5(ag[=5up�UR?U	5 U	RA5 U$)Nr)�Report�ProcMaps�brz�
SourcePackage�Package�CommandLine�
BrzVersion�
PythonVersionrr-�Platform�UserEncoding�FileSystemEncodingr/�C�Locale�
BrzPlugins�PythonLoadedModules�
BrzDebugFlags�CrashDb)�file�	Traceback)!�	traceback�
apport.reportr@�
add_proc_info�
add_user_info�pprint�pformatr4r7r1r2r3r5r6rr9r:rrr�_format_plugin_list�_format_module_listrr
rr0�getvalue�_attach_log_tail�	anonymize�
check_ignored�_open_crash_filer%�close)
rrSr@�exc_type�
exc_object�exc_tb�pr�tb_file�crash_file_name�
crash_files
          rr=r=�s����$�#+� �H�&�	��B�����	�:������
 �B����B�y�M����s�x�x�0�B�}���)�)�B�|�� �6�6�s�7G�7G�H�B����&�&�q�1�B�z�N� �2�2�4�B�~��"�8�8�:�B����:�:�>�>�&�#�.�B�x�L�*�,�B�|�� 3� 5�B��� �.�.��):�):�;�B���
 �B����B�y�M��B�y�M��j�G�
���h�F��I��&�&�(�B�{�O��R��$�L�L�N�	������&6�&8�#��
����������r,c�&�[[R"55nUR5nSR
USS5US'UR5 g![an[	U5US'SnAgSnAff=f!UR5 f=f)N�
BrzLogTail�i���)�openr	�_get_brz_log_filename�OSError�repr�	readlines�joinr`)rd�brz_logr�liness    rr\r\�s~����u�2�2�4�5����!�!�#���7�7�5���;�/��<���
�
�������7��<������	�
�
��s"�A�'A>�
A;�#A6�6A;�>Bc�H�[R"5n[R"U5(d[R
"USS9 [R"S[R"55n[RS:XaSnOS[R"53n[R"USRX!55nU[R"[R"U[R [R"-[R$-S5S54$)	Ni�)�modez%Y-%m-%dT%H:%M�win32rj�.zbrz{}.{}.crash�wb)r�	crash_dirr�isdirr�makedirs�time�strftime�gmtimer4r6�getuid�pathjoinr�fdopenrk�O_WRONLY�O_CREAT�O_EXCL)rx�date_string�	user_part�filenames    rr_r_�s����!�!�#�I��=�=��#�#�	���I�E�*��-�-� 0�$�+�+�-�@�K�
�|�|�w���	���	�	��}�%�	�����#�*�*�9�B��H�
�R�Y�Y�
����"�+�+��
�
�2�R�Y�Y�>��F����r,c�H�SR[R"SS95$)NrjT)�
show_paths)rpr�describe_plugins�r,rrYrY	s��
�7�7�6�*�*�d�;�<�<r,c�J�[R"[R5$)N)rWrXr4�modulesr�r,rrZrZ
s���>�>�#�+�+�&�&r,)�__doc__rr6rWr4r{�iorr1rjrrrrr	rrrr=r\r_rYrZr�r,r�<module>r�sS��"�8
��
�
���
�4�4�/�"'�T�DL�^
��.=�'r,

Youez - 2016 - github.com/yon3zu
LinuXploit