Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when doing db migration with south in a Django 1.5 applications [PYFB31] #53

Closed
firebird-automations opened this issue Apr 23, 2013 · 4 comments

Comments

@firebird-automations
Copy link

Submitted by: Marius Ionescu (hector_imb)

Votes: 1

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

2. Then I execute:
python http://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.

@firebird-automations
Copy link
Author

Commented by: @pcisar

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.

@firebird-automations
Copy link
Author

Commented by: @mariuz

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 http://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 http://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)

@firebird-automations
Copy link
Author

Commented by: @pcisar

Ok, so I'm closing it.

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants