Asgard Segfaults with Python 2.7

Bug #805540 reported by Russ Adams
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Asgard
Status tracked in Thegrandmap
Thegrandmap
Fix Released
Undecided
Russ Adams

Bug Description

Asgard requires python2.6. Ubuntu 11.04 ships with python2.7. Asgard needs to be compile-able in such a way that is version python version independent. I've since discovered that Ubuntu 11.04 also ships with python2.6--which makes this not as big of a deal.

Russ Adams (rustushki)
Changed in asgard:
importance: Undecided → High
assignee: nobody → Russ Adams (rustushki)
status: New → Confirmed
Russ Adams (rustushki)
summary: - Asgard does not compile on Ubuntu 11.04
+ Support for Python 2.7+
Changed in asgard:
importance: High → Medium
description: updated
Revision history for this message
Russ Adams (rustushki) wrote : Re: Support for Python 2.7+

Unfortunately, there's more to this issue than linking. Python 2.7 introduces a non deterministic segfault. Here's how to reproduce:

1. Edit src/sconscript, changing all references from python2.6 to python2.7.
2. Edit src/console/Console.cpp changing include directive reference from python2.6 to python2.7.
3. Edit src/console/ConsolePython.h changing include directive reference from python2.6 to python2.7.
4. scons
5. ./asgard test.py

You'll now see that asgard will crash with a segfault non-deterministic-ally.

Revision history for this message
Russ Adams (rustushki) wrote :

I'll put the above comment in more explicit steps:

$ bzr checkout lp:asgard

$ cd asgard

$ scons

(Run asgard: you should see that everything works OK)
$ ./asgard test.py

$ bzr patch python27.diff

$ scons

(Run asgard: you should see that asgard crashes with a segfault (though not every time the time))
$ ./asgard test.py

Revision history for this message
Russ Adams (rustushki) wrote :

r98 does *not* fix the segfault.

Revision history for this message
Russ Adams (rustushki) wrote :

Ubuntu 11.10 includes Python 2.6, so we have at least 6 more months as of 10/15/2011.

summary: - Support for Python 2.7+
+ Asgard Segfaults with Python 2.7
Revision history for this message
Russ Adams (rustushki) wrote :

Determined that the 'Well Defined MVC' blueprint fixed this problem. Apparently the conflict was somehow with the now-removed Messaging System. We'll change the Python version to 2.7 after the trunk merge.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.