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

Segfault with Gjs #120

Open
bergie opened this issue Sep 9, 2011 · 1 comment
Open

Segfault with Gjs #120

bergie opened this issue Sep 9, 2011 · 1 comment

Comments

@bergie
Copy link
Member

bergie commented Sep 9, 2011

Running the gjs-example from phpcr-midgard2 causes:

(gdb) run gjs-example.js
Starting program: /usr/bin/gjs gjs-example.js
[Thread debugging using libthread_db enabled]
** (gjs:6429): DEBUG: Command line: /usr/bin/gjs gjs-example.js
** (gjs:6429): DEBUG: Creating new context to eval console script
[New Thread 0x7ffff4f55700 (LWP 6432)]

(gjs:6429): GLib-GObject-WARNING **: invalid class cast from (NULL) pointer to `MidgardDBObject'

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2e01244 in midgard_core_class_get_type_attr ()
   from /usr/lib/libmidgard2.so.2010
(gdb) bt full
#0  0x00007ffff2e01244 in midgard_core_class_get_type_attr ()
   from /usr/lib/libmidgard2.so.2010
No symbol table info available.
#1  0x00007ffff2de60a9 in midgard_schema_object_factory_get_object_by_path
    () from /usr/lib/libmidgard2.so.2010
No symbol table info available.
#2  0x00007ffff65daa60 in ffi_call_unix64 ()
   from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#3  0x00007ffff65da42f in ffi_call () from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#4  0x00007ffff3deed13 in ?? () from /usr/lib/libgjs-gi.so.0
No symbol table info available.
#5  0x00007ffff3defe90 in ?? () from /usr/lib/libgjs-gi.so.0
No symbol table info available.
#6  0x00007ffff63dec70 in ?? () from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#7  0x00007ffff63c6177 in ?? () from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#8  0x00007ffff63dcc25 in ?? () from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#9  0x00007ffff63dd765 in ?? () from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#10 0x00007ffff634f02e in JS_EvaluateUCScriptForPrincipals ()
   from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#11 0x00007ffff634f122 in JS_EvaluateScriptForPrincipals ()
   from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#12 0x00007ffff634f1c2 in JS_EvaluateScript ()
   from /usr/lib/libmozjs185.so.1.0
No symbol table info available.
#13 0x00007ffff7281574 in gjs_context_eval () from /usr/lib/libgjs.so.0
No symbol table info available.
#14 0x0000000000400f6a in main ()
No symbol table info available.

Might also be related with the crash I get with node-gir

@bergie
Copy link
Member Author

bergie commented Sep 9, 2011

PHPCR unit tests die too:

PHP Fatal error:  Uncaught exception 'PHPCR\NodeType\NoSuchNodeTypeException' with message 'Node 'nt:file' is not registered' in /home/bergie/Projects/phpcr-midgard2/src/Midgard2CR/NodeType/NodeTypeManager.php:103

Interestingly the python example works:

$ python python-example.py 
true

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

No branches or pull requests

1 participant