readlink null termination problem

2004-01-05 Thread peter garrone
I was having a problem with mkcramfs on cygwin creating symbolic links for the compressed linux filesystem. mkcramfs uses malloc to allocate a buffer that it sends to the readlink function in cygwin path.cc That function uses memcpy to do a copy of the link into a buffer. Neither mkcramfs or rea

lstat symbolic link size

2004-01-05 Thread peter garrone
lstat returns an incorrect symbolic link size, with size 11 bytes too large. This causes mkcramfs to fail. CYGWIN variable is set to nowinsymlinks. Set to winsymlinks, the size is about 80 bytes too large. This is for a cygwin snapshot from September. This program generates the error for me. Creat

problem compiling cygwin, make fails in winsup/cygwin

2003-08-25 Thread peter garrone
Hi, I am attempting to build cygwin from source. The make fails in i686-pc-cygwin/winsup/cygwin, error is make: *** No rule to make target `/usr/lib/w32api/Makefile', needed by `/lib/'. Stop. Before this point, the following messages were also emitted. Making each object: cc1(plus):warning: cha

pthread_cond_timedwait accurate to one second only

2003-08-25 Thread peter garrone
Hi. I would like to use this function down to 10 milliseconds accuracy if possible. However upon looking at winsup/cygwin/thread.cc, it uses the function "ftime" and the millisecond field is ignored. All the examples in the winsup testsuite also generally check to 5 seconds only. Is there any in

snapshot compilation failure

2003-08-27 Thread peter garrone
Attempting to compile the latest snapshot, (by untaring cygwin-src-20030823.tar.bz2 and winsup-src-20030823.tar.bz2 in /, and creating /src as a symbolic link, creating /obj, /install, entering /obj, /src/configure --prefix=/install, then make.) The make fails with libm.a. Relevant messages ar

Using gdb on cygwin library/dll functions

2003-08-27 Thread peter garrone
How to do this? If I attempt to set a breakpoint at, say, pthread_cancel, I get Cannot access memory at address 0x25 although pthread_cancel exists at 0x5a79f0 according to the map file. If I attempt to link with -static, I get a -lX11 library lookup failure. If I attempt to link in the releva

snapshot installation confusion

2003-08-27 Thread peter garrone
Referring to the faq question "how do i rebuild the tools on my NT box" the instructions are to "install everything", after the "make install" and "make check" steps. I understand the dll swapping trickery, but exactly what directories are to be copied where with the "install everything" step? --

Re: snapshot compilation failure

2003-08-28 Thread peter garrone
> Hallo peter, > > Am Mittwoch, 27. August 2003 um 08:31 schriebst du: > > > Please try the latest available perl snapshot test pre-release: > http://anfaenger.de/cygwin-1.5/perl/perl-5.8.1-1.tar.bz2 > > You can use setup.exe to install it, to do so, add this URL to the > mirrors list: http://

Re: snapshot installation confusion

2003-08-28 Thread peter garrone
In answer to my own query I copied from /install/* into /usr, where the install directory hierarchy appeared to be rooted. -- __ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outblaze -- Unsubscribe info: htt

Re: Using gdb on cygwin library/dll functions

2003-08-28 Thread peter garrone
In answer to my own query, after compiling and installing a snapshot, ensuring an unstripped cygwin1.dll was installed, and setting a breakpoint at and stopping at main, then breakpoints could be set within cygwin library In fact though a bit frustrated yesterday, today i'm quite impressed. -- _

pthreads and atexit on cygwin

2003-08-29 Thread peter garrone
Hi, I have a noticed a difference in execution between cygwin and linux for pthreads and atexit. If exit is called by a thread, then functions lodged with atexit by the main thread do not get invoked on cygwin, but do get invoked on linux. Because I am unsure if this difference has been noted

feature requests for setup

2003-09-23 Thread peter garrone
Hi, I thought I would note some desirable features in setup that would save dickheads such as myself much time. - Have setup check with the mirror to see if the setup program itself has been upgraded. For people who dont read announcements. - If installing from the local directory, possibly o

Re: feature requests for setup

2003-09-23 Thread peter garrone
- Original Message - From: Igor Pechtchanski <[EMAIL PROTECTED]> Date: Tue, 23 Sep 2003 23:56:04 -0400 (EDT) To: peter garrone <[EMAIL PROTECTED]> Subject: Re: feature requests for setup > > - Have setup check with the mirror to see if the setup program itself > &

possible munmap bug

2003-09-25 Thread peter garrone
Hi, This was causing my build of gcc to fail. File winsup/cygwin/mmap.cc version 1.86 (and earlier) function munmap when unmapping a 64K record, passes the wrong parameters to fhandler_base::munmap, passing the function parameter address/length instead of a block local version. This patch exp

munmap bug test program

2003-09-29 Thread peter garrone
This test program highlights the recent munmap problem addressed by Corinna. It works with the updated mmap, and with linux, fails on cygwin with the prior mmap. /** * mmap test. * mmaps two chunks of adjacent memory, then munmaps one and a half, * then sees if the remainder is still useable.

Re:munmap bug test program

2003-09-30 Thread peter garrone
>On Tue, Sep 30, 2003 at 10:06:11AM +0800, peter garrone wrote: >> This test program highlights the recent munmap problem addressed by Corinna. >> It works with the updated mmap, and with linux, fails on cygwin with the prior mmap. > >What "updated" mmap are you talk

Re: munmap bug test program

2003-09-30 Thread peter garrone
I said this test program works with both my own and corinna's fix, but in fact I have only actually tested it with corinna's fix, since I discarded my own. -- __ http://www.linuxmail.org/ Now with e-mail forwarding for only US$5.95/yr Powered by Outbla

Re: munmap bug test program

2003-10-01 Thread peter garrone
>On Tue, Sep 30, 2003 at 10:06:11AM +0800, peter garrone wrote: >> This test program highlights the recent munmap problem addressed by Corinna. >> It works with the updated mmap, and with linux, fails on cygwin with the prior mmap. > >What "updated" mmap are you talk

Is multithreaded profiling on cygwin possible?

2003-10-01 Thread peter garrone
Firstly, apologies for repeated postings to the gmane cygwin newsgroup, I thought they were bounced. If I profile my multi-threaded application, it appears that only the main thread is profiled. On linux, it is possible to save and set the virtual timer upon creation of each thread, and thereb

Re: Is multithreaded profiling on cygwin possible?

2003-10-06 Thread peter garrone
Sorry for the delay, or the repeat information, my original reply is lost. Brian Ford wrote: >peter garrone wrote: > >>If I profile my multi-threaded application, it appears that only the main >>thread is profiled. >> >Currently, yes. Actually, I think I was only parti

Re: Is multithreaded profiling on cygwin possible?

2003-10-13 Thread peter garrone
Brian Ford wrote: >2.) Paraphrasing, the UNIX profil call (that gprof.c is currently using), >has a contiguous flat address space model. It hashes address samples over >that space into a buffer. The starting and ending address are >automatically pulled from the executable and are in its address

Re: Is multithreaded profiling on cygwin possible?

2003-10-13 Thread peter garrone
- Original Message - From: Brian Ford <[EMAIL PROTECTED]> Date: Mon, 13 Oct 2003 14:36:34 -0500 (CDT) To: peter garrone <[EMAIL PROTECTED]> Subject: Re: Is multithreaded profiling on cygwin possible? > On Mon, 13 Oct 2003, peter garrone wrote: > > > > Sounds g

Re: Is multithreaded profiling on cygwin possible?

2003-10-15 Thread peter garrone
Brian Ford wrote: > >On Tue, 14 Oct 2003, peter garrone wrote: > >> A list of active threads is maintained. A thread calling moncontrol(1) gets >> put in the list. When a call to SuspendThread fails, the thread is assumed >> to be defunct and taken off the list. >>

Re: Is multithreaded profiling on cygwin possible?

2003-10-16 Thread peter garrone
in these data files, giving flat addresses and CPU usage. Peter Garrone -- __ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze -- Unsubscribe info:

gdb startup error

2003-10-19 Thread peter garrone
Hi, Whenever I type gdb from the bash command line, a little window immediately pops up Window title: "gdb.exe Application Error" and text is: "The application failed to initialize properly(0xc07b)" The gdb executable is Sep 20 12:45 2365952 bytes. This also happens for the "insight" command

Re: Is multithreaded profiling on cygwin possible?

2003-10-20 Thread peter garrone
>Even if no one else comments, I really appreciate all this work you're >doing! Also, thanks for continuing to send me the updated patches. I >wish I had more time to look over them in detail right now. I'll try and >do that soon. I assume it is ok to give an open invitation for anyone >else wh

Re: Is multithreaded profiling on cygwin possible

2003-10-20 Thread peter garrone
Brian Ford wrote: >On Fri, 17 Oct 2003, peter garrone wrote: > > >> I have dropped the dll import library concept. >> >Probably good. Although, it would still be neat to figure out a way to >trace back to the application "leaf" functions. I guess