Issue Details (XML | Word | Printable)

Key: PYFB-31
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Blocker Blocker
Assignee: Pavel Cisar
Reporter: Marius Ionescu
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird driver for Python

Segmentation fault when doing db migration with south in a Django 1.5 applications

Created: 23/Apr/13 06:47 AM   Updated: 27/Jun/13 01:27 PM
Component/s: None
Affects Version/s: 1.1
Fix Version/s: None

Environment: Ubuntu Quantal (Debian wheezy/sid), Python 2.7, Django 1.5, fdb 1.1, Firebird 2.5, south 0.7.6.


 Description  « Hide
1. I create an initial migration with south:
    python manage schemamigration myapp --initial

2. Then I execute:
    python manage.py migrate myapp

3. Then a "Segmentation fault" message is received.

Tried the same thing on multiple Linux boxes (e.g. Debian).

Without being able to run database migrations, basically I cannot use firebird at all. I had to temporarily switch to MySQL.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pavel Cisar added a comment - 23/Apr/13 09:05 AM
This is a stellar example how bug report should NOT look like. First, it's not clear if it's even FDB problem. It could be Firebird engine, django, django migration or django FB adapter problem. Or anything else. Second, if you can't provide the reason for failure (segfault is generic error message), it's necessary to provide at least exact point of failure, i.e. at what command it failed. Python debug or stack trace is preferred. Without this information we can't do anything.

Popa Adrian Marius added a comment - 27/Jun/13 01:12 PM
seems to be fixed in fdb 1.4 and django 1.5


sudo pip install --upgrade fdb
Downloading/unpacking fdb from https://pypi.python.org/packages/source/f/fdb/fdb-1.4.tar.gz#md5=a9934fd8004467ac69682e5b09e272c8
  Downloading fdb-1.4.tar.gz (895kB): 895kB downloaded
  Running setup.py egg_info for package fdb
    
Successfully installed fdb
Cleaning up...
mariuz@mariuz:~/work/firebird-mezzanine$ sudo pip install --upgrade django
Requirement already up-to-date: django in /usr/local/lib/python2.7/dist-packages
Cleaning up...
mariuz@mariuz:~/work/firebird-mezzanine$ python2.7 manage.py migrate
/usr/local/lib/python2.7/dist-packages/mezzanine/utils/conf.py:48: UserWarning: You haven't defined the ALLOWED_HOSTS settings, which Django 1.5 requires. Will fall back to the domains configured as sites.
  warn("You haven't defined the ALLOWED_HOSTS settings, which "
Running migrations for conf:
- Nothing to migrate.
 - Loading initial data for conf.
Installed 0 object(s) from 0 fixture(s)
Running migrations for core:
- Nothing to migrate.
 - Loading initial data for core.
Installed 0 object(s) from 0 fixture(s)
Running migrations for generic:
 - Migrating forwards to 0014_auto__add_field_rating_user.
 > generic:0011_auto__add_field_threadedcomment_rating_count__add_field_threadedcommen
 > generic:0012_auto__add_field_rating_rating_date
 > generic:0013_auto__add_field_threadedcomment_rating_sum
 > generic:0014_auto__add_field_rating_user
 - Loading initial data for generic.
Installed 0 object(s) from 0 fixture(s)
Running migrations for blog:
 - Migrating forwards to 0019_auto__add_field_blogpost_rating_sum.
 > blog:0019_auto__add_field_blogpost_rating_sum
 - Loading initial data for blog.
Installed 0 object(s) from 0 fixture(s)
Running migrations for forms:
- Nothing to migrate.
 - Loading initial data for forms.
Installed 0 object(s) from 0 fixture(s)
Running migrations for pages:
- Nothing to migrate.
 - Loading initial data for pages.
Installed 0 object(s) from 0 fixture(s)
Running migrations for galleries:
- Nothing to migrate.
 - Loading initial data for galleries.
Installed 0 object(s) from 0 fixture(s)
Running migrations for twitter:
- Nothing to migrate.
 - Loading initial data for twitter.
Installed 0 object(s) from 0 fixture(s)

Pavel Cisar added a comment - 27/Jun/13 01:27 PM
Ok, so I'm closing it.