RE: ORBit install

2002-02-25 Thread O'BRIEN,STEVE (HP-UnitedKingdom,ex1)

Thanks for the hints Rob. I'll have a look at this again as soon as I get
the chance. It will be some time before I will have a chance to build a
debug cygwin1.dll though.
Steven

 -Original Message-
 From: Robert Collins [mailto:[EMAIL PROTECTED]]
 Sent: 21 February 2002 12:25
 To: O'BRIEN,STEVE (HP-UnitedKingdom,ex1); [EMAIL PROTECTED]
 Subject: RE: ORBit install
 
 
 
 
  -Original Message-
  From: O'BRIEN,STEVE (HP-UnitedKingdom,ex1) 
 
  Hi Rob
  I didn't mean to suggest that there is a problem with the 
  cygwin pthread
  implementation. 
 
 There may be :}. I'm not concerned if there is or is not, but 
 rather with the fault you see - when we examine that we can 
 lay blame :}.
 
  Sometimes I get:
  GThread-ERROR **: file gthread-posix.c: line 55 
  (g_mutex_new_posix_impl):
  error Device or resource busy during pthread_mutex_init 
  ((pthread_mutex_t *)
  result, ((void *)0))
 
 What does gthread-posix.c line 55 look like.
  
  Sometimes I get a segmentation fault
 
 Can you duplicate this with gdb, or with strace, or with JIT 
 debugging (see how-debuging-works.txt in the cygwin source 
 directory.You'll need a debug cygwin1.dll for tracking this down.
  
  Sometimes the test completes ok
  
  Failures appear at different points in the program, so I 
  can't even say that
  the resource busy always occurs at X and segmentation fault 
  always occurs
  at Y.
 
 Thats ok. If we can pin one down with a good backtrace, it 
 may make the fault visible.
  
  When running in gdb the debug symbol table becomes corrupted, so the
  function names it reports do not match the file:lineno 
  reported - so the
  program is clearly trashing memory on its way.
 
 Optimisation can also cause that, I wouldn't assume that the 
 symbol table is necessarily corrupt. What does bt full, and 
 info threads show?
  
  I *think* that a mutex is not being set properly, or is being 
  corrupted when
  the memory managment error kicks in, so that two threads 
  attempt to free the
  same memory, or one uses memory that is already freed by 
 another. All
  guesswork though, because I have not been able to trace the 
  execution in
  gdb.
 
 Yah, single stepping with threads is iffy at best, they tend 
 not do show the fault. Breakpoints are your friend :}.
 
 ROb
 



RE: ORBit install

2002-02-21 Thread O'BRIEN,STEVE (HP-UnitedKingdom,ex1)

Glen Rice wrote:

 I am trying to install ORBit and I read the directions
 I found in the ported software section on the CYGWIN 
 website.  It said to install ORBit run make with skipping
 the test directory.
 How do I do this?
 Thank you,
 Glenn Rice 

I have been working on a port of Gnome to cygwin for some time now. The site
you got these instructions from (I guess
http://www.geocities.co.jp/SiliconValley/1596/en/cygwin.html) does not say
whether any of the packages pass their own test suites. In the case of ORBit
this is a serious issue because the idl compiler generated by compiling
unpatched sources is badly broken on cygwin, and so the tests do not even
build correctly. The problem is that memory alignment of multiword datatypes
on Windows does not fit the pattern expected by the ORBit source code. So,
for example, any IDL interface containing a double will be incorrectly
compiled.

I have patches for ORBit and most of the other Gnome libraries that produce
DLLs rather than static libraries, and pass their test suites.
Unfortunately, this does not guarantee that they are correct. I have just
one library left to get working, then I will be able to build a reasonable
selection of apps and use them to find any remaining bugs (and I am sure
there will be many).

The problem library in gnome-vfs, where there appears to be problems with
thread mutexes, although I really have not been able to debug this at all.

Still, the control-center and gnome-core build OK so I can get a Gnome
desktop up, even if I am getting lots of errors generated. Most of
gnome-games builds and runs OK too, so there's some reward for my efforts at
least!

I would like to make my work available to the cygwin community at large,
hopefully so that someone who understands cygwin thread management better
can get a handle on the faults with gnome-vfs. As this is just a hobby and I
get no more than a few hours a month to work on it, I would be happy to hand
over to anyone who is interested to take on proper maintenance of these
packages and can make them available on the web. Please reply to this
mailing list, *not* to me personally.

Steven O'Brien



RE: ORBit install

2002-02-21 Thread Robert Collins



 -Original Message-
 From: O'BRIEN,STEVE (HP-UnitedKingdom,ex1) 

 The problem library in gnome-vfs, where there appears to be 
 problems with
 thread mutexes, although I really have not been able to debug 
 this at all.

Hi, 
I'm the cygwin pthread maintainer. What seems to be the problem?


Rob