[patch] ORBit2 allocator problem



Hi,

Trying to bootstrap gnome2 on m68k-linux, compiling from RedHat 8
src.rpm's

On m68k-linux alignment of objects is 2 bytes and hence I get:

** ERROR **: file corba-orb.c: line 242 (CORBA_ORB_init): assertion failed: (ORBIT_ALIGNOF_CORBA_DOUBLE > 2)
aborting...

Afaics only the lowest bit of the pointer is (ab)used so an alignment
of 2 should be still sufficient - if not then we have a problem.

I am now testing the appended patch and get:

# make -k check
........
make[2]: Entering directory `/misc/sources/rz-rpm/BUILD/ORBit2-2.4.1/test/everything'
Local server test passed

Initial References:
        POACurrent ... okay
        RootPOA ... okay
Protocol     IPv4: disabled
Protocol     IPv6: disabled
Protocol     UNIX: enabled
Protocol     IrDA: disabled

 --- In proc ---


Local server test passed
In proc (fast) took 5 msecs
In proc (slow) took 80 msecs
Testing constants...
Testing attributes...
Testing strings...
Testing longs...
Testing long longs...
Testing floats...
Testing doubles...
Testing long doubles...
Testing enums...
Testing exceptions...
Testing struct code ...
Testing variable length structs...
Testing compound structs...
Testing object structs...
Testing 'any' structs...
Testing unbounded sequences...
Testing bounded sequences...
Testing fixed length unions...
Testing variable length unions...
Testing misc type unions...
Testing arrays with fixed length members...
Testing arrays with variable length members...
Testing any with string sequences ...
Testing any with longs...
Testing any with strings...
Testing any with structs...
Testing Any with exception...
Testing Anys equivalence...
Testing Sequence of Any...
Testing TypeCodes...
Testing Contexts...
Testing IInterface code...
Testing Misc bits...
Testing Async invocations ...
Testing strings...
././test.sh: line 29: 10654 Segmentation fault      (core dumped) ./client $params
=============================================================
Test failed with params: --ORBIIOPIPv4=0 --ORBIIOPUSock=1
=============================================================
././test.sh: line 29: 10635 Terminated              ./server $params
FAIL: ./test.sh
===================
1 of 1 tests failed
===================


- ist that related to this problem or something completely different?
All other tests passed.

Richard


--- ORBit2-2.4.1/src/orb/orb-core/corba-orb.c.rz	Wed Dec 18 21:18:34 2002
+++ ORBit2-2.4.1/src/orb/orb-core/corba-orb.c	Wed Dec 18 21:18:59 2002
@@ -239,7 +239,7 @@
 		return ORBit_RootObject_duplicate (retval);
 
 	/* the allocation code uses the bottom bit of any pointer */
-	g_assert (ORBIT_ALIGNOF_CORBA_DOUBLE > 2);
+	g_assert (ORBIT_ALIGNOF_CORBA_DOUBLE >= 2);
 
 	ORBit_option_parse (argc, argv, orbit_supported_options);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]