<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-14255</id>
	<title>Nabble - uClibc</title>
	<updated>2009-12-02T21:15:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/uClibc-f14255.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/uClibc-f14255.html" />
	<subtitle type="html">&lt;a href=&quot;http://www.uclibc.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc&lt;/a&gt;&amp;nbsp;(aka µClibc/pronounced yew-see-lib-see) is a C library for developing embedded Linux systems. It is much smaller than the GNU C Library, but nearly all applications supported by glibc also work perfectly with uClibc.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26621614</id>
	<title>res_query() brain damage</title>
	<published>2009-12-02T21:15:18Z</published>
	<updated>2009-12-02T21:15:18Z</updated>
	<author>
		<name>Michael Deutschmann</name>
	</author>
	<content type="html">Recently, I've transitioned my routing computer over to uClibc. &amp;nbsp;It
&lt;br&gt;mostly works well, but I noticed some minor glitches with Exim (the mail
&lt;br&gt;server).
&lt;br&gt;&lt;br&gt;After some investigation, I traced the problem to uClibc's
&lt;br&gt;implementation of res_query, which contains the following:
&lt;br&gt;&lt;br&gt;--
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i = __dns_lookup(dname, type, __nameserversXX, [...]
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i &amp;lt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; h_errno = TRY_AGAIN;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return -1;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;--
&lt;br&gt;&lt;br&gt;This means that all negative DNS results get reported as temporary
&lt;br&gt;failures -- which confuses the mailserver. &amp;nbsp;It cares much about the
&lt;br&gt;difference between an ambiguous result due to failure and an definitive
&lt;br&gt;denial that a record exists.
&lt;br&gt;&lt;br&gt;The result is a lot of log messages complaining about tempfailing dnsbl
&lt;br&gt;blacklists (but fortunately no actual loss of their spam protection),
&lt;br&gt;and endless deferral of email coming from domains with no MX record.
&lt;br&gt;&lt;br&gt;Diking the &amp;quot;h_errno = TRY_AGAIN;&amp;quot; line appears to resolve the problem.
&lt;br&gt;(h_errno is set properly from within __dns_lookup.)
&lt;br&gt;&lt;br&gt;Were this a complicated emergent behavior of the library, I'd just
&lt;br&gt;report it via the bug tracker. &amp;nbsp;However, this looks like it was
&lt;br&gt;deliberate -- so I'm bringing it to the list for comment.
&lt;br&gt;&lt;br&gt;---- Michael Deutschmann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621614&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;michael@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26621614&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/res_query%28%29-brain-damage-tp26621614p26621614.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610174</id>
	<title>Re: nptl branch going away, use nptl_merge</title>
	<published>2009-12-02T06:52:24Z</published>
	<updated>2009-12-02T06:52:24Z</updated>
	<author>
		<name>Carmelo AMOROSO-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Rob Landley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Monday 23 November 2009 12:14:07 Austin Foxley wrote:
&lt;br&gt;&amp;gt;&amp;gt; On 11/23/2009 01:23 AM, Bernhard Reutner-Fischer wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Good idea.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Is there something preventing a rename of nptl_merge -&amp;gt; nptl now?
&lt;br&gt;&amp;gt;&amp;gt; Done. nptl_merge is now nptl.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -Austin
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Confused. &amp;nbsp;I'm testing via:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; git archive --prefix=uClibc/ origin/nptl_merge | bzip2 &amp;gt; ~/test-uClibc.tar.bz2
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I just did a &amp;quot;git pull&amp;quot;, followed by &amp;quot;git branch -a&amp;quot;, and it shows:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; * master
&lt;br&gt;&amp;gt; &amp;nbsp; origin/0_9_28
&lt;br&gt;&amp;gt; &amp;nbsp; origin/0_9_29
&lt;br&gt;&amp;gt; &amp;nbsp; origin/0_9_30
&lt;br&gt;&amp;gt; &amp;nbsp; origin/HEAD
&lt;br&gt;&amp;gt; &amp;nbsp; origin/master
&lt;br&gt;&amp;gt; &amp;nbsp; origin/nptl
&lt;br&gt;&amp;gt; &amp;nbsp; origin/nptl_merge
&lt;br&gt;&amp;gt; &amp;nbsp; origin/old_nptl
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't know which branch is what at this point. &amp;nbsp;I take it the easy way to fix 
&lt;br&gt;&amp;gt; this is to &amp;quot;rm -rf ~/uclibc/git&amp;quot; and re-check-out the whole mess?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Rob
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (I really hate git.)
&lt;/div&gt;&lt;br&gt;#git remote prune origin
&lt;br&gt;&lt;br&gt;will do the work for you. Use --dry-run to see what it will prune without
&lt;br&gt;actually pruning. Hope it helps.
&lt;br&gt;&lt;br&gt;Carmelo
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Fedora - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksWfygACgkQoRq/3BrK1s831gCg+govUEgDLfQao8q5LPP9UDKf
&lt;br&gt;CNcAoJYOTzUkUtmghU0QkMGQZQdch2xa
&lt;br&gt;=1lMT
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610174&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nptl-branch-going-away%2C-use-nptl_merge-tp26469000p26610174.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26609800</id>
	<title>Re: building static busybox/toybox with uclibc-nptl</title>
	<published>2009-12-02T06:29:47Z</published>
	<updated>2009-12-02T06:29:47Z</updated>
	<author>
		<name>Austin Foxley-3</name>
	</author>
	<content type="html">On 12/02/2009 12:58 AM, Natanael Copa wrote:
&lt;br&gt;&amp;gt; /home/ncopa/src/firmware-0.9.8/build/root-filesystem-i586/usr/lib/libc.a(fork.os): In function `fork':
&lt;br&gt;&amp;gt; fork.c:(.text.__libc_fork+0xf5): undefined reference to `pthread_mutexattr_init'
&lt;br&gt;&amp;gt; fork.c:(.text.__libc_fork+0xfd): undefined reference to `pthread_mutexattr_settype'
&lt;br&gt;&amp;gt; fork.c:(.text.__libc_fork+0x114): undefined reference to `pthread_mutex_init'
&lt;br&gt;&amp;gt; fork.c:(.text.__libc_fork+0x125): undefined reference to `pthread_mutexattr_destroy'
&lt;br&gt;&lt;br&gt;Try turning on &amp;quot;Use stdio futexes&amp;quot;. It's under string support for some reason. I 
&lt;br&gt;was hoping to make that the default as it makes libc not need pthread_mutex.
&lt;br&gt;&lt;br&gt;-Austin
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26609800&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/building-static-busybox-toybox-with-uclibc-nptl-tp26605536p26609800.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26605536</id>
	<title>building static busybox/toybox with uclibc-nptl</title>
	<published>2009-12-02T00:57:51Z</published>
	<updated>2009-12-02T00:57:51Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm trying to build a native toolchain for x86 uclibc-nptl, using
&lt;br&gt;firmwarelinux.
&lt;br&gt;&lt;br&gt;So for I have needed to disable the rpc stuff in uclibc and mount in
&lt;br&gt;busybox to be able to build it.
&lt;br&gt;&lt;br&gt;However, during linking phase, I get this error:
&lt;br&gt;&lt;br&gt;==========
&lt;br&gt;archival/lib.a(bbunzip.o): In function `bbunpack':
&lt;br&gt;archival/bbunzip.c:116: warning: the use of OBSOLESCENT `utime' is discouraged, use `utimes'
&lt;br&gt;networking/lib.a(ipcalc.o): In function `ipcalc_main':
&lt;br&gt;networking/ipcalc.c:179: warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
&lt;br&gt;libbb/lib.a(inet_common.o): In function `INET_resolve':
&lt;br&gt;libbb/inet_common.c:68: warning: gethostbyname is obsolescent, use getnameinfo() instead.
&lt;br&gt;/home/ncopa/src/firmware-0.9.8/build/root-filesystem-i586/usr/lib/libc.a(fork.os): In function `fork':
&lt;br&gt;fork.c:(.text.__libc_fork+0xf5): undefined reference to `pthread_mutexattr_init'
&lt;br&gt;fork.c:(.text.__libc_fork+0xfd): undefined reference to `pthread_mutexattr_settype'
&lt;br&gt;fork.c:(.text.__libc_fork+0x114): undefined reference to `pthread_mutex_init'
&lt;br&gt;fork.c:(.text.__libc_fork+0x125): undefined reference to `pthread_mutexattr_destroy'
&lt;br&gt;make: *** [busybox_unstripped] Error 1
&lt;br&gt;&lt;br&gt;I get same error with toybox.
&lt;br&gt;&lt;br&gt;If i force it to link dynamic it works.
&lt;br&gt;&lt;br&gt;-nc
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26605536&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/building-static-busybox-toybox-with-uclibc-nptl-tp26605536p26605536.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26589510</id>
	<title>sh: SHMLBA &amp; cache shape info from auxvt</title>
	<published>2009-12-01T02:17:48Z</published>
	<updated>2009-12-01T02:17:48Z</updated>
	<author>
		<name>Carmelo AMOROSO-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Hi All, Paul
&lt;br&gt;we are adding the code in uClibc ld.so to retrieve the value
&lt;br&gt;of shm_alignment from the cache shape info passed to the user space
&lt;br&gt;through the AUXVT for sh arch.
&lt;br&gt;&lt;br&gt;Currently in bits/shm.h we have
&lt;br&gt;&lt;br&gt;/* Segment low boundary address multiple. &amp;nbsp;*/
&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* XXX: This is misleading, SH-4 and SH-3 7705 in 32kb mode have dcache
&lt;br&gt;&amp;nbsp;* aliases to contend with in the 4k page case. This is not an issue for
&lt;br&gt;&amp;nbsp;* the other parts. Leave this bumped up for sanity until this can be
&lt;br&gt;&amp;nbsp;* accurately defined by the L1D shape through the auxiliary vector.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;#define SHMLBA &amp;nbsp; &amp;nbsp; &amp;nbsp;(__getpagesize() &amp;lt;&amp;lt; 2)
&lt;br&gt;&lt;br&gt;The comment (I guess Paul added) is definitely clear.
&lt;br&gt;&lt;br&gt;We would like to have something like that
&lt;br&gt;&lt;br&gt;#define SHMLBA &amp;nbsp; &amp;nbsp; &amp;nbsp;__get_shm_alignment()
&lt;br&gt;&lt;br&gt;but this will add a reference to a new function into any binaries
&lt;br&gt;compiled using the new header that will not work with older runtime libraries
&lt;br&gt;(not a major problem because header and libraries should be always aligned).
&lt;br&gt;&lt;br&gt;My doubt is it is allowed to add/export a new function in lib C that is not
&lt;br&gt;part of the POSIX API.
&lt;br&gt;&lt;br&gt;Another option could be to remap the macro with sysconf, so
&lt;br&gt;&lt;br&gt;#define SHMLBA &amp;nbsp; &amp;nbsp; &amp;nbsp;sysconf(_SC_SHM_ALIGNMENT)
&lt;br&gt;&lt;br&gt;or something like that, but also in this case we need to export a new
&lt;br&gt;sysconf name in bits/confname.h; is this allowed ?
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Carmelo
&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Fedora - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksU7UwACgkQoRq/3BrK1s/cZQCeME4hljRMipGGlN8Gpi1hdZd5
&lt;br&gt;IXAAnA1U9XGq6Q9R3nMLk06pRe7Ca3gS
&lt;br&gt;=dwqq
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26589510&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/sh%3A-SHMLBA---cache-shape-info-from-auxvt-tp26589510p26589510.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26568548</id>
	<title>Re: bugs in malloc</title>
	<published>2009-11-29T17:52:12Z</published>
	<updated>2009-11-29T17:52:12Z</updated>
	<author>
		<name>Sergio M. Ammirata, Ph.D.</name>
	</author>
	<content type="html">Hello Peter,
&lt;br&gt;&lt;br&gt;Unfortunately, my 0.9.28 build is using 0.9.28.3 and the changes you
&lt;br&gt;mentioned are there and the crash is not happening. It has to be something
&lt;br&gt;else.
&lt;br&gt;&lt;br&gt;Thanks for the info.
&lt;br&gt;&lt;br&gt;Sergio
&lt;br&gt;&lt;br&gt;On 11/26/09 1:34 PM, &amp;quot;Peter Mazinger&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ps.m@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; it might also be a mutex/threads issue, I know of a bug introduced somewhere
&lt;br&gt;&amp;gt; between 0.9.28 and 0.9.28.2 iirc, it is in uClibc_mutex.h. One of the macros
&lt;br&gt;&amp;gt; does not check for a case = NULL, I reported this to the committer and the
&lt;br&gt;&amp;gt; maintainer at that time. To test if I am right, replace
&lt;br&gt;&amp;gt; __UCLIBC_MUTEX_CONDITIONAL_LOCK(M,C) and UNLOCK with their counterparts
&lt;br&gt;&amp;gt; __UCLIBC_MUTEX_[UN]LOCK_CANCEL_UNSAFE(M), rebuild uClibc and then your app.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Peter
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -------- Original-Nachricht --------
&lt;br&gt;&amp;gt;&amp;gt; Datum: Tue, 24 Nov 2009 07:14:36 -0500
&lt;br&gt;&amp;gt;&amp;gt; Von: &amp;quot;Sergio M. Ammirata, Ph.D.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sergio@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; An: Freeman Wang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xwang@...&lt;/a&gt;&amp;gt;, Mike Frysinger &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;&amp;gt;,
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uclibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; Betreff: Re: bugs in malloc
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; If it helps, I am also experiences crashes in malloc. They did not occur
&lt;br&gt;&amp;gt;&amp;gt; in
&lt;br&gt;&amp;gt;&amp;gt; 0.9.28. Here is a sample backtrace:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Program terminated with signal 11, Segmentation fault.
&lt;br&gt;&amp;gt;&amp;gt; [New process 1788]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1752]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1784]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1783]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1789]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1791]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1787]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1785]
&lt;br&gt;&amp;gt;&amp;gt; [New process 1786]
&lt;br&gt;&amp;gt;&amp;gt; #0 &amp;nbsp;0x3782e44a in __malloc_from_heap (size=506916, heap=0x37870bd8,
&lt;br&gt;&amp;gt;&amp;gt; heap_lock=0x37874e3c) at libc/stdlib/malloc/malloc.c:184
&lt;br&gt;&amp;gt;&amp;gt; 184 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mem = MALLOC_SETUP (mem, size);
&lt;br&gt;&amp;gt;&amp;gt; (gdb) bt
&lt;br&gt;&amp;gt;&amp;gt; #0 &amp;nbsp;0x3782e44a in __malloc_from_heap (size=506916, heap=0x37870bd8,
&lt;br&gt;&amp;gt;&amp;gt; heap_lock=0x37874e3c) at libc/stdlib/malloc/malloc.c:184
&lt;br&gt;&amp;gt;&amp;gt; #1 &amp;nbsp;0x3782e53c in malloc (size=506912) at libc/stdlib/malloc/malloc.c:223
&lt;br&gt;&amp;gt;&amp;gt; #2 &amp;nbsp;0x3782eb10 in memalign (alignment=16, size=506880) at
&lt;br&gt;&amp;gt;&amp;gt; libc/stdlib/malloc/memalign.c:48
&lt;br&gt;&amp;gt;&amp;gt; #3 &amp;nbsp;0x08083fd1 in __vout_AllocatePicture (p_this=0x8d74f6c,
&lt;br&gt;&amp;gt;&amp;gt; p_pic=0x9a1a048,
&lt;br&gt;&amp;gt;&amp;gt; i_chroma=808596553, i_width=704, i_height=480, i_aspect=576000) at
&lt;br&gt;&amp;gt;&amp;gt; video_output/vout_pictures.c:515
&lt;br&gt;&amp;gt;&amp;gt; #4 &amp;nbsp;0x373bdacf in video_new_buffer (p_this=0x8d74f6c, pp_ring=0x8893868,
&lt;br&gt;&amp;gt;&amp;gt; p_sys=0x8885680) at transcode.c:2499
&lt;br&gt;&amp;gt;&amp;gt; #5 &amp;nbsp;0x08144ed4 in DecodeBlock (p_dec=0x8d74f6c, pp_block=0x3efff89c) at
&lt;br&gt;&amp;gt;&amp;gt; libmpeg2.c:604
&lt;br&gt;&amp;gt;&amp;gt; #6 &amp;nbsp;0x373c026d in Send (p_stream=0x887f6c8, id=0x8892bf8,
&lt;br&gt;&amp;gt;&amp;gt; p_buffer=0xcf0bec0) at transcode.c:2030
&lt;br&gt;&amp;gt;&amp;gt; #7 &amp;nbsp;0x373e00a6 in Send (p_stream=0x887e32c, id=0x8892bd0,
&lt;br&gt;&amp;gt;&amp;gt; p_buffer=0xcf0bec0) at duplicate.c:277
&lt;br&gt;&amp;gt;&amp;gt; #8 &amp;nbsp;0x0809182c in sout_InputSendBuffer (p_input=0x8892bc0,
&lt;br&gt;&amp;gt;&amp;gt; p_buffer=0xcf0bec0) at stream_output/stream_output.c:279
&lt;br&gt;&amp;gt;&amp;gt; #9 &amp;nbsp;0x080d31e8 in DecoderDecode (p_dec=0x88a91bc, p_block=0xd232f28) at
&lt;br&gt;&amp;gt;&amp;gt; input/decoder.c:579
&lt;br&gt;&amp;gt;&amp;gt; #10 0x080d70ac in EsOutSend (out=0x887b21c, es=0x88a6e08,
&lt;br&gt;&amp;gt;&amp;gt; p_block=0xd232f28)
&lt;br&gt;&amp;gt;&amp;gt; at input/es_out.c:1107
&lt;br&gt;&amp;gt;&amp;gt; #11 0x080ffed9 in ParsePES (p_demux=0x8890c64, pid=0x999cf10) at
&lt;br&gt;&amp;gt;&amp;gt; ../../include/vlc_es_out.h:109
&lt;br&gt;&amp;gt;&amp;gt; #12 0x08101a58 in Demux (p_demux=0x8890c64) at ts.c:1927
&lt;br&gt;&amp;gt;&amp;gt; #13 0x08073a6f in MainLoop (p_input=0x8882170) at input/input.c:538
&lt;br&gt;&amp;gt;&amp;gt; #14 0x08074b17 in Run (p_input=0x8882170) at input/input.c:444
&lt;br&gt;&amp;gt;&amp;gt; #15 0x378b3136 in pthread_start_thread (arg=0x3efffea0) at
&lt;br&gt;&amp;gt;&amp;gt; libpthread/linuxthreads.old/manager.c:309
&lt;br&gt;&amp;gt;&amp;gt; #16 0x377c2c12 in clone () at libc/sysdeps/linux/i386/clone.S:106
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; The crash happens in different parts of the application but it is always a
&lt;br&gt;&amp;gt;&amp;gt; malloc crash. 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; Sergio M. Ammirata, Ph.D.
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On 11/24/09 2:16 AM, &amp;quot;Freeman Wang&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xwang@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Mike
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; An example may be better to show what we thought.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Say, we already have a mmb list of three blocks M1 --&amp;gt; M2 --&amp;gt; M3. Now a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; heap request comes in for an 8k buffer. The heap is extended using mmap
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; and we iterate through the list and find the new block descriptor,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new_mmb, should be added after M3. *** Now we try to allocate new_mmb
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; from the mmb_heap and find mmb_heap needs to be extended too *** So a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new mmap syscall is made to extend the mmb_heap, and again the new block
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; needs a descriptor also from the mmb_heap. Again we iterated through the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; existing list, and find this new_mmb_2 should be added after M3 too !!!.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; We then try to allocate new_mmb_2 and it should succeed because the mmap
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; usually gives us at least a page and it has been added to the mmb_heap.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; When the allocation of the first new_mmb returns, the list has already
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; been updated to M1 --&amp;gt; M2 --&amp;gt; M3 --&amp;gt; M4_2, but we do not know, so M4_1
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will be still added after M3.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; That's just one of the possible ways the current code could mess up.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Depending on where the two blocks are located, things could go wild and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the link list be totally destroyed. However, if we make the allocation
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; before going through the mmb list, we will be able to make sure the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; new_mmb structure is added properly.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Freeman
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; From: Mike Frysinger [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;]
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Sent: Monday, November 23, 2009 7:42 PM
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uclibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cc: Freeman Wang
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Subject: Re: bugs in malloc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; On Monday 23 November 2009 14:55:26 Freeman Wang wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 1. We found with some special application, the application would get
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; stuck at line 162 of malloc.c and the reason was mem-&amp;gt;next points back
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; to itself.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; please try to reduce the allocation patterns of your 'special'
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; application. &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; it should be easy to enable debugging and capture the malloc/free
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; sequences and run them again manually.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It turns out, we believe, to be because new_mmb is allocated after the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mmb list is iterated throught to find the insertion point. When the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mmb_heap also runs out and needs to be extended when the regular heap
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; is just extended, the mmb list could be messed up. We moved the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; new_mmb allocation up and the problem seems to have been fixed.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; i dont see why the current code is a problem. &amp;nbsp;it's a singly linked list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; which means if the list is walked to the end, the new_mmb will be
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 'inserted' as the last item in the linked list. &amp;nbsp;prev_mmb points to the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; last valid entry in the list and mmb is null. &amp;nbsp;so the last valid entry
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; will be updated to point to new_mmb and it will have its next member set
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; to null. &amp;nbsp;i dont see any place where the mmb list 'could be messed up'.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if you look a few lines up, the recursive memory-full-issue should
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; already be handled because a mmap for more memory is done, and that mmap
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; is put into the heap by the heap free call.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 2. While trying to fix the above issue, we read the code and found a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; multi-threading issue with this mmb list handling. Th'is list is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; halfway protected in free.c and not protected by any lock at all in
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; malloc.c. Is it intentional?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; looks like the locking fixes we have in the blackfin tree werent pushed
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; upstream. &amp;nbsp;i'll have to rebase them first, but it should at least
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; partially cover what you see. &amp;nbsp;if it doesnt, i'll stitch in your pieces.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; 3. In an embedded world without MMU, it is not garanteed that the mmap
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; syscall would always get back a valid block, and that's probably why
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; the return value, block, is checked immediately after the syscall. But
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it seems we are not checking the return value of new_mmb which is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; allocated from the mmb_heap? Is it a potential issue?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; you have no guarantee of mmap returning valid memory under a mmu-system
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; either. &amp;nbsp;typically an oom situation will have an application crash
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; quickly, so this particular missing check isnt a big deal, but it should
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; probably still be added. &amp;nbsp;i imagine in a threaded situation, one thread
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; could grab the fresh memory before the original thread got a chance to
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; use it and thus got null back.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -mike
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; uClibc mailing list
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; uClibc mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26568548&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bugs-in-malloc-tp26486367p26568548.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26556826</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-28T12:44:02Z</published>
	<updated>2009-11-28T12:44:02Z</updated>
	<author>
		<name>Kevin Day-4</name>
	</author>
	<content type="html">On Sat, Nov 28, 2009 at 1:29 AM, Rob Landley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556826&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Saturday 28 November 2009 01:06:30 Kevin Day wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Fri, Nov 27, 2009 at 2:45 PM, Rob Landley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556826&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; On Friday 27 November 2009 11:45:50 Kevin Day wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; noticed:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;         if (packet)
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;                 free(packet);
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; From the Single Unix Specification version 4 (I.E. SUSv4, I.E. POSIX
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; 2008):
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;  &lt;a href=&quot;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;  &amp;gt; If ptr is a null pointer, no action shall occur.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I.E. free() has a null check built-in, as required by POSIX.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Rob
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Latency is more important than throughput. It's that simple. - Linus
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Torvalds
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; So you are saying a double-free cannot happen here?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm saying that freeing a NULL pointer is a NOP, so testing for NULL before
&lt;br&gt;&amp;gt; calling free() is a waste of bytes.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; What does a double-free have to do with this?  If the pointer is NULL, then
&lt;br&gt;&amp;gt; there's nothing to free.  If the pointer isn't NULL, the test isn't relevant.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Legal (and pointless) code:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; void does_nothing(void)
&lt;br&gt;&amp;gt; {
&lt;br&gt;&amp;gt;  x=NULL;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  free(x);
&lt;br&gt;&amp;gt;  free(x);
&lt;br&gt;&amp;gt;  free(x);
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Rob
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;Don't worry, that part is not being misunderstood.
&lt;br&gt;What I was saying is that:
&lt;br&gt;&lt;br&gt;x = malloc(sizeof(int));
&lt;br&gt;free(x);
&lt;br&gt;free(x); &amp;lt;-- bad
&lt;br&gt;&lt;br&gt;the fact that somebody was doing a test to see if the pointer was NULL
&lt;br&gt;before freeing it suggested to me that somebody with the older uClibc
&lt;br&gt;version believed a double free would be possible at this point in the
&lt;br&gt;code.
&lt;br&gt;&lt;br&gt;Seeing the if(x)'s removed triggered my habits and I forgot (because I
&lt;br&gt;drilled the some habits into myself) that your free's do not set x to
&lt;br&gt;NULL after freeing it.
&lt;br&gt;&lt;br&gt;Your previous post already defined that the if (pointer) was being
&lt;br&gt;removed to save space as it is safe to do so.
&lt;br&gt;Once I realized that I had my habits being applied to my thought
&lt;br&gt;process, I realized that my statement was not relevant.
&lt;br&gt;Thus my immediate second post stating at the start &amp;quot;Never mind..&amp;quot;
&lt;br&gt;&lt;br&gt;And for the record, I precede my free's with if (x) to avoid extra
&lt;br&gt;function calls as I suspect doing an if () test is resourcefully
&lt;br&gt;cheaper than doing a function call. Though I never bothered to try and
&lt;br&gt;prove it..
&lt;br&gt;However, this is uClibc and one of your goals is to save binary space.
&lt;br&gt;This is why I didn't bother continuing the discussion on the if () part.
&lt;br&gt;Again, I forgot this because I had drilled these habits into myself.
&lt;br&gt;It was simply me forgetting why I did something and reacting instinctively.
&lt;br&gt;&lt;br&gt;And so I try to conclude again with, never mind.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Day
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556826&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26556826.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26551030</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T23:29:37Z</published>
	<updated>2009-11-27T23:29:37Z</updated>
	<author>
		<name>Rob Landley</name>
	</author>
	<content type="html">On Saturday 28 November 2009 01:06:30 Kevin Day wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Nov 27, 2009 at 2:45 PM, Rob Landley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26551030&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Friday 27 November 2009 11:45:50 Kevin Day wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; noticed:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (packet)
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free(packet);
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; From the Single Unix Specification version 4 (I.E. SUSv4, I.E. POSIX
&lt;br&gt;&amp;gt; &amp;gt; 2008):
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&lt;a href=&quot;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;&amp;gt; If ptr is a null pointer, no action shall occur.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I.E. free() has a null check built-in, as required by POSIX.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Rob
&lt;br&gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt; &amp;gt; Latency is more important than throughput. It's that simple. - Linus
&lt;br&gt;&amp;gt; &amp;gt; Torvalds
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So you are saying a double-free cannot happen here?
&lt;/div&gt;&lt;br&gt;I'm saying that freeing a NULL pointer is a NOP, so testing for NULL before 
&lt;br&gt;calling free() is a waste of bytes.
&lt;br&gt;&lt;br&gt;What does a double-free have to do with this? &amp;nbsp;If the pointer is NULL, then 
&lt;br&gt;there's nothing to free. &amp;nbsp;If the pointer isn't NULL, the test isn't relevant.
&lt;br&gt;&lt;br&gt;Legal (and pointless) code:
&lt;br&gt;&lt;br&gt;void does_nothing(void)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; x=NULL;
&lt;br&gt;&lt;br&gt;&amp;nbsp; free(x);
&lt;br&gt;&amp;nbsp; free(x);
&lt;br&gt;&amp;nbsp; free(x);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;-- 
&lt;br&gt;Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26551030&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26551030.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550989</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T23:19:58Z</published>
	<updated>2009-11-27T23:19:58Z</updated>
	<author>
		<name>Kevin Day-4</name>
	</author>
	<content type="html">On Sat, Nov 28, 2009 at 1:06 AM, Kevin Day &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550989&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thekevinday@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, Nov 27, 2009 at 2:45 PM, Rob Landley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550989&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; On Friday 27 November 2009 11:45:50 Kevin Day wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and noticed:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;         if (packet)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;                 free(packet);
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; From the Single Unix Specification version 4 (I.E. SUSv4, I.E. POSIX 2008):
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;  &lt;a href=&quot;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;  &amp;gt; If ptr is a null pointer, no action shall occur.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I.E. free() has a null check built-in, as required by POSIX.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Rob
&lt;br&gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So you are saying a double-free cannot happen here?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Kevin Day
&lt;br&gt;&amp;gt;
&lt;/div&gt;Never mind, I just remember that I have habits and practices that I
&lt;br&gt;have engraved into myself such that I forget the internal details
&lt;br&gt;sometimes.
&lt;br&gt;&lt;br&gt;I generally have a free(..) wrapper that frees the pointer and then
&lt;br&gt;sets the pointer to null so that the double free doesn't happen. And
&lt;br&gt;then out of what I would call paranoia practice I always wrap them in
&lt;br&gt;if (pointer) anyway.
&lt;br&gt;&lt;br&gt;So my concern was if those pointers were freed already and if they
&lt;br&gt;were being set to NULL after they were being freed to prevent double
&lt;br&gt;frees.
&lt;br&gt;&lt;br&gt;Sorry for the double post, it just popped into my mind after I hit the
&lt;br&gt;send button.
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Day
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550989&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26550989.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26550949</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T23:06:30Z</published>
	<updated>2009-11-27T23:06:30Z</updated>
	<author>
		<name>Kevin Day-4</name>
	</author>
	<content type="html">On Fri, Nov 27, 2009 at 2:45 PM, Rob Landley &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550949&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Friday 27 November 2009 11:45:50 Kevin Day wrote:
&lt;br&gt;&amp;gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and noticed:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt;&amp;gt;         if (packet)
&lt;br&gt;&amp;gt;&amp;gt;                 free(packet);
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; From the Single Unix Specification version 4 (I.E. SUSv4, I.E. POSIX 2008):
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  &lt;a href=&quot;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  &amp;gt; If ptr is a null pointer, no action shall occur.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I.E. free() has a null check built-in, as required by POSIX.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Rob
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;So you are saying a double-free cannot happen here?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Day
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26550949&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26550949.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26547584</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T12:45:49Z</published>
	<updated>2009-11-27T12:45:49Z</updated>
	<author>
		<name>Rob Landley</name>
	</author>
	<content type="html">On Friday 27 November 2009 11:45:50 Kevin Day wrote:
&lt;br&gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and noticed:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (packet)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free(packet);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&lt;br&gt;&amp;gt;From the Single Unix Specification version 4 (I.E. SUSv4, I.E. POSIX 2008):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &lt;a href=&quot;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.opengroup.org/onlinepubs/9699919799/functions/free.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;gt; If ptr is a null pointer, no action shall occur.
&lt;br&gt;&lt;br&gt;I.E. free() has a null check built-in, as required by POSIX.
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;-- 
&lt;br&gt;Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26547584&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26547584.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26546062</id>
	<title>Re: [PATCH 0/3] Fixes for hardened/nptl</title>
	<published>2009-11-27T10:14:13Z</published>
	<updated>2009-11-27T10:14:13Z</updated>
	<author>
		<name>Austin Foxley-3</name>
	</author>
	<content type="html">On 11/27/2009 08:12 AM, Natanael Copa wrote:
&lt;br&gt;&amp;gt; Various fixes to make nptl work on hardened toolchain. Tested with simple
&lt;br&gt;&amp;gt; pthreaded hello world.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Those are for nptl branch.
&lt;br&gt;&lt;br&gt;Thanks! Applied.
&lt;br&gt;&lt;br&gt;-Austin
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26546062&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-3--Fixes-for-hardened-nptl-tp26545656p26546062.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545959</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T10:05:08Z</published>
	<updated>2009-11-27T10:05:08Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">On 11/27/09, Kevin Day &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545959&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;thekevinday@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;...
&lt;br&gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (packet)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free(packet);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&lt;br&gt;Explained in the commit message:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://git.uclibc.org/uClibc/commit/?id=9e5250dae08a1601c3c7c82d9128613d7c22dd84&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://git.uclibc.org/uClibc/commit/?id=9e5250dae08a1601c3c7c82d9128613d7c22dd84&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Natanael Copa
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545959&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26545959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545972</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T10:04:05Z</published>
	<updated>2009-11-27T10:04:05Z</updated>
	<author>
		<name>Joakim Tjernlund-2</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Fri, Nov 27, 2009 at 7:10 AM, Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545972&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; On Fri, 2009-11-27 at 12:31 +0000, Natanael Copa wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; This fixes an issue when a CNAME was returned for an A query.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Garbage was returned.
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; Postfix was affected of this.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; FWIW, this patch is also a candidate for 0_9_30 tree.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -nc
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I was looking at uClibc 0.9.28.3 to try and apply this patch and noticed:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; At the very end of your patch, the untouched code only has
&lt;br&gt;&amp;gt; free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (packet)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free(packet);
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does anybody know why was this safety check removed?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Looking at the top portion of both your patch (again at the untouched
&lt;br&gt;&amp;gt; code portion of the patch) and 0.9.28.3 code, they are both calling
&lt;br&gt;&amp;gt; free(a.dotted); without checking it as well.
&lt;br&gt;&amp;gt; Is there a reason for not doing this?
&lt;br&gt;&amp;gt; I am imagining segfaults here if the memory does not get allocated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you are talking about saving space by not using the &amp;quot;if (pointer)
&lt;br&gt;&amp;gt; free(pointer)&amp;quot; practice, isn't this optimized away by gcc's
&lt;br&gt;&amp;gt; delete-null-pointer-checks flag for the cases where it IS safe to
&lt;br&gt;&amp;gt; remove?
&lt;/div&gt;&lt;br&gt;free(NULL) is a NOP and it is required to be. Checking
&lt;br&gt;for NULL before free() is a waste. Just do man 3 free
&lt;br&gt;&lt;br&gt;&amp;nbsp;Jocke
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545972&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26545972.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545756</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T09:45:50Z</published>
	<updated>2009-11-27T09:45:50Z</updated>
	<author>
		<name>Kevin Day-4</name>
	</author>
	<content type="html">On Fri, Nov 27, 2009 at 7:10 AM, Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545756&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Fri, 2009-11-27 at 12:31 +0000, Natanael Copa wrote:
&lt;br&gt;&amp;gt;&amp;gt; This fixes an issue when a CNAME was returned for an A query.
&lt;br&gt;&amp;gt;&amp;gt; Garbage was returned.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Postfix was affected of this.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; FWIW, this patch is also a candidate for 0_9_30 tree.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -nc
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I was looking at uClibc 0.9.28.3 to try and apply this patch and noticed:
&lt;br&gt;&lt;br&gt;At the very end of your patch, the untouched code only has
&lt;br&gt;free(packet); while 0.9.28.3 has:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (packet)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; free(packet);
&lt;br&gt;&lt;br&gt;Does anybody know why was this safety check removed?
&lt;br&gt;&lt;br&gt;Looking at the top portion of both your patch (again at the untouched
&lt;br&gt;code portion of the patch) and 0.9.28.3 code, they are both calling
&lt;br&gt;free(a.dotted); without checking it as well.
&lt;br&gt;Is there a reason for not doing this?
&lt;br&gt;I am imagining segfaults here if the memory does not get allocated.
&lt;br&gt;&lt;br&gt;If you are talking about saving space by not using the &amp;quot;if (pointer)
&lt;br&gt;free(pointer)&amp;quot; practice, isn't this optimized away by gcc's
&lt;br&gt;delete-null-pointer-checks flag for the cases where it IS safe to
&lt;br&gt;remove?
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Kevin Day
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545756&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26545756.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545662</id>
	<title>[PATCH 3/3] PIC fixes for hardened</title>
	<published>2009-11-27T08:12:44Z</published>
	<updated>2009-11-27T08:12:44Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">From: Timo Teräs &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545662&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;timo.teras@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Signed-off-by: Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545662&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;libpthread/nptl/sysdeps/pthread/Makefile.in &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;4 ++--
&lt;br&gt;&amp;nbsp;.../sysdeps/unix/sysv/linux/i386/Makefile.arch &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 ++++---
&lt;br&gt;&amp;nbsp;.../sysdeps/unix/sysv/linux/i386/lowlevellock.h &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;6 ++++--
&lt;br&gt;&amp;nbsp;3 files changed, 10 insertions(+), 7 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/libpthread/nptl/sysdeps/pthread/Makefile.in b/libpthread/nptl/sysdeps/pthread/Makefile.in
&lt;br&gt;index 2a82532..4524015 100644
&lt;br&gt;--- a/libpthread/nptl/sysdeps/pthread/Makefile.in
&lt;br&gt;+++ b/libpthread/nptl/sysdeps/pthread/Makefile.in
&lt;br&gt;@@ -23,8 +23,8 @@ libpthread_CSRC = pthread_barrier_wait.c pthread_cond_broadcast.c	\
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;ifeq ($(TARGET_ARCH),i386)
&lt;br&gt;&amp;nbsp;X86_PTHREAD_EXCLUDE_LIST = pthread_spin_unlock.c pthread_spin_init.c \
&lt;br&gt;-		pthread_cond_wait.c pthread_barrier_wait.c pthread_cond_broadcast.c	\
&lt;br&gt;-		pthread_cond_signal.c pthread_cond_timedwait.c pthread_rwlock_timedrdlock.c	\
&lt;br&gt;+		pthread_barrier_wait.c pthread_cond_broadcast.c	\
&lt;br&gt;+		pthread_cond_signal.c pthread_rwlock_timedrdlock.c	\
&lt;br&gt;&amp;nbsp;		pthread_rwlock_timedwrlock.c pthread_rwlock_unlock.c pthread_rwlock_wrlock.c \
&lt;br&gt;&amp;nbsp;		pthread_rwlock_rdlock.c
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
&lt;br&gt;index 06c0bd8..740ee7f 100644
&lt;br&gt;--- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
&lt;br&gt;+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
&lt;br&gt;@@ -15,9 +15,10 @@ libc_a_CSRC = fork.c
&lt;br&gt;&amp;nbsp;libc_a_SSRC = clone.S vfork.S
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;libpthread_SSRC += i486/lowlevellock.S i486/pthread_barrier_wait.S i486/pthread_cond_signal.S i486/pthread_cond_broadcast.S \
&lt;br&gt;-				 &amp;nbsp; i486/pthread_cond_timedwait.S i486/pthread_cond_wait.S i486/sem_post.S i486/sem_timedwait.S \
&lt;br&gt;-				 &amp;nbsp; i486/sem_trywait.S i486/sem_wait.S i486/pthread_rwlock_rdlock.S i486/pthread_rwlock_wrlock.S \
&lt;br&gt;-				 &amp;nbsp; i486/pthread_rwlock_timedrdlock.S i486/pthread_rwlock_timedwrlock.S i486/pthread_rwlock_unlock.S
&lt;br&gt;+		 &amp;nbsp; i486/sem_post.S i486/sem_timedwait.S \
&lt;br&gt;+		 &amp;nbsp; i486/sem_trywait.S i486/sem_wait.S i486/pthread_rwlock_rdlock.S i486/pthread_rwlock_wrlock.S \
&lt;br&gt;+		 &amp;nbsp; i486/pthread_rwlock_timedrdlock.S i486/pthread_rwlock_timedwrlock.S i486/pthread_rwlock_unlock.S
&lt;br&gt;+#i486/pthread_cond_timedwait.S i486/pthread_cond_wait.S
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;libc_a_SSRC += i486/libc-lowlevellock.S
&lt;br&gt;&amp;nbsp;
&lt;br&gt;diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
&lt;br&gt;index 785f2ac..1a060c0 100644
&lt;br&gt;--- a/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
&lt;br&gt;+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h
&lt;br&gt;@@ -65,8 +65,10 @@ typedef int lll_lock_t;
&lt;br&gt;&amp;nbsp;/* Delay in spinlock loop. &amp;nbsp;*/
&lt;br&gt;&amp;nbsp;#define BUSY_WAIT_NOP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;__asm__ (&amp;quot;rep; nop&amp;quot;)
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;#define lll_futex_wait(futex, val) \
&lt;br&gt;+ &amp;nbsp;lll_futex_timed_wait (futex, val, NULL)
&lt;br&gt;+
&lt;br&gt;+#define lll_futex_timed_wait(futex, val, timeout) \
&lt;br&gt;&amp;nbsp; &amp;nbsp;({									 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int __ret;							 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;register __typeof (val) _val __asm__ (&amp;quot;edx&amp;quot;) = (val);		 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;@@ -74,7 +76,7 @@ typedef int lll_lock_t;
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;LLL_ENTER_KERNEL					 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;LLL_EBX_LOAD					 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;quot;=a&amp;quot; (__ret)					 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;-		 &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;quot;0&amp;quot; (SYS_futex), LLL_EBX_REG (futex), &amp;quot;S&amp;quot; (0),	 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;+		 &amp;nbsp; &amp;nbsp; &amp;nbsp;: &amp;quot;0&amp;quot; (SYS_futex), LLL_EBX_REG (futex), &amp;quot;S&amp;quot; (timeout), &amp;nbsp;\
&lt;br&gt;&amp;nbsp;			&amp;quot;c&amp;quot; (FUTEX_WAIT), &amp;quot;d&amp;quot; (_val),			 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp;			&amp;quot;i&amp;quot; (offsetof (tcbhead_t, sysinfo)));		 &amp;nbsp; &amp;nbsp; &amp;nbsp;\
&lt;br&gt;&amp;nbsp; &amp;nbsp; __ret; })
&lt;br&gt;-- 
&lt;br&gt;1.6.5.3
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545662&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-3--Fixes-for-hardened-nptl-tp26545656p26545662.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545667</id>
	<title>[PATCH 2/3] define local stack_chk_guard for nptl</title>
	<published>2009-11-27T08:12:43Z</published>
	<updated>2009-11-27T08:12:43Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">Signed-off-by: Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545667&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;libc/misc/internals/__uClibc_main.c | &amp;nbsp; &amp;nbsp;3 ++-
&lt;br&gt;&amp;nbsp;1 files changed, 2 insertions(+), 1 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
&lt;br&gt;index 85dbe71..cb2c6ed 100644
&lt;br&gt;--- a/libc/misc/internals/__uClibc_main.c
&lt;br&gt;+++ b/libc/misc/internals/__uClibc_main.c
&lt;br&gt;@@ -203,10 +203,11 @@ void __uClibc_init(void)
&lt;br&gt;&amp;nbsp;#ifndef SHARED
&lt;br&gt;&amp;nbsp;# ifdef __UCLIBC_HAS_SSP__
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* Set up the stack checker's canary. &amp;nbsp;*/
&lt;br&gt;- &amp;nbsp; &amp;nbsp;stack_chk_guard = _dl_setup_stack_chk_guard();
&lt;br&gt;&amp;nbsp;# &amp;nbsp;ifdef THREAD_SET_STACK_GUARD
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;uintptr_t stack_chk_guard = _dl_setup_stack_chk_guard();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;THREAD_SET_STACK_GUARD (stack_chk_guard);
&lt;br&gt;&amp;nbsp;# &amp;nbsp; ifdef __UCLIBC_HAS_SSP_COMPAT__
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;stack_chk_guard = _dl_setup_stack_chk_guard();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;__guard = stack_chk_guard;
&lt;br&gt;&amp;nbsp;# &amp;nbsp; endif
&lt;br&gt;&amp;nbsp;# &amp;nbsp;else
&lt;br&gt;-- 
&lt;br&gt;1.6.5.3
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545667&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-3--Fixes-for-hardened-nptl-tp26545656p26545667.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545661</id>
	<title>[PATCH 1/3] ldso: initialize stack_chk_guard after TLS is initialized</title>
	<published>2009-11-27T08:12:42Z</published>
	<updated>2009-11-27T08:12:42Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">stack_chk_guard is on thread local storage so we need to init TLS before
&lt;br&gt;we can init stack_chk_guard.
&lt;br&gt;&lt;br&gt;Signed-off-by: Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545661&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;ldso/ldso/ldso.c | &amp;nbsp; 26 +++++++++++++-------------
&lt;br&gt;&amp;nbsp;1 files changed, 13 insertions(+), 13 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/ldso/ldso/ldso.c b/ldso/ldso/ldso.c
&lt;br&gt;index 021f109..555eeb9 100644
&lt;br&gt;--- a/ldso/ldso/ldso.c
&lt;br&gt;+++ b/ldso/ldso/ldso.c
&lt;br&gt;@@ -376,19 +376,6 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr,
&lt;br&gt;&amp;nbsp;	_dl_init_static_tls = &amp;_dl_nothread_init_static_tls;
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-#ifdef __UCLIBC_HAS_SSP__
&lt;br&gt;-	/* Set up the stack checker's canary. &amp;nbsp;*/
&lt;br&gt;-	stack_chk_guard = _dl_setup_stack_chk_guard ();
&lt;br&gt;-# ifdef THREAD_SET_STACK_GUARD
&lt;br&gt;-	THREAD_SET_STACK_GUARD (stack_chk_guard);
&lt;br&gt;-# &amp;nbsp;ifdef __UCLIBC_HAS_SSP_COMPAT__
&lt;br&gt;-	__guard = stack_chk_guard;
&lt;br&gt;-# &amp;nbsp;endif
&lt;br&gt;-# else
&lt;br&gt;-	__stack_chk_guard = stack_chk_guard;
&lt;br&gt;-# endif
&lt;br&gt;-#endif
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;	/* At this point we are now free to examine the user application,
&lt;br&gt;&amp;nbsp;	 * and figure out which libraries are supposed to be called. &amp;nbsp;Until
&lt;br&gt;&amp;nbsp;	 * we have this list, we will not be completely ready for dynamic
&lt;br&gt;@@ -944,6 +931,19 @@ void _dl_get_ready_to_run(struct elf_resolve *tpnt, DL_LOADADDR_TYPE load_addr,
&lt;br&gt;&amp;nbsp;		tcbp = init_tls ();
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;+#ifdef __UCLIBC_HAS_SSP__
&lt;br&gt;+	/* Set up the stack checker's canary. &amp;nbsp;*/
&lt;br&gt;+	stack_chk_guard = _dl_setup_stack_chk_guard ();
&lt;br&gt;+# ifdef THREAD_SET_STACK_GUARD
&lt;br&gt;+	THREAD_SET_STACK_GUARD (stack_chk_guard);
&lt;br&gt;+# &amp;nbsp;ifdef __UCLIBC_HAS_SSP_COMPAT__
&lt;br&gt;+	__guard = stack_chk_guard;
&lt;br&gt;+# &amp;nbsp;endif
&lt;br&gt;+# else
&lt;br&gt;+	__stack_chk_guard = stack_chk_guard;
&lt;br&gt;+# endif
&lt;br&gt;+#endif
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	_dl_debug_early(&amp;quot;Beginning relocation fixups\n&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-- 
&lt;br&gt;1.6.5.3
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545661&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-3--Fixes-for-hardened-nptl-tp26545656p26545661.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26545656</id>
	<title>[PATCH 0/3] Fixes for hardened/nptl</title>
	<published>2009-11-27T08:12:41Z</published>
	<updated>2009-11-27T08:12:41Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">Various fixes to make nptl work on hardened toolchain. Tested with simple
&lt;br&gt;pthreaded hello world.
&lt;br&gt;&lt;br&gt;Those are for nptl branch.
&lt;br&gt;&lt;br&gt;Natanael Copa (2):
&lt;br&gt;&amp;nbsp; ldso: initialize stack_chk_guard after TLS is initialized
&lt;br&gt;&amp;nbsp; define local stack_chk_guard for nptl
&lt;br&gt;&lt;br&gt;Timo Teräs (1):
&lt;br&gt;&amp;nbsp; PIC fixes for hardened
&lt;br&gt;&lt;br&gt;&amp;nbsp;ldso/ldso/ldso.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 26 ++++++++++----------
&lt;br&gt;&amp;nbsp;libc/misc/internals/__uClibc_main.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;3 +-
&lt;br&gt;&amp;nbsp;libpthread/nptl/sysdeps/pthread/Makefile.in &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;4 +-
&lt;br&gt;&amp;nbsp;.../sysdeps/unix/sysv/linux/i386/Makefile.arch &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 +++--
&lt;br&gt;&amp;nbsp;.../sysdeps/unix/sysv/linux/i386/lowlevellock.h &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;6 +++-
&lt;br&gt;&amp;nbsp;5 files changed, 25 insertions(+), 21 deletions(-)
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26545656&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-3--Fixes-for-hardened-nptl-tp26545656p26545656.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543268</id>
	<title>[PATCH 2/2] add hidden aliases for openat funcs</title>
	<published>2009-11-27T06:38:29Z</published>
	<updated>2009-11-27T06:38:29Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">From: Mike Frysinger &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543268&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;openat64() uses openat(), so we need hidden aliases for it.
&lt;br&gt;&lt;br&gt;Signed-off-by: Mike Frysinger &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543268&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;&amp;gt;
&lt;br&gt;(cherry picked from commit fc0cc43885c69b3029d5783f3ce65ff53f8defe5)
&lt;br&gt;&lt;br&gt;Signed-off-by: Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543268&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;include/fcntl.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;2 ++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/openat.c &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 +++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/openat64.c | &amp;nbsp; &amp;nbsp;7 +++++++
&lt;br&gt;&amp;nbsp;3 files changed, 16 insertions(+), 0 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/include/fcntl.h b/include/fcntl.h
&lt;br&gt;index 084ee8c..7ce3150 100644
&lt;br&gt;--- a/include/fcntl.h
&lt;br&gt;+++ b/include/fcntl.h
&lt;br&gt;@@ -119,6 +119,7 @@ extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1));
&lt;br&gt;&amp;nbsp;# ifndef __USE_FILE_OFFSET64
&lt;br&gt;&amp;nbsp;extern int openat (int __fd, __const char *__file, int __oflag, ...)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; __nonnull ((2));
&lt;br&gt;+libc_hidden_proto(openat)
&lt;br&gt;&amp;nbsp;# else
&lt;br&gt;&amp;nbsp;# &amp;nbsp;ifdef __REDIRECT
&lt;br&gt;&amp;nbsp;extern int __REDIRECT (openat, (int __fd, __const char *__file, int __oflag,
&lt;br&gt;@@ -130,6 +131,7 @@ extern int __REDIRECT (openat, (int __fd, __const char *__file, int __oflag,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;extern int openat64 (int __fd, __const char *__file, int __oflag, ...)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; __nonnull ((2));
&lt;br&gt;+libc_hidden_proto(openat64)
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/* Create and open FILE, with mode MODE. &amp;nbsp;This takes an `int' MODE
&lt;br&gt;diff --git a/libc/sysdeps/linux/common/openat.c b/libc/sysdeps/linux/common/openat.c
&lt;br&gt;index 33bd606..8380ec6 100644
&lt;br&gt;--- a/libc/sysdeps/linux/common/openat.c
&lt;br&gt;+++ b/libc/sysdeps/linux/common/openat.c
&lt;br&gt;@@ -12,7 +12,14 @@
&lt;br&gt;&amp;nbsp;#undef openat
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef __NR_openat
&lt;br&gt;+/* The openat() prototype is varargs based, but we don't care about that
&lt;br&gt;+ * here, so need to provide our own dedicated signature.
&lt;br&gt;+ */
&lt;br&gt;+extern int openat(int fd, const char *file, int oflag, mode_t mode);
&lt;br&gt;+libc_hidden_proto(openat)
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;_syscall4(int, openat, int, fd, const char *, file, int, oflag, mode_t, mode)
&lt;br&gt;+libc_hidden_def(openat)
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;&amp;nbsp;/* should add emulation with open() and /proc/self/fd/ ... */
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;diff --git a/libc/sysdeps/linux/common/openat64.c b/libc/sysdeps/linux/common/openat64.c
&lt;br&gt;index 75711aa..06a5819 100644
&lt;br&gt;--- a/libc/sysdeps/linux/common/openat64.c
&lt;br&gt;+++ b/libc/sysdeps/linux/common/openat64.c
&lt;br&gt;@@ -14,10 +14,17 @@
&lt;br&gt;&amp;nbsp;#ifdef __UCLIBC_HAS_LFS__
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#ifdef __NR_openat
&lt;br&gt;+/* The openat() prototype is varargs based, but we don't care about that
&lt;br&gt;+ * here, so need to provide our own dedicated signature.
&lt;br&gt;+ */
&lt;br&gt;+extern int openat64(int fd, const char *file, int oflag, mode_t mode);
&lt;br&gt;+libc_hidden_proto(openat64)
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;int openat64(int fd, const char *file, int oflag, mode_t mode)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	return openat(fd, file, oflag | O_LARGEFILE, mode);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;+libc_hidden_def(openat64)
&lt;br&gt;&amp;nbsp;#else
&lt;br&gt;&amp;nbsp;/* should add emulation with open() and /proc/self/fd/ ... */
&lt;br&gt;&amp;nbsp;#endif
&lt;br&gt;-- 
&lt;br&gt;1.6.5.3
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543268&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-2--*at-funcs-for-0_9_30-branch-tp26543265p26543268.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26543265</id>
	<title>[PATCH 0/2] *at funcs for 0_9_30 branch</title>
	<published>2009-11-27T06:38:23Z</published>
	<updated>2009-11-27T06:38:23Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I cherry-picked 2 commits for 0_9_30 branch that adds the *at funcs.
&lt;br&gt;&lt;br&gt;Mike Frysinger (2):
&lt;br&gt;&amp;nbsp; first pass at implementing *at funcs
&lt;br&gt;&amp;nbsp; add hidden aliases for openat funcs
&lt;br&gt;&lt;br&gt;&amp;nbsp;include/dirent.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 10 +++++-
&lt;br&gt;&amp;nbsp;include/fcntl.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 17 ++++++---
&lt;br&gt;&amp;nbsp;include/features.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 53 +++++++++++++++++++++------
&lt;br&gt;&amp;nbsp;include/stdio.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp;5 +++
&lt;br&gt;&amp;nbsp;include/sys/stat.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 33 +++++++++++++----
&lt;br&gt;&amp;nbsp;include/sys/time.h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;2 +-
&lt;br&gt;&amp;nbsp;libc/misc/dirent/opendir.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; 63 +++++++++++++++++++++++++-------
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/faccessat.c &amp;nbsp;| &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/fchmodat.c &amp;nbsp; | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/fchownat.c &amp;nbsp; | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/fstatat.c &amp;nbsp; &amp;nbsp;| &amp;nbsp; 27 ++++++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/fstatat64.c &amp;nbsp;| &amp;nbsp; 31 ++++++++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/futimesat.c &amp;nbsp;| &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/linkat.c &amp;nbsp; &amp;nbsp; | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/mkdirat.c &amp;nbsp; &amp;nbsp;| &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/mkfifoat.c &amp;nbsp; | &amp;nbsp; 19 ++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/mknodat.c &amp;nbsp; &amp;nbsp;| &amp;nbsp; 25 +++++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/openat.c &amp;nbsp; &amp;nbsp; | &amp;nbsp; 25 +++++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/openat64.c &amp;nbsp; | &amp;nbsp; 32 ++++++++++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/readlinkat.c | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/renameat.c &amp;nbsp; | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/symlinkat.c &amp;nbsp;| &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/unlinkat.c &amp;nbsp; | &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;libc/sysdeps/linux/common/utimensat.c &amp;nbsp;| &amp;nbsp; 16 ++++++++
&lt;br&gt;&amp;nbsp;24 files changed, 478 insertions(+), 40 deletions(-)
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/faccessat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/fchmodat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/fchownat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/fstatat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/fstatat64.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/futimesat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/linkat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/mkdirat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/mkfifoat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/mknodat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/openat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/openat64.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/readlinkat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/renameat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/symlinkat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/unlinkat.c
&lt;br&gt;&amp;nbsp;create mode 100644 libc/sysdeps/linux/common/utimensat.c
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26543265&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH-0-2--*at-funcs-for-0_9_30-branch-tp26543265p26543265.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26542235</id>
	<title>Re: [PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T05:10:12Z</published>
	<updated>2009-11-27T05:10:12Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">On Fri, 2009-11-27 at 12:31 +0000, Natanael Copa wrote:
&lt;br&gt;&amp;gt; This fixes an issue when a CNAME was returned for an A query.
&lt;br&gt;&amp;gt; Garbage was returned.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Postfix was affected of this.
&lt;br&gt;&lt;br&gt;FWIW, this patch is also a candidate for 0_9_30 tree.
&lt;br&gt;&lt;br&gt;-nc
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26542235&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26542235.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26541806</id>
	<title>[PATCH] res_query: fix for CNAME responses on A queries.</title>
	<published>2009-11-27T04:28:38Z</published>
	<updated>2009-11-27T04:28:38Z</updated>
	<author>
		<name>Natanael Copa-3</name>
	</author>
	<content type="html">This fixes an issue when a CNAME was returned for an A query.
&lt;br&gt;Garbage was returned.
&lt;br&gt;&lt;br&gt;Postfix was affected of this.
&lt;br&gt;&lt;br&gt;Signed-off-by: Natanael Copa &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26541806&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;natanael.copa@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;libc/inet/resolv.c | &amp;nbsp; &amp;nbsp;9 ++++-----
&lt;br&gt;&amp;nbsp;1 files changed, 4 insertions(+), 5 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
&lt;br&gt;index e6dac1a..0eb59f3 100644
&lt;br&gt;--- a/libc/inet/resolv.c
&lt;br&gt;+++ b/libc/inet/resolv.c
&lt;br&gt;@@ -1604,11 +1604,10 @@ int res_query(const char *dname, int class, int type,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	free(a.dotted);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	if (a.atype == type) { /* CNAME */
&lt;br&gt;-		if (i &amp;gt; anslen)
&lt;br&gt;-			i = anslen;
&lt;br&gt;-		memcpy(answer, packet, i);
&lt;br&gt;-	}
&lt;br&gt;+	if (i &amp;gt; anslen)
&lt;br&gt;+		i = anslen;
&lt;br&gt;+	memcpy(answer, packet, i);
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;	free(packet);
&lt;br&gt;&amp;nbsp;	return i;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;-- 
&lt;br&gt;1.6.5.2
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26541806&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--res_query%3A-fix-for-CNAME-responses-on-A-queries.-tp26541806p26541806.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26535715</id>
	<title>Re: Why __WORDSIZE_COMPAT32 is off for x86_64?</title>
	<published>2009-11-26T14:28:58Z</published>
	<updated>2009-11-26T14:28:58Z</updated>
	<author>
		<name>Denys Vlasenko-3</name>
	</author>
	<content type="html">On Thursday 26 November 2009 16:27, Bernhard Reutner-Fischer wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 26, 2009 at 01:49:51PM +0100, Denys Vlasenko wrote:
&lt;br&gt;&amp;gt; &amp;gt;libc/sysdeps/linux/x86_64/bits/wordsize.h:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;/* Determine the wordsize from the preprocessor defines. &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;#if defined __x86_64__
&lt;br&gt;&amp;gt; &amp;gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 64
&lt;br&gt;&amp;gt; &amp;gt;/*# define __WORDSIZE_COMPAT32 &amp;nbsp;1*/
&lt;br&gt;&amp;gt; &amp;gt;#else
&lt;br&gt;&amp;gt; &amp;gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 32
&lt;br&gt;&amp;gt; &amp;gt;#endif
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;This breaks /var/run/utmp format.
&lt;br&gt;&amp;gt; &amp;gt;This makes any tool which uses /var/run/utmp to misbehave
&lt;br&gt;&amp;gt; &amp;gt;on a system where some other parts are based on glibc:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=541587&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=541587&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;Whoever commented it out forgot to explain *why*
&lt;br&gt;&amp;gt; &amp;gt;he commented it out. I propose uncommenting it.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;Please ACK or apply attached patch.
&lt;/div&gt;&lt;br&gt;Pushed to git
&lt;br&gt;--
&lt;br&gt;vda
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26535715&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-__WORDSIZE_COMPAT32-is-off-for-x86_64--tp26529018p26535715.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26533396</id>
	<title>Re: bugs in malloc</title>
	<published>2009-11-26T10:34:15Z</published>
	<updated>2009-11-26T10:34:15Z</updated>
	<author>
		<name>Peter S. Mazinger</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;it might also be a mutex/threads issue, I know of a bug introduced somewhere between 0.9.28 and 0.9.28.2 iirc, it is in uClibc_mutex.h. One of the macros does not check for a case = NULL, I reported this to the committer and the maintainer at that time. To test if I am right, replace __UCLIBC_MUTEX_CONDITIONAL_LOCK(M,C) and UNLOCK with their counterparts
&lt;br&gt;__UCLIBC_MUTEX_[UN]LOCK_CANCEL_UNSAFE(M), rebuild uClibc and then your app.
&lt;br&gt;&lt;br&gt;Peter
&lt;br&gt;&lt;br&gt;-------- Original-Nachricht --------
&lt;br&gt;&amp;gt; Datum: Tue, 24 Nov 2009 07:14:36 -0500
&lt;br&gt;&amp;gt; Von: &amp;quot;Sergio M. Ammirata, Ph.D.&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sergio@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; An: Freeman Wang &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xwang@...&lt;/a&gt;&amp;gt;, Mike Frysinger &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;&amp;gt;, &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uclibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Betreff: Re: bugs in malloc
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; If it helps, I am also experiences crashes in malloc. They did not occur
&lt;br&gt;&amp;gt; in
&lt;br&gt;&amp;gt; 0.9.28. Here is a sample backtrace:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Program terminated with signal 11, Segmentation fault.
&lt;br&gt;&amp;gt; [New process 1788]
&lt;br&gt;&amp;gt; [New process 1752]
&lt;br&gt;&amp;gt; [New process 1784]
&lt;br&gt;&amp;gt; [New process 1783]
&lt;br&gt;&amp;gt; [New process 1789]
&lt;br&gt;&amp;gt; [New process 1791]
&lt;br&gt;&amp;gt; [New process 1787]
&lt;br&gt;&amp;gt; [New process 1785]
&lt;br&gt;&amp;gt; [New process 1786]
&lt;br&gt;&amp;gt; #0 &amp;nbsp;0x3782e44a in __malloc_from_heap (size=506916, heap=0x37870bd8,
&lt;br&gt;&amp;gt; heap_lock=0x37874e3c) at libc/stdlib/malloc/malloc.c:184
&lt;br&gt;&amp;gt; 184 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mem = MALLOC_SETUP (mem, size);
&lt;br&gt;&amp;gt; (gdb) bt
&lt;br&gt;&amp;gt; #0 &amp;nbsp;0x3782e44a in __malloc_from_heap (size=506916, heap=0x37870bd8,
&lt;br&gt;&amp;gt; heap_lock=0x37874e3c) at libc/stdlib/malloc/malloc.c:184
&lt;br&gt;&amp;gt; #1 &amp;nbsp;0x3782e53c in malloc (size=506912) at libc/stdlib/malloc/malloc.c:223
&lt;br&gt;&amp;gt; #2 &amp;nbsp;0x3782eb10 in memalign (alignment=16, size=506880) at
&lt;br&gt;&amp;gt; libc/stdlib/malloc/memalign.c:48
&lt;br&gt;&amp;gt; #3 &amp;nbsp;0x08083fd1 in __vout_AllocatePicture (p_this=0x8d74f6c,
&lt;br&gt;&amp;gt; p_pic=0x9a1a048,
&lt;br&gt;&amp;gt; i_chroma=808596553, i_width=704, i_height=480, i_aspect=576000) at
&lt;br&gt;&amp;gt; video_output/vout_pictures.c:515
&lt;br&gt;&amp;gt; #4 &amp;nbsp;0x373bdacf in video_new_buffer (p_this=0x8d74f6c, pp_ring=0x8893868,
&lt;br&gt;&amp;gt; p_sys=0x8885680) at transcode.c:2499
&lt;br&gt;&amp;gt; #5 &amp;nbsp;0x08144ed4 in DecodeBlock (p_dec=0x8d74f6c, pp_block=0x3efff89c) at
&lt;br&gt;&amp;gt; libmpeg2.c:604
&lt;br&gt;&amp;gt; #6 &amp;nbsp;0x373c026d in Send (p_stream=0x887f6c8, id=0x8892bf8,
&lt;br&gt;&amp;gt; p_buffer=0xcf0bec0) at transcode.c:2030
&lt;br&gt;&amp;gt; #7 &amp;nbsp;0x373e00a6 in Send (p_stream=0x887e32c, id=0x8892bd0,
&lt;br&gt;&amp;gt; p_buffer=0xcf0bec0) at duplicate.c:277
&lt;br&gt;&amp;gt; #8 &amp;nbsp;0x0809182c in sout_InputSendBuffer (p_input=0x8892bc0,
&lt;br&gt;&amp;gt; p_buffer=0xcf0bec0) at stream_output/stream_output.c:279
&lt;br&gt;&amp;gt; #9 &amp;nbsp;0x080d31e8 in DecoderDecode (p_dec=0x88a91bc, p_block=0xd232f28) at
&lt;br&gt;&amp;gt; input/decoder.c:579
&lt;br&gt;&amp;gt; #10 0x080d70ac in EsOutSend (out=0x887b21c, es=0x88a6e08,
&lt;br&gt;&amp;gt; p_block=0xd232f28)
&lt;br&gt;&amp;gt; at input/es_out.c:1107
&lt;br&gt;&amp;gt; #11 0x080ffed9 in ParsePES (p_demux=0x8890c64, pid=0x999cf10) at
&lt;br&gt;&amp;gt; ../../include/vlc_es_out.h:109
&lt;br&gt;&amp;gt; #12 0x08101a58 in Demux (p_demux=0x8890c64) at ts.c:1927
&lt;br&gt;&amp;gt; #13 0x08073a6f in MainLoop (p_input=0x8882170) at input/input.c:538
&lt;br&gt;&amp;gt; #14 0x08074b17 in Run (p_input=0x8882170) at input/input.c:444
&lt;br&gt;&amp;gt; #15 0x378b3136 in pthread_start_thread (arg=0x3efffea0) at
&lt;br&gt;&amp;gt; libpthread/linuxthreads.old/manager.c:309
&lt;br&gt;&amp;gt; #16 0x377c2c12 in clone () at libc/sysdeps/linux/i386/clone.S:106
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The crash happens in different parts of the application but it is always a
&lt;br&gt;&amp;gt; malloc crash. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Sergio M. Ammirata, Ph.D.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On 11/24/09 2:16 AM, &amp;quot;Freeman Wang&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;xwang@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Mike
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; An example may be better to show what we thought.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Say, we already have a mmb list of three blocks M1 --&amp;gt; M2 --&amp;gt; M3. Now a
&lt;br&gt;&amp;gt; &amp;gt; heap request comes in for an 8k buffer. The heap is extended using mmap
&lt;br&gt;&amp;gt; &amp;gt; and we iterate through the list and find the new block descriptor,
&lt;br&gt;&amp;gt; &amp;gt; new_mmb, should be added after M3. *** Now we try to allocate new_mmb
&lt;br&gt;&amp;gt; &amp;gt; from the mmb_heap and find mmb_heap needs to be extended too *** So a
&lt;br&gt;&amp;gt; &amp;gt; new mmap syscall is made to extend the mmb_heap, and again the new block
&lt;br&gt;&amp;gt; &amp;gt; needs a descriptor also from the mmb_heap. Again we iterated through the
&lt;br&gt;&amp;gt; &amp;gt; existing list, and find this new_mmb_2 should be added after M3 too !!!.
&lt;br&gt;&amp;gt; &amp;gt; We then try to allocate new_mmb_2 and it should succeed because the mmap
&lt;br&gt;&amp;gt; &amp;gt; usually gives us at least a page and it has been added to the mmb_heap.
&lt;br&gt;&amp;gt; &amp;gt; When the allocation of the first new_mmb returns, the list has already
&lt;br&gt;&amp;gt; &amp;gt; been updated to M1 --&amp;gt; M2 --&amp;gt; M3 --&amp;gt; M4_2, but we do not know, so M4_1
&lt;br&gt;&amp;gt; &amp;gt; will be still added after M3.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; That's just one of the possible ways the current code could mess up.
&lt;br&gt;&amp;gt; &amp;gt; Depending on where the two blocks are located, things could go wild and
&lt;br&gt;&amp;gt; &amp;gt; the link list be totally destroyed. However, if we make the allocation
&lt;br&gt;&amp;gt; &amp;gt; before going through the mmb list, we will be able to make sure the
&lt;br&gt;&amp;gt; &amp;gt; new_mmb structure is added properly.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Freeman
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; -----Original Message-----
&lt;br&gt;&amp;gt; &amp;gt; From: Mike Frysinger [mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vapier@...&lt;/a&gt;]
&lt;br&gt;&amp;gt; &amp;gt; Sent: Monday, November 23, 2009 7:42 PM
&lt;br&gt;&amp;gt; &amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uclibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; Cc: Freeman Wang
&lt;br&gt;&amp;gt; &amp;gt; Subject: Re: bugs in malloc
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; On Monday 23 November 2009 14:55:26 Freeman Wang wrote:
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 1. We found with some special application, the application would get
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; stuck at line 162 of malloc.c and the reason was mem-&amp;gt;next points back
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; to itself.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; please try to reduce the allocation patterns of your 'special'
&lt;br&gt;&amp;gt; &amp;gt; application. &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;gt; it should be easy to enable debugging and capture the malloc/free
&lt;br&gt;&amp;gt; &amp;gt; sequences and run them again manually.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; It turns out, we believe, to be because new_mmb is allocated after the
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mmb list is iterated throught to find the insertion point. When the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; mmb_heap also runs out and needs to be extended when the regular heap
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; is just extended, the mmb list could be messed up. We moved the
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; new_mmb allocation up and the problem seems to have been fixed.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; i dont see why the current code is a problem. &amp;nbsp;it's a singly linked list
&lt;br&gt;&amp;gt; &amp;gt; which means if the list is walked to the end, the new_mmb will be
&lt;br&gt;&amp;gt; &amp;gt; 'inserted' as the last item in the linked list. &amp;nbsp;prev_mmb points to the
&lt;br&gt;&amp;gt; &amp;gt; last valid entry in the list and mmb is null. &amp;nbsp;so the last valid entry
&lt;br&gt;&amp;gt; &amp;gt; will be updated to point to new_mmb and it will have its next member set
&lt;br&gt;&amp;gt; &amp;gt; to null. &amp;nbsp;i dont see any place where the mmb list 'could be messed up'.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; if you look a few lines up, the recursive memory-full-issue should
&lt;br&gt;&amp;gt; &amp;gt; already be handled because a mmap for more memory is done, and that mmap
&lt;br&gt;&amp;gt; &amp;gt; is put into the heap by the heap free call.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 2. While trying to fix the above issue, we read the code and found a
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; multi-threading issue with this mmb list handling. Th'is list is
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; halfway protected in free.c and not protected by any lock at all in
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; malloc.c. Is it intentional?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; looks like the locking fixes we have in the blackfin tree werent pushed
&lt;br&gt;&amp;gt; &amp;gt; upstream. &amp;nbsp;i'll have to rebase them first, but it should at least
&lt;br&gt;&amp;gt; &amp;gt; partially cover what you see. &amp;nbsp;if it doesnt, i'll stitch in your pieces.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; 3. In an embedded world without MMU, it is not garanteed that the mmap
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; syscall would always get back a valid block, and that's probably why
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; the return value, block, is checked immediately after the syscall. But
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; it seems we are not checking the return value of new_mmb which is
&lt;br&gt;&amp;gt; &amp;gt;&amp;gt; allocated from the mmb_heap? Is it a potential issue?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; you have no guarantee of mmap returning valid memory under a mmu-system
&lt;br&gt;&amp;gt; &amp;gt; either. &amp;nbsp;typically an oom situation will have an application crash
&lt;br&gt;&amp;gt; &amp;gt; quickly, so this particular missing check isnt a big deal, but it should
&lt;br&gt;&amp;gt; &amp;gt; probably still be added. &amp;nbsp;i imagine in a threaded situation, one thread
&lt;br&gt;&amp;gt; &amp;gt; could grab the fresh memory before the original thread got a chance to
&lt;br&gt;&amp;gt; &amp;gt; use it and thus got null back.
&lt;br&gt;&amp;gt; &amp;gt; -mike
&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; uClibc mailing list
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; uClibc mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
&lt;br&gt;Jetzt freischalten unter &lt;a href=&quot;http://portal.gmx.net/de/go/maxdome01&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://portal.gmx.net/de/go/maxdome01&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26533396&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/bugs-in-malloc-tp26486367p26533396.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531007</id>
	<title>Re: Why __WORDSIZE_COMPAT32 is off for x86_64?</title>
	<published>2009-11-26T07:26:07Z</published>
	<updated>2009-11-26T07:26:07Z</updated>
	<author>
		<name>Bernhard Reutner-Fischer</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 01:49:51PM +0100, Denys Vlasenko wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;libc/sysdeps/linux/x86_64/bits/wordsize.h:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;/* Determine the wordsize from the preprocessor defines. &amp;nbsp;*/
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;#if defined __x86_64__
&lt;br&gt;&amp;gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 64
&lt;br&gt;&amp;gt;/*# define __WORDSIZE_COMPAT32 &amp;nbsp;1*/
&lt;br&gt;&amp;gt;#else
&lt;br&gt;&amp;gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 32
&lt;br&gt;&amp;gt;#endif
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;This breaks /var/run/utmp format.
&lt;br&gt;&amp;gt;This makes any tool which uses /var/run/utmp to misbehave
&lt;br&gt;&amp;gt;on a system where some other parts are based on glibc:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=541587&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=541587&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Whoever commented it out forgot to explain *why*
&lt;br&gt;&amp;gt;he commented it out. I propose uncommenting it.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;Please ACK or apply attached patch.
&lt;/div&gt;&lt;br&gt;ok.
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26531007&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-__WORDSIZE_COMPAT32-is-off-for-x86_64--tp26529018p26531007.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529018</id>
	<title>Why __WORDSIZE_COMPAT32 is off for x86_64?</title>
	<published>2009-11-26T04:49:51Z</published>
	<updated>2009-11-26T04:49:51Z</updated>
	<author>
		<name>Denys Vlasenko-3</name>
	</author>
	<content type="html">libc/sysdeps/linux/x86_64/bits/wordsize.h:
&lt;br&gt;&lt;br&gt;/* Determine the wordsize from the preprocessor defines. &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;#if defined __x86_64__
&lt;br&gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 64
&lt;br&gt;/*# define __WORDSIZE_COMPAT32 &amp;nbsp;1*/
&lt;br&gt;#else
&lt;br&gt;# define __WORDSIZE &amp;nbsp; &amp;nbsp; 32
&lt;br&gt;#endif
&lt;br&gt;&lt;br&gt;This breaks /var/run/utmp format.
&lt;br&gt;This makes any tool which uses /var/run/utmp to misbehave
&lt;br&gt;on a system where some other parts are based on glibc:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://bugzilla.redhat.com/show_bug.cgi?id=541587&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://bugzilla.redhat.com/show_bug.cgi?id=541587&lt;/a&gt;&lt;br&gt;&lt;br&gt;Whoever commented it out forgot to explain *why*
&lt;br&gt;he commented it out. I propose uncommenting it.
&lt;br&gt;&lt;br&gt;Please ACK or apply attached patch.
&lt;br&gt;--
&lt;br&gt;vda
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529018&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;6.patch&lt;/strong&gt; (738 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26529018/0/6.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Why-__WORDSIZE_COMPAT32-is-off-for-x86_64--tp26529018p26529018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509840</id>
	<title>Re: Building busybox against nptl branch failed.</title>
	<published>2009-11-25T01:39:05Z</published>
	<updated>2009-11-25T01:39:05Z</updated>
	<author>
		<name>Rob Landley</name>
	</author>
	<content type="html">On Wednesday 25 November 2009 02:31:01 Bernhard Reutner-Fischer wrote:
&lt;br&gt;&amp;gt; I have a patch pending, will commit it shortly.
&lt;br&gt;&lt;br&gt;Cool. &amp;nbsp;Thanks.
&lt;br&gt;&lt;br&gt;I patched it locally, which revealed this bug:
&lt;br&gt;&lt;br&gt;libbb/lib.a(xfuncs.o): In function `close_on_exec_on':
&lt;br&gt;xfuncs.c:(.text.close_on_exec_on+0xd): undefined reference to `fcntl64'
&lt;br&gt;libbb/lib.a(xfuncs.o): In function `ndelay_off':
&lt;br&gt;xfuncs.c:(.text.ndelay_off+0xb): undefined reference to `fcntl64'
&lt;br&gt;xfuncs.c:(.text.ndelay_off+0x1f): undefined reference to `fcntl64'
&lt;br&gt;libbb/lib.a(xfuncs.o): In function `ndelay_on':
&lt;br&gt;xfuncs.c:(.text.ndelay_on+0xb): undefined reference to `fcntl64'
&lt;br&gt;xfuncs.c:(.text.ndelay_on+0x1f): undefined reference to `fcntl64'
&lt;br&gt;&lt;br&gt;Although I don't understand how that worked in 0.9.30.1. &amp;nbsp;(In 
&lt;br&gt;libc/sysdeps/linux/common there's several instances of libc_hidden_proto(), 
&lt;br&gt;libc_hidden_weak(), and libc_hidden_def(), plus both __libc_fcntl64 and 
&lt;br&gt;fcntl64... &amp;nbsp;Too tired to try to unravel this tonight, I think. &amp;nbsp;Bedtime.)
&lt;br&gt;&lt;br&gt;Possibly this one needs a new config symbol that 0.9.30.1 didn't? &amp;nbsp;I've already 
&lt;br&gt;got &amp;quot;UCLIBC_SUSV4_LEGACY=y&amp;quot; added to the .config...
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;-- 
&lt;br&gt;Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509840&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-busybox-against-nptl-branch-failed.-tp26492966p26509840.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26509051</id>
	<title>Re: Building busybox against nptl branch failed.</title>
	<published>2009-11-25T00:31:01Z</published>
	<updated>2009-11-25T00:31:01Z</updated>
	<author>
		<name>Bernhard Reutner-Fischer</name>
	</author>
	<content type="html">I have a patch pending, will commit it shortly.
&lt;br&gt;&lt;br&gt;On 25 Nov 2009 09:14, &amp;quot;Rob Landley&amp;quot; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509051&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rob@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;On Tuesday 24 November 2009 03:40:38 Rob Landley wrote: &amp;gt; On Tuesday 24
&lt;br&gt;November 2009 03:37:11 Rob L...
&lt;br&gt;So git bisect was useless (general wailing about the state of the tree is in
&lt;br&gt;another message), but visual inspection and &amp;quot;git blame&amp;quot; turned up commit
&lt;br&gt;a9e4475b stick &amp;quot;#if 0&amp;quot; guards around struct in6_pktinfo in
&lt;br&gt;include/netinet/in.h.
&lt;br&gt;&lt;br&gt;I dunno if the relevant code used to actually work (I have no ipv6 test
&lt;br&gt;cases), but it did used to compile. &amp;nbsp;That commit stopped it from doing so.
&lt;br&gt;&lt;br&gt;Rob -- Latency is more important than throughput. It's that simple. - Linus
&lt;br&gt;Torvalds
&lt;br&gt;&lt;br&gt;_______________________________________________ uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509051&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt; &lt;a href=&quot;http://lists.b&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.b&lt;/a&gt;...
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26509051&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-busybox-against-nptl-branch-failed.-tp26492966p26509051.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508900</id>
	<title>Re: Building busybox against nptl branch failed.</title>
	<published>2009-11-25T00:13:22Z</published>
	<updated>2009-11-25T00:13:22Z</updated>
	<author>
		<name>Rob Landley</name>
	</author>
	<content type="html">On Tuesday 24 November 2009 03:40:38 Rob Landley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tuesday 24 November 2009 03:37:11 Rob Landley wrote:
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c: In function 'send_to_from':
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c:42: error: invalid application of 'sizeof' to incomplete
&lt;br&gt;&amp;gt; &amp;gt; type 'struct in6_pktinfo'
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c:87: error: invalid application of 'sizeof' to incomplete
&lt;br&gt;&amp;gt; &amp;gt; type 'struct in6_pktinfo'
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c:90: error: dereferencing pointer to incomplete type
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c: In function 'recv_from_to':
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c:116: error: invalid application of 'sizeof' to incomplete
&lt;br&gt;&amp;gt; &amp;gt; type 'struct in6_pktinfo'
&lt;br&gt;&amp;gt; &amp;gt; libbb/udp_io.c:159: error: dereferencing pointer to incomplete type
&lt;br&gt;&amp;gt; &amp;gt; make[1]: *** [libbb/udp_io.o] Error 1
&lt;br&gt;&amp;gt; &amp;gt; make[1]: *** Waiting for unfinished jobs....
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Busybox 1.15.2, more or less defconfig, same config worked fine against
&lt;br&gt;&amp;gt; &amp;gt; glibc and uClibc 0.9.30.1, failed with uClibc git 4d55daf5468b61c9 with
&lt;br&gt;&amp;gt; &amp;gt; the above error.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Rob
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Oh, the uClibc config in question is attached.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm trying to get the non-nptl configs I have working before tackling nptl.
&lt;br&gt;&amp;gt; This was an i686 build.
&lt;/div&gt;&lt;br&gt;So git bisect was useless (general wailing about the state of the tree is in 
&lt;br&gt;another message), but visual inspection and &amp;quot;git blame&amp;quot; turned up commit 
&lt;br&gt;a9e4475b stick &amp;quot;#if 0&amp;quot; guards around struct in6_pktinfo in 
&lt;br&gt;include/netinet/in.h.
&lt;br&gt;&lt;br&gt;I dunno if the relevant code used to actually work (I have no ipv6 test 
&lt;br&gt;cases), but it did used to compile. &amp;nbsp;That commit stopped it from doing so.
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;-- 
&lt;br&gt;Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508900&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Building-busybox-against-nptl-branch-failed.-tp26492966p26508900.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26508835</id>
	<title>People have actually been testing this?</title>
	<published>2009-11-25T00:05:34Z</published>
	<updated>2009-11-25T00:05:34Z</updated>
	<author>
		<name>Rob Landley</name>
	</author>
	<content type="html">So I've been trying to bisect the bug I posted yesterday, where 'struct 
&lt;br&gt;in6_pktinfo' is an incomplete type (in the nptl branch, but not in the 
&lt;br&gt;0.9.30.1 release), and this breaks the busybox build.
&lt;br&gt;&lt;br&gt;While bisecting, I hit an &amp;quot;undefined NULL&amp;quot; over a larger range, which hid the 
&lt;br&gt;introduction of the bug I was looking for. &amp;nbsp;So I bisected _that_ one to where 
&lt;br&gt;it was fixed at git 6d3ed00a41a948, and made a patch I could apply to earlier 
&lt;br&gt;versions.
&lt;br&gt;&lt;br&gt;Doing a fresh bisect to find the next bug masking the introduction of the one I 
&lt;br&gt;was looking for, I hit the &amp;quot;conflicting types for getline&amp;quot; bug. &amp;nbsp;While looking 
&lt;br&gt;for where _that_ got fixed, I saw the bug where it tries to use fcntl64 and 
&lt;br&gt;can't find it, and the fun little bug where the ldconfig.c build dies with an 
&lt;br&gt;unexpected something before 'err'.
&lt;br&gt;&lt;br&gt;This is not &amp;quot;the occasional commit breaks the tree&amp;quot;. &amp;nbsp;The tree being broken is 
&lt;br&gt;not only the norm, but it tends to be broken for more than one reason at any 
&lt;br&gt;given time. &amp;nbsp;So far, bisecting hasn't hit on a single commit since the last 
&lt;br&gt;release where the tree actually _did_ work.
&lt;br&gt;&lt;br&gt;I note that I'm actually testing the old threads, not nptl. &amp;nbsp;This is pure 
&lt;br&gt;regression testing.
&lt;br&gt;&lt;br&gt;Rob
&lt;br&gt;-- 
&lt;br&gt;Latency is more important than throughput. It's that simple. - Linus Torvalds
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26508835&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/People-have-actually-been-testing-this--tp26508835p26508835.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505621</id>
	<title>Re: author should be kept unchanged</title>
	<published>2009-11-24T16:21:38Z</published>
	<updated>2009-11-24T16:21:38Z</updated>
	<author>
		<name>Austin Foxley-3</name>
	</author>
	<content type="html">On 11/23/2009 10:37 PM, Carmelo AMOROSO wrote:
&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;&amp;gt; Hash: SHA1
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi Austin,
&lt;br&gt;&amp;gt; unless there are changes due to merge, I think that &amp;quot;author&amp;quot; should be
&lt;br&gt;&amp;gt; kept unchanged, instead that's fine/required to add teh signed-off of the
&lt;br&gt;&amp;gt; committer as git policy requires.
&lt;br&gt;&lt;br&gt;Ah sorry about that. I really should have just cherry-picked like I 
&lt;br&gt;normally do.
&lt;br&gt;&lt;br&gt;-Austin
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505621&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/author-should-be-kept-unchanged-tp26491104p26505621.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26505590</id>
	<title>Re: nptl branch going away, use nptl_merge</title>
	<published>2009-11-24T16:18:21Z</published>
	<updated>2009-11-24T16:18:21Z</updated>
	<author>
		<name>Austin Foxley-3</name>
	</author>
	<content type="html">On 11/23/2009 07:51 PM, Rob Landley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sunday 22 November 2009 14:15:23 Austin Foxley wrote:
&lt;br&gt;&amp;gt;&amp;gt; For my own sanity, I'm killing (renaming) the non master based nptl
&lt;br&gt;&amp;gt;&amp;gt; branch. The difference of effort in keeping the two synced to master is
&lt;br&gt;&amp;gt;&amp;gt; quite significant.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; For the master based nptl_merge, all I have to do is a
&lt;br&gt;&amp;gt;&amp;gt; 'git merge origin/master' and fixup any conflicts. Done.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ooh, catching up on the non-cc: list emails, just made it to this thread. &amp;nbsp;So
&lt;br&gt;&amp;gt; pretty much you automatically get all the changes checked into &amp;quot;master&amp;quot;, and
&lt;br&gt;&amp;gt; we can now completely ignore &amp;quot;master&amp;quot; as a separate entity. &amp;nbsp;Merge done, as
&lt;br&gt;&amp;gt; far as I'm concerned.
&lt;/div&gt;&lt;br&gt;No that's not what that means. What I did makes it easy for me to keep 
&lt;br&gt;the nptl branch and the master branch in sync.
&lt;br&gt;&lt;br&gt;-Austin
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26505590&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/nptl-branch-going-away%2C-use-nptl_merge-tp26469000p26505590.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26498921</id>
	<title>Re: Problem using net-snmp, Buildroot and uclibc</title>
	<published>2009-11-24T08:22:25Z</published>
	<updated>2009-11-24T08:22:25Z</updated>
	<author>
		<name>Carmelo AMOROSO-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA1
&lt;br&gt;&lt;br&gt;Luca Altobelli wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear Sirs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;I'm using buildroot-2009.08 and I need net-snmp (currently I'm using
&lt;br&gt;&amp;gt; version 5.4.2.1) installed on my target system. When compiling no
&lt;br&gt;&amp;gt; problem encountered but, &amp;nbsp;if I try to launch /snmpd/ on my target
&lt;br&gt;&amp;gt; system, it gives the message &amp;quot;cannot find libc.so.6&amp;quot;. I have libc.so.6
&lt;br&gt;&amp;gt; on my host system, no trace of it on the target.
&lt;br&gt;&amp;gt; Attached is my Buildroot and Uclibc configurations.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yours sincerely
&lt;br&gt;&amp;gt; Altobelli Luca.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;It's clearly a buildroot issue, so you are asking to the wrong list.
&lt;br&gt;Anyway it seems that you are not using uClibc, instead you are
&lt;br&gt;linking against glibc.
&lt;br&gt;&lt;br&gt;Ciao,
&lt;br&gt;Carmelo
&lt;br&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; uClibc mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498921&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Version: GnuPG v1.4.9 (GNU/Linux)
&lt;br&gt;Comment: Using GnuPG with Fedora - &lt;a href=&quot;http://enigmail.mozdev.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://enigmail.mozdev.org&lt;/a&gt;&lt;br&gt;&lt;br&gt;iEYEARECAAYFAksMCEEACgkQoRq/3BrK1s9L2wCg8imTMGEtHUGjeQqoORmFiAJc
&lt;br&gt;o0cAn20HXr03mK0DwbrfN46NoFsFM9Hm
&lt;br&gt;=lS9Z
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;_______________________________________________
&lt;br&gt;uClibc mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26498921&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uClibc@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;http://lists.busybox.net/mailman/listinfo/uclibc&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.busybox.net/mailman/listinfo/uclibc&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-using-net-snmp%2C-Buildroot-and-uclibc-tp26498345p26498921.html" />
</entry>

</feed>
