-
Notifications
You must be signed in to change notification settings - Fork 6
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
Segfault under Debian 6 #187
Comments
QueryBuilder is depreciated. For modern types, you QuerySelect. Keep in mind that new type might be interface, mixin or abstract class. No one tweaked QB for such types. |
The problem is that I simply iterate over a list of classes from the midgard2 extension. I test isSubclassOf('midgard_object'), but apparently, I need something else. Is there a way to test what works with qb? |
Please take a look at this code snippet: |
I just tried to copy that code, but I get
AFAICT, I should be on gjallarhorn HEAD, was this class maybe renamed at some point? |
Ah... My fault. It's MidgardReflectorObject obviously. |
OK, I got it working now. Apart from the checks mentioned above, I also had to check for has_metadata_class, since adding a metadata.deleted constraint on a qb for a class without metadata leads to a segfault as well. I would be nice if there could be a warning instead, so that debugging is easier |
When running midcom's daily cron service, I get the following segfault under Debian 6 (and Ubuntu 12.10, but I didn't take a backtrace there):
I'm guessing the reason must be some missing tables, but I ran create/update_storage a number of times without any effect. Where did I go wrong?
The text was updated successfully, but these errors were encountered: