<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8260739278874294486.post2036340855000166223..comments</id><updated>2011-11-01T10:43:34.432-07:00</updated><category term='meta-prog'/><category term='Python'/><category term='cvs'/><category term='java'/><category term='debugging'/><category term='jdk'/><category term='latex'/><category term='benchmark'/><category term='c'/><category term='beamer'/><category term='meta'/><category term='iphone'/><category term='OpenTSDB'/><category term='Sun'/><category term='TCP'/><category term='iTunes'/><category term='git'/><category term='bibtex'/><category term='Linux'/><category term='mac'/><category term='performance'/><category term='code'/><category term='Android'/><category term='profiling'/><category term='hardware'/><category term='svn'/><category term='MacPorts'/><title type='text'>Comments on Tsuna's blog: JVM u24 segfault in clearerr on Jaunty</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.tsunanet.net/feeds/2036340855000166223/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/2036340855000166223/comments/default'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/05/jvm-u24-segfault-in-clearerr-on-jaunty.html'/><author><name>Benoit Sigoure</name><uri>https://profiles.google.com/117435881756559768436</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-2eVJcyL_RNo/AAAAAAAAAAI/AAAAAAAAAAA/GWKq6sXj_VE/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8260739278874294486.post-1715786818696948740</id><published>2011-08-26T18:49:59.822-07:00</published><updated>2011-08-26T18:49:59.822-07:00</updated><title type='text'>I&amp;#39;m sure you&amp;#39;ve looked up clearerr() in gl...</title><content type='html'>I&amp;#39;m sure you&amp;#39;ve looked up clearerr() in glibc.&lt;br /&gt;The 2.14 version looks like this:&lt;br /&gt;&lt;br /&gt;void&lt;br /&gt;clearerr (fp)&lt;br /&gt;     FILE *fp;&lt;br /&gt;{&lt;br /&gt;  CHECK_FILE (fp, /*nothing*/);&lt;br /&gt;  _IO_flockfile (fp);&lt;br /&gt;  _IO_clearerr (fp);&lt;br /&gt;  _IO_funlockfile (fp);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Your analysis is correct, first magic is checked, then lock is held, flags cleared, and lock released.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve failed to find the definition of _IO_flockfile() in glibc&amp;#39;s sources though.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/2036340855000166223/comments/default/1715786818696948740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8260739278874294486/2036340855000166223/comments/default/1715786818696948740'/><link rel='alternate' type='text/html' href='http://blog.tsunanet.net/2011/05/jvm-u24-segfault-in-clearerr-on-jaunty.html?showComment=1314409799822#c1715786818696948740' title=''/><author><name>valenok</name><uri>http://www.blogger.com/profile/12662698957721880110</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.tsunanet.net/2011/05/jvm-u24-segfault-in-clearerr-on-jaunty.html' ref='tag:blogger.com,1999:blog-8260739278874294486.post-2036340855000166223' source='http://www.blogger.com/feeds/8260739278874294486/posts/default/2036340855000166223' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-196059617'/></entry></feed>
