Re: Please try latest snapshot -- pthreads mutex users please note

2005-07-06 Thread Arash Partow
Hi Brian, What kernel version and what NPTL version do you have installed? Kind regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything

Re: Please try latest snapshot -- pthreads mutex users please note

2005-07-05 Thread Arash Partow
l and relevant to put in my two cents. maybe in the future I wont even do that... Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about a

Re: Please try latest snapshot -- pthreads mutex users please note

2005-07-05 Thread Arash Partow
gards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. http://www.partow.net We're coming close to a 1.5.18 release. P

Re: Problem with pthreads (serious memory leaks)

2005-06-05 Thread Arash Partow
another and hence felt i should share it with someone else. :) One final note, I've noticed that if in the my_producer class in the produce method, if the string lengths are set to 100 (instead of 1024), the memory leak magically disappears, I'm thinki

Re: Problem with pthreads (serious memory leaks)

2005-06-05 Thread Arash Partow
review (at least) is it not? ;) Kind regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. http://www.partow.net On

Problem with pthreads (serious memory leaks)

2005-06-05 Thread Arash Partow
Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. http://www.partow.net -- Unsubscribe info: http://cygwin.com/ml

Re: Possible bash incompatibility

2005-04-18 Thread Arash Partow
Hi all Brian was correct it turns out there was another grep on my path, its all been resolved now. thanx all! Arash __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about

RE: Possible bash incompatibility - update

2005-04-18 Thread Arash Partow
Sorry the script should have been: #!/bin/bash if [ `uname -s | grep -c 'CYGWIN'` -eq 1 ]; then printf "Target platform is Win32 via CYGWIN\n"; else printf "Target platform is NOT Win32 via CYGWIN\n"; fi Still the same err

Possible bash incompatibility

2005-04-18 Thread Arash Partow
n printf "Target platform is Win32 via CYGWIN\n"; else printf "Target platform is NOT Win32 via CYGWIN\n"; fi error message: bash-2.05b$ ./test.sh ./test.sh: line 3: [: too many arguments Target platform is NOT Win32 via CYGWIN bash-2.05b$ Regards Arash Partow

Re: Problems with pthread mutexes

2004-09-25 Thread Arash Partow
simpler example that can be run, also I'm compiling with -O3,I'm not sure how cygwin's modes to gcc effect this level of optimization. Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not

Problems with pthread mutexes

2004-09-25 Thread Arash Partow
the same problem occurs. Same code compiles ok on NetBSD 1.62 and Mandrake 10.1 and gives a non erroneous return code. Any ideas, any help would be very much appreciated. Regards Arash Partow __ Be one who knows what they don't know, Instead of being

Re: License

2004-08-27 Thread Arash Partow
ygwin components also provide the source to your commercial application, because according to the GPL it is considered a derivative work. Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they

re: pthreads and sockets - Cannot register window class error

2004-05-05 Thread Arash Partow
has a winsock geared for server like behavior, or make the modifications mentioned in the article, or just simply use *bsd or linux tcp/ip stack. Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not

RE: Trying to link an MSVC DLL with a Cygwin Application

2004-05-04 Thread Arash Partow
y MS's dll specification. The name mangling is an issue from VC++ POV not the other way round. My experience comes from building a win32 dll in Borland C++ builder then having a simple console based cygwin gcc compiled app exercise the dll's API - which btw was succes

Re: shutdown( socket, SHUT_WR ) - unexpected behaviour

2004-05-03 Thread Arash Partow
Hi, Just out of curiosity, if one were to do: shutdown(sck,SHUT_WR) which means as far as I understand it "stop all send reqs made to sck", how would one reopen the sck so that you could make send reqs again? Is that even possible or do you have to reestablish the connection again from scratch?

Major Problem With Latest CYGWIN1.DLL And Serial IO [VERIFIED!]

2004-04-22 Thread Arash Partow
omports, cygwin doesn't seem to want to block even when .c_cc[VMIN] is set to something like 1,2,3... Anywayz seeing your post today has motivated me to write my own post and bit of code to demonstrate this problem. Good Catch! Arash Partow __ B

Re: Signal handling problem in 1.5.7 ? - Was: Re: Program randomly hangs.....

2004-02-03 Thread Arash Partow
the threads in this case cygwins thread pool. As far as I know the snapshot from the 31st of Jan 04 has resolved those issue. As for "processes" thats another issue altogether. Arash Partow __ Be one who knows what they don't know, I

Pthread and Signalling issue seems to be resolved... :)

2004-02-01 Thread Arash Partow
e and more applications are written using threads and signaling rather than processes and signaling, this certain problem would have inevitably become apparent. Regards Arash Partow __ Be one who knows what they don't know, Instead of being on

some advice needed on gui frameworks and cygwin

2004-01-10 Thread Arash Partow
it difficult getting wxWindows compiled under cygwin?, were any extra patches required? stuff like that... Any help and/or info would be very much appreciated. Regards Arash Partow __ Be one who knows what they don't know, Instead of bein

Re: Cygwin / pthreads / stdio problem

2004-01-06 Thread Arash Partow
Arash Partow PS: I've tried your sample program and it seems to be working without any problems. __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about a

problem comport, iocl and FIONREAD

2003-12-30 Thread Arash Partow
Hi all, I'm seeing a problem with ioctl and FIONREAD, I use the following code to check if there are any bytes in the input buffer of a comport. ie: unsigned int SerialIO::getBufferSize() { int bufferedBytes = 0; ioctl(IOPortHandle, FIONREAD, &bufferedBytes); if (bufferedBytes == -1)

Re: Unable to compile cygwin

2003-12-22 Thread Arash Partow
I don't see how your sarcastic remarks relate to what i said... Yeah. You're right. It's better to just assume it's gloriously trustworthy if it's free software and maliciously bad if it comes from Microsoft. all i said was that its harder to prove something in a negative context rather than a p

Re: Unable to compile cygwin

2003-12-22 Thread Arash Partow
proving a negative is much harder than proving a positive... Arash Partow On Mon, Dec 22, 2003 at 11:15:34AM -0800, Shankar Unni wrote: Jim Ramsay wrote: Ha! Ask that boss to prove to you that there is no security problem running Windows on a 'secure' network. To a person with that

Re: Problems with 14th Dec cygwin1.dll snapshot

2003-12-15 Thread Arash Partow
ings. http://www.partow.net Is it me or is the cygwin1.dll becoming more unstable each passing day? -marcus Hi Chris, I've test the lastest snapshot (14th Dec II) with the ThreadTest, the new problems have been resolved, still the old ones remain. thanx for the quick fix. Regard

Re: Problems with 14th Dec cygwin1.dll snapshot

2003-12-14 Thread Arash Partow
Hi Chris, I've test the lastest snapshot (14th Dec II) with the ThreadTest, the new problems have been resolved, still the old ones remain. thanx for the quick fix. Regards Arash Partow __ Be one who knows what they don't know, Instea

Problems with 14th Dec cygwin1.dll snapshot

2003-12-14 Thread Arash Partow
problems are evident when you run the ThreadTest, and press ctrl+c and have a look at the access and stackdumps that pump through.. If you would like debug info which i can give in this instance please ask. Regard Arash Partow __ Be one who knows what

pthread cancel event implementation

2003-12-12 Thread Arash Partow
hat I mean Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all things. h

Re: Problem with pthreads and signaling, behavior broken...

2003-12-11 Thread Arash Partow
Hi Chris, btw i've attached my cygcheck, might come in handy Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about a

Re: Problem with pthreads and signaling, behavior broken...

2003-12-11 Thread Arash Partow
wont be forced to continually read repetitive text... (i think ;) ) Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all th

Re: Problem with pthreads and signaling, behavior broken...

2003-12-11 Thread Arash Partow
stems not show this problem, if it is really a problem of 1 thread hogging the cpu which may be interpreted from the need to add a delay. I would like to get rid of this delay, but it seems the only way the threadtest will work properly is if the delay is there. Regards Arash Partow PS: can

Re: Problem with pthreads and signaling, behavior broken...

2003-12-09 Thread Arash Partow
Hi, look marcus don't worry yourself too much about this issue, I'm sure in time as more people encounter this problem, or slightly different forms of the problem begin popping up in different parts of cygwin, more attention will be spent on resolving it. if however its totally our mistake where b

Re: problem with dll and stdout

2003-12-09 Thread Arash Partow
piled with cygwin to a delphi gui front-end. if i am wrong please tell me. Regards Arash Partow _ ninemsn Premium transforms your e-mail with colours, photos and animated text. Click here http://ninemsn.com.au/premium/l

Re: Problem with pthreads and signaling, behavior broken...

2003-12-09 Thread Arash Partow
Hi Marcus, I asked chris the same questions yesterday, i wondered why he felt he need to change the code in order for it to work with cygwin. Its a shame though cause i see as time goes by and CPUs become better adapted to thread processing that people will write new utilities and maybe even begin

Re: Problem with pthreads and signaling - Attachment

2003-12-08 Thread Arash Partow
Hi Chris, I forgot to attach the ThreadTestPrototype.cpp file in my previous post, here it is if you would like to have a fiddle with it. Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what

Re: Problem with pthreads and signaling, behavior broken...

2003-12-08 Thread Arash Partow
on my systems. It would be really nice if we could get this small bug out of the way. Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything ab

Re: Problem with pthreads and signaling, behavior broken...

2003-12-08 Thread Arash Partow
Hello Sherly, I haven't tried the ThreadTest on a solaris system however ive e-mailed someone that does have access to one, they will try it i'll get the results back to you, but out of interest what do you think the solaris system will do? and how do you think that behaviour will relate to cygiwn

Re: Problem with pthreads and signaling, behavior broken...

2003-12-08 Thread Arash Partow
Hi Chris, I have to agree with marcus, the dll from the 8th still has the signalling issue. you have to let the threadtest run for a bit, meaning let it get to around 3k-4k of threads being created, at that point the SIGINT does not seem to fire. Arash

Re: Problem with pthreads and signaling, behavior broken...

2003-12-08 Thread Arash Partow
hello marcus, thanx for your confirmation, however i don't think its a good idea to be blaming anyone for these bugs, they are a natural occurrence during development and of course addition of new features. In any case could you please tell me how you ascertained the accumulating handles count, di

Problem with pthreads and signaling, behavior broken...

2003-12-07 Thread Arash Partow
firm my results it would be great, btw i used TaskInfo to view the win32 handles and memory usage. ThreadTest source code: http://www.partow.net/downloads/ThreadTest.zip 19th Nov SN-dll: http://www.partow.net/downloads/cygwin1-20031119.dll.bz2 Regards Arash Partow

Re: running out of memory

2003-11-12 Thread Arash Partow
Some aspects of the problem have been resolved, this may remedy your current problem. Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everythi

Re: Problem reading from COM1

2003-11-11 Thread Arash Partow
Hi, Cygwin provides a posix layer for interfacing with i/o devices, looking at this line you have written: $ stty -F /dev/com1 You need some more info about how serial i/o ports are described in a posix system, this page is a good resource: http://www.easysw.com/~mike/serial/serial.html Regards

Re: Segmentation fault with all c programs

2003-11-11 Thread Arash Partow
I tried your code, it compiles and runs ok, there is no problem! If i was you i would try the following: 1. make sure there is only 1 location on your pc where cygwin1.dll can be found, it should be cygwin/bin/cygwin1.dll + make sure you have the latest cygwin1.dll (1.5.5-1) 2. download the lat

New Pthread and Cygwin layer issues...

2003-11-10 Thread Arash Partow
code has been tested on other *nixs and it seems to be all ok. url for source code: http://www.partow.net/downloads/ThreadTest.zip To make type: make ThreadTest To run type: ./ThreadTest If you have any other question or comments please don't hestiste. Regards Arash Partow ___

RE: Stability Problem with Cygwin Pthreads

2003-11-02 Thread Arash Partow
rep < movsl movl ebx,ecx andl $3,ecx from what i can see the memcpy is moving data from esi to edi (ecx/4)'times (word blocks), however i don't think in the rep (REPZ) of the ecx ever gets to zero, or before it does it tries to copy data from a place which it does not have access to.

Re: Updated: gcc-3.3.1-3 - maybe broken....

2003-11-02 Thread Arash Partow
ve downloaded things again, and everything is A O K :D thanx for your help Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything about all

RE: Stability Problem with Cygwin Pthreads

2003-11-02 Thread Arash Partow
Hi Joost, I tested your program and found out that the crashes were in compiler generated code (especially in STL code). Upgrading to the latest version of everything (GCC in particular) solved everything for me without using any Cygwin snapshots. I've updated everything too, atm i'm using th

Re: Updated: gcc-3.3.1-3 - maybe broken....

2003-11-02 Thread Arash Partow
Hi, I've downloaded gcc-3.3.1-3, i think the build is broken, cause c\c++ code i was compiling with no problem with gcc3.3.1-2 can not be compiled anymore also alot of the headers can't be found ie: libs.h:35: fstream: No such file or directory libs.h:36: sstream: No such file or directory libs

Stability Problem with Cygwin Pthreads

2003-11-02 Thread Arash Partow
Hi All, This post is about cygwins pthreads. people following this issue will know there have been some stability issues with cygwin's pthreads and since last week A LOT of them have been resolved. Yet as more of these problems are resolved more problems in the same area. My issue is, I have compi

Re: pthread problem with latest cygwin dll snapshot

2003-10-29 Thread Arash Partow
e the same "referenced memory" location. I just thought this is rather strange. 1 thing though, did you try piping the stdout to tee? I found that doing that was a sure way of crashing it. Anywayz thanx heaps for the help so-far I'll get back to you after I get the building done

Re: pthread problem with latest cygwin dll snapshot

2003-10-28 Thread Arash Partow
be enough information for you to continue your debugging. I think the goal should be 5million threads being created, with other tasks also running in the background. If the ThreadTest can achive that level of stability, I wont bug this list anymore :) Regards Arash Partow PS: The updated versio

pthread problem with latest cygwin dll snapshot

2003-10-27 Thread Arash Partow
ich is more than what was happening before. Regards Arash Partow PS: Thanx to Ross Johnson's feed-back I've updated the Thread-Test's garbage collector to work a bit more efficiently than it did before. The source code can be downloaded from: http://www.partow.net/downloa

Update of ThreadTest for cygwin pthreads issue...

2003-10-23 Thread Arash Partow
implement pthread's latest specifications. If you have any question feel free to e-mail me. Regards Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know ev

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-22 Thread Arash Partow
sing this version of compiler+tool chains. I've done a google search for the term and mainly results releating to postings on the cygwin mailing list appear. this is the url: http://www.google.com.au/search?q=gcc+version+3.3.1+%28cygming+special%29&ie=UTF-8&oe=UTF-8&hl=en&me

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-22 Thread Arash Partow
to enter a command line argument of an integer, to tell the program how many threads you would like to have created. they are simple modifications but i think they will be worthwhile. BTW when do you think this new snapshot of cygwin will be made available? Regards Ar

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-22 Thread Arash Partow
Hi Ross, I'm using the Cygwin tool-chain and use the cygwin G++ (3.3.1 cygming special) to compile, hence ending up with the unix emulation layer. I don't use mingw32 cause of my porting requirements to *nixs. I've made the attr variable global within the class in its private section, however the

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-21 Thread Arash Partow
eadID,&attr,&(Thread::threadFunction),this); Arash Partow __ Be one who knows what they don't know, Instead of being one who knows not what they don't know, Thinking they know everything a

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-21 Thread Arash Partow
though i have come to the state you have mentioned above, I'm very interested in resolving this issue and possibily being able to contribute something back to the community. Any help will be appreciated Regards Arash Partow __ Be one who

Re: Serious problem with win32 pthreads crashing and c++ class

2003-10-21 Thread Arash Partow
Hi Robert, The prototype initially creates 700 threads all of which are contained in a vector (threadList), each thread does some "simple" string processing (basically tokenize a string) and then exists. On completion of the thread, the thread sets its own state in the thread-class to dead. Sou

Serious problem with win32 pthreads crashing and c++ class

2003-10-21 Thread Arash Partow
Hi All, I'm a long-time reader, first-time poster. I've been doing some work lately with posix threads, mainly trying to build a very simple c++ wrapper for Posix threads, and well have come up to a stumbling point on the win32 platform with a simple prototype i had built utilizing this c++ wrappe

Serious problem with win32 pthreads crashing and c++ class

2003-10-21 Thread Arash Partow
Hi All, I'm a long-time reader, first-time poster. I've been doing some work lately with posix threads, mainly trying to build a very simple c++ wrapper for Posix threads, and well have come up to a stumbling point on the win32 platform with a simple prototype i had built utilizing this c++ wrappe