Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332419 - net-im/gajim 0.13.4-r1 crashes with python MemoryError after python update
Summary: net-im/gajim 0.13.4-r1 crashes with python MemoryError after python update
Status: RESOLVED DUPLICATE of bug 329499
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 12:54 UTC by Daniel Kuehn (RETIRED)
Modified: 2010-09-04 16:36 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,10.45 KB, text/plain)
2010-08-12 12:54 UTC, Daniel Kuehn (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kuehn (RETIRED) gentoo-dev 2010-08-12 12:54:17 UTC
I cannot start gajim at all, it always crashes in the same way.
I have tried with gajim 0.13.3 and 0.13.4 and they crash in the same way and
downgrading to python 2.6.4-r1 or 2.6.5-r2 didn't solve the issue either

Reproducible: Always

Steps to Reproduce:
1. Try to start gajim
2.
3.

Actual Results:  
Crashes with the same error despite gajim version:
Traceback (most recent call last):
  File "gajim.py", line 162, in <module>
    from ctypes import CDLL
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 546, in <module>
    CFUNCTYPE(c_int)(lambda: None)
MemoryError


Expected Results:  
Gajim starts and operates like it should
Comment 1 Daniel Kuehn (RETIRED) gentoo-dev 2010-08-12 12:54:57 UTC
Created attachment 242559 [details]
emerge --info
Comment 2 Daniel Kuehn (RETIRED) gentoo-dev 2010-08-12 12:56:15 UTC
I have checked the logs and dmesg and it does not appear to be an hardened issue, there is nothing in dmesg that say that PaX or Grsec interfered.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-08-12 15:28:33 UTC
@python
COuld you comment on that?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-08-13 11:14:26 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=621887
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-08-13 11:15:28 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=623965
Comment 6 Kristian 2010-08-30 19:48:07 UTC
same here, but i'm sure it's hardened related. after executing

sysctrl kernel.pax.softmode=1

gajim starts as expected.
Comment 7 Dennis Schridde 2010-09-02 11:43:59 UTC
Confirming with iotop-0.4.1 on ia64 running 2.6.32-hardened-r14:
Traceback (most recent call last):
  File "/usr/bin/iotop-2.6", line 9, in <module>
    from iotop.ui import main
  File "/usr/lib/python2.6/site-packages/iotop/ui.py", line 31, in <module>
    from iotop.data import find_uids, TaskStatsNetlink, ProcessList, Stats
  File "/usr/lib/python2.6/site-packages/iotop/data.py", line 39, in <module>
    import ctypes
  File "/usr/lib/python2.6/ctypes/__init__.py", line 546, in <module>
    CFUNCTYPE(c_int)(lambda: None)
MemoryError

Suggesting new summary: "Python exits with MemoryError after update"
Comment 8 Dennis Schridde 2010-09-02 11:52:35 UTC
Daniel:
Did you try downgrading your hardened kernel? I think the last version it worked for me was about -r10, but I do not have the time atm to test this.

Justin:
Are you sure your redhat-bugzilla links are related to this issue? They seem to be about segfaults in gtk and gnome.
Comment 9 Daniel Kuehn (RETIRED) gentoo-dev 2010-09-02 12:20:23 UTC
No I did not try to downgrade the hardened kernel, could give it a try.
uname -r reports:
2.6.34-hardened-r1-UL30VT

I'll try an 2.6.32 kernel when I get home and have time and see if that fixes it.
Comment 10 Dennis Schridde 2010-09-02 13:03:37 UTC
(In reply to comment #9)
> 2.6.34-hardened-r1-UL30VT
> I'll try an 2.6.32 kernel
I'm on 32-r14, which also exposes this problem (but I expect 32-r10 to not show the issue). Just try to undo the last (few) kernel upgrades you did.
Comment 11 Daniel Kuehn (RETIRED) gentoo-dev 2010-09-02 13:20:40 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > 2.6.34-hardened-r1-UL30VT
> > I'll try an 2.6.32 kernel
> I'm on 32-r14, which also exposes this problem (but I expect 32-r10 to not show
> the issue). Just try to undo the last (few) kernel upgrades you did.
> 

I'll try -r10 and see what happens
Comment 12 Daniel Kuehn (RETIRED) gentoo-dev 2010-09-04 07:49:52 UTC
After talking to spender at #grsecurity@OFTC it is apparent that it is an hardened issue.
After doing paxctl -m /usr/bin/python2.6 it worked like it should.

The reason, that spender gave, was that they recently changed how grsec implements mprotect.
Before when a program asked for an RWX memory mapping it would just demote it down to RW but now it rejects it instead.
This causes issues for python2.6 it seems :P
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-04 16:36:26 UTC

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