[omniORB] omniORBpy 2.0 and Mac OS X 10.2 ?
Bill Noon
noon@snow.nrcc.cornell.edu
Mon Mar 10 14:32:01 2003
Randy -- I have been running OmniORB and omniORBpy on Mac OS X for some
time. In all the iterations of compilers/linkers (gcc 2.95.2 and 3.1)
and python (2.1 - 2.3a3-framework) I have been unable to coax the
linker to call all the static initializers.
I resorted to setting the environmental var DYLD_BIND_AT_LAUNCH to
force the dynamic linker to get all the code loaded up.
# python example_echo_coloc.py
*** malloc[5261]: Deallocation of a pointer not malloced: 0x14b4a0;
This could be a double free(), or free() called with the middle of an
allocated block; Try setting environment variable MallocHelp to see
tools to help debug
*** malloc[5261]: error for object 0x7c860: Incorrect checksum for
freed object - object was probably modified after being freed; break at
szone_error
Segmentation fault
# setenv DYLD_BIND_AT_LAUNCH
# python example_echo_coloc.py
echoString() called with message: Hello
I said 'Hello'. The object said 'Hello'.
Hope that helps.
--Bill Noon
Northeast Regional Climate Center
Cornell University
On Sunday, March 9, 2003, at 11:03 PM, Randy Wiser wrote:
> Hello,
>
> I'm new to Mac OS X development, and would like to here from those who
> are building and running omniORBpy on this platform. After building
> omniORB 4.0 and omniORBpy 2.0 (March 7 snapshot or official release)
> with gcc 3.1 (or 2.95.2) and a Python 2.3 framework (from CVS the last
> week in Feb.), I get the following crash running example_echo_coloc.py
> (and other Python apps):
>
> Thanks in advance,
> - Randy
>
> Date/Time: 2003-03-09 19:27:13 -0800
> OS Version: 10.2 (Build 6C115)
> Host: client.attbi.com
> Command: python
> PID: 7071
> Exception: EXC_BAD_ACCESS (0x0001)
> Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000001b3
> Thread 0 Crashed:
> #0 0x900049a4 in free_list_remove_ptr
> #1 0x90004640 in szone_free
> #2 0x004d161c in operator delete(void*)
> #3 0x004d214c in operator delete[](void*)
> #4 0x0047478c in
> omni::orbOptions::registerHandler(omni::orbOptions::Handler&)
> #5 0x004ea070 in _static_initialization_and_destruction_0(int, int)
> #6 0x8fe16350 in call_module_initializers_for_library
> #7 0x8fe160e4 in call_module_initializers
> #8 0x8fe106f0 in link_in_need_modules
> #9 0x8fe102d0 in bind_lazy_symbol_reference
> #10 0x8fe00ec0 in stub_binding_helper_interface
> #11 0x004e9930 in _static_initialization_and_destruction_0(int, int)
> #12 0x8fe16350 in call_module_initializers_for_library
> #13 0x8fe160e4 in call_module_initializers
> #14 0x8fe106f0 in link_in_need_modules
> #15 0x8fe1016c in bind_lazy_symbol_reference
> #16 0x8fe00ec0 in stub_binding_helper_interface
> #17 0x00475e3c in omni::orbOptions::singleton()
> #18 0x004e95d4 in _static_initialization_and_destruction_0(int, int)
> #19 0x8fe16350 in call_module_initializers_for_library
> #20 0x8fe160e4 in call_module_initializers
> #21 0x8fe106f0 in link_in_need_modules
> #22 0x8fe102d0 in bind_lazy_symbol_reference
> #23 0x8fe00ec0 in stub_binding_helper_interface
> #24 0x004e8f08 in _static_initialization_and_destruction_0(int, int)
> #25 0x8fe16350 in call_module_initializers_for_library
> #26 0x8fe160e4 in call_module_initializers
> #27 0x8fe106f0 in link_in_need_modules
> #28 0x8fe102d0 in bind_lazy_symbol_reference
> #29 0x8fe00ec0 in stub_binding_helper_interface
> #30 0x004e88e0 in _static_initialization_and_destruction_0(int, int)
> #31 0x8fe16350 in call_module_initializers_for_library
> #32 0x8fe160e4 in call_module_initializers
> #33 0x8fe106f0 in link_in_need_modules
> #34 0x8fe1016c in bind_lazy_symbol_reference
> #35 0x8fe00ec0 in stub_binding_helper_interface
> #36 0x002cf6f8 in omni_thread::init_t::init_t[unified]()
> #37 0x0028bf38 in _static_initialization_and_destruction_0(int, int)
> #38 0x8fe16594 in call_module_initializers_for_objects
> #39 0x8fe160a0 in call_module_initializers
> #40 0x8fe106f0 in link_in_need_modules
> #41 0x8fe121a4 in _dyld_link_module
> #42 0x900171c8 in NSLinkModule
> #43 0x100a8cec in _PyImport_GetDynLoadFunc (dynload_next.c:78)
> #44 0x100997f8 in _PyImport_LoadDynamicModule (importdl.c:42)
> #45 0x100959cc in load_module (import.c:1709)
> #46 0x100969f0 in import_submodule (import.c:2255)
> #47 0x100964c0 in load_next (import.c:2114)
> #48 0x100986fc in import_module_ex (import.c:1956)
> #49 0x10097554 in PyImport_ImportModuleEx (import.c:1996)
> #50 0x10065ed0 in builtin___import__ (bltinmodule.c:45)
> #51 0x1000a144 in PyObject_Call (abstract.c:1756)
> #52 0x10071d90 in PyEval_CallObjectWithKeywords (ceval.c:3268)
> #53 0x1006f890 in eval_frame (ceval.c:1945)
> #54 0x10070dec in PyEval_EvalCodeEx (ceval.c:2602)
> #55 0x10073c58 in PyEval_EvalCode (ceval.c:535)
> #56 0x10094c94 in PyImport_ExecCodeModuleEx (import.c:622)
> #57 0x10098204 in load_source_module (import.c:895)
> #58 0x10095880 in load_module (import.c:1700)
> #59 0x100984a4 in load_package (import.c:951)
> #60 0x100959dc in load_module (import.c:1723)
> #61 0x100969f0 in import_submodule (import.c:2255)
> #62 0x1009646c in load_next (import.c:2110)
> #63 0x100986fc in import_module_ex (import.c:1956)
> #64 0x10097554 in PyImport_ImportModuleEx (import.c:1996)
> #65 0x10065ed0 in builtin___import__ (bltinmodule.c:45)
> #66 0x1000a144 in PyObject_Call (abstract.c:1756)
> #67 0x10071d90 in PyEval_CallObjectWithKeywords (ceval.c:3268)
> #68 0x1006f890 in eval_frame (ceval.c:1945)
> #69 0x10070dec in PyEval_EvalCodeEx (ceval.c:2602)
> #70 0x10073c58 in PyEval_EvalCode (ceval.c:535)
> #71 0x100a3ca8 in run_node (pythonrun.c:1106)
> #72 0x100a3454 in PyRun_SimpleFileExFlags (pythonrun.c:717)
> #73 0x100af558 in Py_Main (main.c:446)
> #74 0x00001b5c in _start
> #75 0x000019dc in start
> PPC Thread State:
> srr0: 0x900049a4 srr1: 0x0000f030 vrsave: 0x00000000
> xer: 0x00000000 lr: 0x90004970 ctr: 0x90001680 mq: 0x00000000
> r0: 0x100eca20 r1: 0xbfffb730 r2: 0x00000000 r3: 0x00000000
> r4: 0x00000000 r5: 0x00000001 r6: 0x80808080 r7: 0x00000002
> r8: 0x6f720000 r9: 0x00000000 r10: 0x00044290 r11: 0xa00045f8
> r12: 0x90001680 r13: 0x00149c0c r14: 0xbfffbac0 r15: 0xbfffba50
> r16: 0x00000000 r17: 0x8fe48a44 r18: 0x00000001 r19: 0x00538fe0
> r20: 0xbfffbbe0 r21: 0x00000000 r22: 0xa00044b0 r23: 0x00000010
> r24: 0x00000001 r25: 0x00044010 r26: 0x00001888 r27: 0x0000007f
> r28: 0x00076410 r29: 0x000001ab r30: 0x100ef834 r31: 0x9000490c
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list