Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Message-ID: <018e01c0ef53$02e833f0$0200a8c0@lifelesswks> From: "Robert Collins" To: "Ralf Habacker" Cc: References: <000901c0ef4e$904cbe50$6e032bb7 AT BRAMSCHE> Subject: dtable changes causing _very_ slow startup and process-startup headache. [was Re: auto-import ld] Date: Thu, 7 Jun 2001 23:08:56 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-OriginalArrivalTime: 07 Jun 2001 12:59:56.0368 (UTC) FILETIME=[C0479500:01C0EF51] Hi folk, some background first... When I recently upgraded my source tree to current, to pickup on my pthreads work, I found that cygwin process's launched from non-cygwin process take up to 30 seconds to _start_ running. A strace on the program (say df) when launched from cmd.exe shows this 577 136584 [main] df 1764 environ_init: 0xA010F10: WINDIR=E:\WINNT 683 137267 [main] df 1764 pinfo_init: pid 1764, pgid 1764 416 137683 [main] df 1764 dtable::extend: size 32, fds 0x1A020090 as the last output before the delay occurs. I haven't looked into this, as I actually thought it was some of my code for a while, until tonight when I dropped the 4th June snapshot on, and saw it wasn't my fault :]. A similar-in-appearance problem is occuring with binaries linked by a patched ld.exe, (which I just installed tonight, so the first thing is not an artifact of that). I'm trying out Paul Solovosky{I hope thats right}'s ld-that-auto-imports. The symptoms there are that with cygwin 1.3.2, and with the 4th June snapshot, the trivial test case (one .dll with exported DATA and functions, one dependant program, about 20 lines of code) locks up the CPU at 100%. It then dies with an illegal memory access at 0x00000010. Whats interesting about that fault is that running the test case "client.exe" from cmd.exe/gdb/strace with the same cygwin1.dll works!. (And cygwin already in-memory in another window.) So, I'm really whining about 2 things, and probably should have written two emails!. 1) dtable::extend causing large delays on startup (I have no net mapped drives, before you ask) and 2) cygwin process initialisation killing patched-ld-linked apps that run fine in all other respects. === pause during message composition === I just updated and rebuilt cygwin, and tried again... no joy with either issue. I can't say why, but I have a suspicion that they are related... Any clues? I'll put some timeinto this in the weekend, and provide any and all requested debug info from now until then. Rob ----- Original Message ----- From: "Ralf Habacker" To: "Robert Collins" Sent: Thursday, June 07, 2001 10:37 PM Subject: AW: auto-import ld > Hi Robert, > > I have tried this ld with cygwin 1.3.2 and it hangs. It seems that there is > something changed in cygwin. If you need this fast install cygwin 1.1.8. and > than it will work. > > I will look whats going wrong. > > > regards > > Ralf Habacker > EMail: Ralf AT habacker DOT de > Ralf DOT Habacker AT saght DOT tessag DOT com > > > -----Ursprüngliche Nachricht----- > > Von: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au] > > Gesendet am: Donnerstag, 7. Juni 2001 13:45 > > An: Ralf Habacker > > Betreff: Re: auto-import ld > > > > > > ----- Original Message ----- > > From: "Ralf Habacker" > > To: "Robert Collins" > > Sent: Thursday, June 07, 2001 9:34 PM > > Subject: AW: auto-import ld > > > > > > > > Von: Robert Collins [mailto:robert DOT collins AT itdomain DOT com DOT au] > > > > Gesendet am: Donnerstag, 7. Juni 2001 13:28 > > > > An: Ralf Habacker > > > > Betreff: Re: auto-import ld > > > > > > > > ----- Original Message ----- > > > > From: "Ralf Habacker" > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > > > > > > > > > > Ralf, > > > > > > you offered to ship patched ld to anyone who asked? > > > > > > > > > > > > Could you please mail it to me? (Along with any notes you've got > > on > > > > its > > > > > > use :]) > > > > > > > > > > > You can download it, look at > > > > http://sourceforge.net/projects/kde-cygwin in > > > > > the file area. > > > > > > > > > > (little) Documentation and samples are under > > > > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/kde-cygwin/ld/ > > > > > > > > > > > > Thank you. > > > > > > > > I grabbed it, and replaced my current ld with it. Programs linked > > with > > > > it take a loooong time to load - do you experience that? > > > > > > > Does it works after the long time or does it hang ? > > > What about the order of the single pathes in the PATH var? The windows > > > linker searchs all directories in it to find the dll > > > > > > > Runs after ~30 seconds in gdb. > > > > Doesn't run, and uses 100% cpu without gdb. Fails with the instruction > > "0x..foo.." referenced memory at 0x00000010. the memory could not be > > read. (Thats in the usual popup window). > > > > My path is > > PATH=$'~/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/cygdrive/e/WIN > > NT/system32:/cygdr > > ive/e/WINNT:/cygdrive/e/WINNT/System32/Wbem:/usr/bin:/usr/local/bin:/usr > > /X11R6/bin:/usr/lo > > cal/lib:/usr/lib:/cygdrive/s/ACCPAC/CA_APPSW' > > > > Rob > > > > > >