OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005341 [python27] crash always 2023-08-10 16:20 2023-08-10 16:20
Reporter rselas View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0005341: /opt/csw/lib/python2.7/ctypes/util.py exception in Solaris 11.4
Description The module ctypes.util crash in function _findLib_crle due to changes in crle output:

Solaris 11.3:

Default configuration file (/var/ld/64/ld.config) not found
  Platform: 64-bit MSB SPARCV9
  Default Library Path (ELF): /lib/64:/usr/lib/64 (system default)
  Trusted Directories (ELF): /lib/secure/64:/usr/lib/secure/64 (system default)


Solaris 11.4

Default configuration file (/var/ld/ld.config) not found
    Platform: 32-bit MSB SPARC
    Default Library Path: /lib:/usr/lib (system default)
    Trusted Directories: /lib/secure:/usr/lib/secure (system default)


The _find_crle is looking for the string: 'Default Library Path (ELF):',

    194 for line in os.popen(cmd).readlines():
    195 line = line.strip()
    196 if line.startswith('Default Library Path (ELF):'):
    197 paths = line.split()[4]


so in 11.4 fails.

Additional Information Traceback (most recent call last):
  File "<stdin>", line 107, in <module>
  File "<stdin>", line 99, in _ansiballz_main
  File "<stdin>", line 48, in invoke_module
  File "/opt/csw/lib/python2.7/runpy.py", line 176, in run_module
    fname, loader, pkg_name)
  File "/opt/csw/lib/python2.7/runpy.py", line 82, in _run_module_code
    mod_name, mod_fname, mod_loader, pkg_name)
  File "/opt/csw/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/tmp/ansible_user_payload__t4KEx/ansible_user_payload.zip/ansible/modules/user.py", line 487, in <module>
    
  File "/opt/csw/lib/python2.7/ctypes/util.py", line 210, in find_library
    return _get_soname(_findLib_crle(name, is64) or _findLib_gcc(name))
  File "/opt/csw/lib/python2.7/ctypes/util.py", line 199, in _findLib_crle
    if not paths:
UnboundLocalError: local variable 'paths' referenced before assignment
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker