malloc-bzero and /proc/pid/statm reading bug

Marco Atzeri marco_atzeri@yahoo.it
Sun Sep 12 21:30:00 GMT 2010


on the ngspice development list one of the developer
find a likely cygwin bug, see description an test case

--- Dom 12/9/10, Robert Larice  ha scritto:

> Hello All,
> 
>   I need some help with a cygwin Problem.
>   Trying to find a bug reported for ngspice,
>     I finally could boil the problem down
>     to what seems to be a plain cygwin bug.
> 
>   The attached very small C file, fails
>     after some iterations to open a
>     certain /proc/.. entry
> 
[cut]
> 
>   Here I get:
>      malloc -> 0x7fd30008
>      malloc -> 0x7fab0008
>      malloc -> 0x7f830008
>      malloc -> 0x7f470008
>      malloc -> 0x7f1f0008
>      malloc -> 0x7ef70008
>      /proc/3044/statm: No error
>      malloc -> 0x7ecf0008
>      /proc/3044/statm: No error
>      ...
> 
>   { No error, nevertheless means,
>      the thing can't be read ... }
> 
> Thanks,
>   Robert Larice

I checked and both 1.7.7 and the latest 20100912
show the issue.
Are we assuming something wrong and missing something else 
or is it a bzero bug ?

Marco



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t3.c
Type: text/x-csrc
Size: 947 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100912/964f320e/attachment.bin>
-------------- next part --------------
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list