This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: [PATCH] Re: pthread


 
I still have to build a debug version X with pthread support.
I was runing strace on twm and here is cut and paste from bottom of file.
it seems to be cygwin1.dll issue to me instead of windows managers.  All the
xclients work only windows managers crash/

Suhaib

209  761171 [main] twm 1356 fhandler_base::open: 0xFFFFFFFF = CreateFileA
(E:\cygwin\etc\X11\app-defaults\twm, 0x80000000, 0x7, 0x6108EBD4, 0x3,
0x2000080, 0)
  123  761294 [main] twm 1356 seterrno_from_win_error:
../../../../src/winsup/cygwin/fhandler.cc:383 errno 2
   97  761391 [main] twm 1356 geterrno_from_win_error: windows error 2 ==
errno 2
   97  761488 [main] twm 1356 fhandler_base::open: 0 = fhandler_base::open
(E:\cygwin\etc\X11\app-defaults\twm, 0x110000)
   96  761584 [main] twm 1356 fhandler_disk_file::open: 0 =
fhandler_disk_file::open (E:\cygwin\etc\X11\app-defaults\twm, 0x110000)
   97  761681 [main] twm 1356 stat_worker: -1 = stat
(/usr/X11R6/lib/X11/app-defaults/twm, 0x24CF5D4)
  546  762227 [main] twm 1356 fhandler_base::set_close_on_exec: set
close_on_exec for /dev/tcp to 1
  116  762343 [main] twm 1356 _fcntl: 0 = fcntl (3, 2, 0x1)
  182  762525 [main] twm 1356 handle_exceptions: In cygwin_except_handler
exc 0xC0000005 at 0xC16C25FF sp 0x24CFD58
  100  762625 [main] twm 1356 handle_exceptions: In cygwin_except_handler
sig = 11 at 0xC16C25FF
   98  762723 [main] twm 1356 handle_exceptions: In cygwin_except_handler
calling 0x0
   96  762819 [main] twm 1356 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
  677  763496 [main] twm 1356 stackdump: Dumping stack trace to
twm.exe.stackdump
2027697 2791193 [main] twm 1356 try_to_debug: debugger_command ''
  371 2791564 [main] twm 1356 signal_exit: about to call do_exit (18B00)
   81 2791645 [main] twm 1356 do_exit: do_exit (101120)
   95 2791740 [main] twm 1356 void: 0x0 = signal (20, 0x1)
   72 2791812 [main] twm 1356 void: 0x40B788 = signal (1, 0x1)
   92 2791904 [main] twm 1356 void: 0x40B788 = signal (2, 0x1)
   72 2791976 [main] twm 1356 void: 0x40B788 = signal (3, 0x1)
  448 2792424 [main] twm 1356 proc_terminate: nchildren 0, nzombies 0
 2273 2794697 [main] twm 1356 proc_terminate: leaving
 1147 2795844 [main] twm 1356 sigproc_terminate: entering
  104 2795948 [main] twm 1356 sigproc_terminate: done
  187 2796135 [main] twm 1356 __to_clock_t: dwHighDateTime 0, dwLowDateTime
3404896
   89 2796224 [main] twm 1356 __to_clock_t: total 00000000 00000154
   75 2796299 [main] twm 1356 __to_clock_t: dwHighDateTime 0, dwLowDateTime
1301872
   80 2796379 [main] twm 1356 __to_clock_t: total 00000000 00000082
   72 2796451 [main] twm 1356 _pinfo::exit: Calling ExitProcess 101120

-----Original Message-----
From: Robert Collins
To: Suhaib Siddiqi
Cc: cygwin-xfree@sources.redhat.com
Sent: 4/16/2001 9:01 PM
Subject: RE: [PATCH] Re: pthread

If you have time...
Run up twm in gdb...

ie 
$gdb -nw twm
run 

and do a bt of the crash.

otherwise put the binaries up (non stripped please) and the source tree
and I'll have a dig around.

Rob
 
 

> -----Original Message-----
> From: Suhaib Siddiqi [mailto:ssiddiqi@inspirepharm.com]
> Sent: Tuesday, April 17, 2001 10:58 AM
> To: Robert Collins
> Cc: 'cygwin-xfree@sources.redhat.com'
> Subject: RE: [PATCH] Re: pthread
> 
> 
>  
> Well, I got libX11 fixed.  All the clients works, so does X-server
> with thread safe APi... BUT bummer, all the Windows manegr 
> carsh, twm, vtwm,
> WindowsMaker, xfce, all of them do a core dump when linked to 
> your pthread
> enabled Cygwin1.dll.  
> This is a tough call to debug why Windows Managers will crash 
> and other X
> clients work ;-)
> 
> After I fix few minor bgs I might put pthread enables X 
> servera dn libs on
> FTP server for people test drive and report back findings and bugs...
> 
> Suhaib
> 
> 
> -----Original Message-----
> From: Robert Collins
> To: Suhaib Siddiqi
> Sent: 4/16/2001 7:15 AM
> Subject: Re: [PATCH] Re: pthread
> 
> Here you go.
> 
> This should be all you need - you're already picking up the correct
> headers.
> 
> Rob
> ----- Original Message -----
> From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
> To: "'Robert Collins'" <robert.collins@itdomain.com.au>
> Sent: Monday, April 16, 2001 9:08 PM
> Subject: RE: [PATCH] Re: pthread
> 
> 
> > Rob,
> > I am not setup to compile cygwin1.  Can you please e-mail me
> cygwin1.dll and
> > libcygwin.a?
> > I assume that is all I need, or, are there some header changes too?
> >
> > Suhaib
> >
> > > -----Original Message-----
> > > From: Robert Collins [mailto:robert.collins@itdomain.com.au]
> > > Sent: Monday, April 16, 2001 7:06 AM
> > > To: Suhaib Siddiqi; cygwin-xfree@sources.redhat.com
> > > Cc: cygwin-patches@cygwin.com
> > > Subject: [PATCH] Re: pthread
> > >
> > >
> > > Hi Suhaib,
> > >     here are the two missing functions. If you aren't setup to
> compile
> > > cygwin1.dll let me know and I'll mail you mine.
> > >
> > > Rob
> > >
> > > ===
> > > Mon Apr 16 21:02:00 2001  Robert Collins <rbtcollins@hotmail.com>
> > >
> > >  * cygwin.din: Export New functions.
> > >  * passwd.cc (read_etc_passwd): Make race safe.
> > >  (getpwuid_r): New function.
> > >  (getpwnam_r): New function.
> > >
> > > ===
> > >
> > >
> > > ----- Original Message -----
> > > From: "Suhaib Siddiqi" <ssiddiqi@inspirepharm.com>
> > > To: "'Robert Collins '" <robert.collins@itdomain.com.au>; "Suhaib
> > > Siddiqi" <ssiddiqi@inspirepharm.com>;
> > > <cygwin-xfree@sources.redhat.com>
> > > Sent: Monday, April 16, 2001 9:57 AM
> > > Subject: RE: pthread
> > >
> > >
> > > >
> > > > > Because I am unable to compile libX11.dll, therefore I do not
> know
> > > > what else
> > > > > is brokem, because all the other DLLs and xclients link
> > > to libX11.a.
> > > >
> > > > That's cool. I expected this to be a step by step endeavour.
> Thanks
> > > for
> > > > trying.
> > > >
> > > > Rob
> > > >
> > > > > Suhaib
> > > > >
> > > >
> > > > Oh sure... it will be many step by step endeavour.
> > > >
> > > > Suhaib
> > > >
> > >
> >
>  <<suhaib.tar.bz2>> 
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]