Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339152 - Error in dev-lang/python in hardened profile
Summary: Error in dev-lang/python in hardened profile
Status: RESOLVED DUPLICATE of bug 329499
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 17:46 UTC by Azamat H. Hackimov
Modified: 2010-09-29 17:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,4.17 KB, text/plain)
2010-09-29 17:51 UTC, Azamat H. Hackimov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Azamat H. Hackimov 2010-09-29 17:46:37 UTC
I discovered error in dev-lang/python when tried launch net-im/pyicq-t.
pyicq-t throw this error:

 * Starting ICQ Jabber Transport ...
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/pyicq-t/pyicq-t.py", line 11, in <module>
    import main
  File "/usr/lib64/python2.6/site-packages/pyicq-t/src/main.py", line 129, in <module>
    from twisted.words.protocols.jabber import component
  File "/usr/lib64/python2.6/site-packages/twisted/words/protocols/jabber/component.py", line 23, in <module>
    from twisted.application import service
  File "/usr/lib64/python2.6/site-packages/twisted/application/service.py", line 23, in <module>
    from twisted.plugin import IPlugin
  File "/usr/lib64/python2.6/site-packages/twisted/plugin.py", line 34, in <module>
    from twisted.python.modules import getModule
  File "/usr/lib64/python2.6/site-packages/twisted/python/modules.py", line 68, in <module>
    from twisted.python.filepath import FilePath, UnlistableError
  File "/usr/lib64/python2.6/site-packages/twisted/python/filepath.py", line 29, in <module>
    from twisted.python.win32 import ERROR_FILE_NOT_FOUND, ERROR_PATH_NOT_FOUND
  File "/usr/lib64/python2.6/site-packages/twisted/python/win32.py", line 163, in <module>
    formatError = _ErrorFormatter.fromEnvironment().formatError
  File "/usr/lib64/python2.6/site-packages/twisted/python/win32.py", line 123, in fromEnvironment
    from ctypes import WinError
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 546, in <module>
    CFUNCTYPE(c_int)(lambda: None)
MemoryError

With python 3.1 pyicq-t fails with segmetation fault. In dmesg I found this string:

python3.1[6197] general protection ip:2917b95ab3f sp:3cf32ea3ae0 error:0 in _ctypes.so[2917b94b000+1c000]

I commented out last string in /usr/lib64/python{2.6,3.1}/ctypes/__init__.py (CFUNCTYPE(c_int)(lambda: None)) and pyicq-t starts without error.

This problem only occur on hardened profile. Steps to reproduce:
1. Have hardenened profile
2. Run python
import ctypes
3. Get error

Also you can look at 
https://bugzilla.redhat.com/show_bug.cgi?id=582009
https://dev.openwrt.org/ticket/6192
Comment 1 Azamat H. Hackimov 2010-09-29 17:51:37 UTC
Created attachment 248989 [details]
emerge --info
Comment 2 Magnus Granberg gentoo-dev 2010-09-29 17:58:13 UTC
Looks like a dupe of 329499

*** This bug has been marked as a duplicate of bug 329499 ***