Re: [Pyobjc-dev] GNUstep.
Brought to you by:
ronaldoussoren
From: Mirko V. <mi...@ob...> - 2003-01-05 13:29:28
|
Ronald Oussoren <ous...@ci...> ha scritto: > > How to proceed ? > Lot's of ifdefs is not the right solution. The code in class-builder.m > should use the definitions from objc_support.h instead of the native > Apple/NexStep definitions. Hopefully this mechanism solves most of your > problems. Ok, I've modified all the code to use objc_support. There are yet some GNU_RUNTIME/GNUSTEP but it is much much better now. The runtime support, apart for bugs and missing objc_addClass() implementation, should be quit ok, but unfortunately it dumps core: (gdb) r Starting program: /usr/local/bin/python dictionary.py (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)... Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf (no debugging symbols found)... Program received signal SIGSEGV, Segmentation fault. 0x805471b in PyObject_Print () (gdb) where #0 0x805471b in PyObject_Print () #1 0x80a4dce in PyFile_WriteObject () #2 0x8070230 in PyEval_EvalCode () #3 0x807246c in PyEval_EvalCodeEx () #4 0x806ee79 in PyEval_EvalCode () #5 0x8089117 in PyRun_FileExFlags () #6 0x80890d2 in PyRun_FileExFlags () #7 0x80890a6 in PyRun_FileExFlags () #8 0x8088438 in PyRun_SimpleFileExFlags () #9 0x8087f54 in PyRun_AnyFileExFlags () #10 0x8052c59 in Py_Main () #11 0x8052570 in main () #12 0x80524cb in _start () It prints correctly the class returned by objc.lookUpClass() but it hangs when it try to print the object. Any hints where should I start looking ? Thanks. > BTW. I noticed GNUstep has a build-option for using a > garbage-collector. Using that option might cause problems with > subclassing Objective-C classes from Python, the current code depends > on reference-counts in both Python and Objective-C to detect if objects > are alive. I know, but I've never used it and it seems to remember that is a bit untested. -- Ciao Mirko |