[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2015-04-08 Thread Launchpad Bug Tracker
This bug was fixed in the package eglibc - 2.15-0ubuntu10.12

---
eglibc (2.15-0ubuntu10.12) precise; urgency=medium

  * cvs-vfprintf-multibyte.diff: Fix memory exhausted bug in who, by no
longer parsing %s format arguments as multibyte strings (LP: #1109327)
  * cvs-__SSE_MATH__-feraiseexcept.diff: Check for __SSE_MATH__ in x86_64
feraiseexcept to fix backported -m32 builds of GCC 4.8 (LP: #1165387)
  * cvs-canonical-name.diff: Don't incorrectly do a PTR lookup when asked
to do a canonical lookup for a host using AI_CANONNAME (LP: #1057526)
  * cvs-atomic-fastbins.diff: Fix race in free() of fastbin (LP: #1020210)
 -- Adam Conrad adcon...@ubuntu.com   Wed, 25 Mar 2015 13:28:41 -0600

** Changed in: eglibc (Ubuntu Precise)
   Status: Fix Committed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2015-03-27 Thread Adam Conrad
Verified that libc6/2.15-0ubuntu10.12 fixes this bug.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2015-03-26 Thread Brian Murray
Hello Chris, or anyone else affected,

Accepted eglibc into precise-proposed. The package will build now and be
available at
https://launchpad.net/ubuntu/+source/eglibc/2.15-0ubuntu10.12 in a few
hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, and change the tag
from verification-needed to verification-done. If it does not fix the
bug for you, please add a comment stating that, and change the tag to
verification-failed.  In either case, details of your testing will help
us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: eglibc (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2015-03-26 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/eglibc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2015-03-25 Thread Adam Conrad
** Changed in: eglibc (Ubuntu Lucid)
   Status: In Progress = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2014-12-03 Thread Rolf Leggewie
quantal has seen the end of its life and is no longer receiving any
updates. Marking the quantal task for this ticket as Won't Fix.

** Changed in: eglibc (Ubuntu Quantal)
   Status: In Progress = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-11 Thread Bug Watch Updater
** Changed in: eglibc (Debian)
   Status: Unknown = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-10 Thread Bug Watch Updater
Launchpad has imported 35 comments from the remote bug at
http://sourceware.org/bugzilla/show_bug.cgi?id=6530.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2008-05-18T10:23:18+00:00 Pierre Habouzit wrote:

With the following testcase, it happens while it shouldn't, according to
the manual:
-8---
#include stdio.h
#include locale.h

#define STR ²éľÂíɱ²¡¶¾£¬ÖܺèµtÄúµÄ360²»×¨Òµ£¡

int main(void) {
char buf[200];
setlocale(LC_ALL, );
printf(%d\n, snprintf(buf, 150, %.50s, STR));
return 0;
}
-8---

The manual page has this to say:
 About precision:
  An optional precision, in the form of a period (#8216;.#8217;)  followed by 
an
  optional decimal digit string.(...) This gives (...) the maximum
  number of characters to be printed from a string for s and S
  conversions.

 About s:
  If no l modifier is present: The const char * argument is expected to
  be a pointer to an array of character type(...)

  If an l modifier is present: The const wchar_t * argument is expected
  to be a pointer to an array of wide characters.  Wide characters from
  the  array  are converted  to  multibyte  characters (...)

There is no l modifier, but still, the string goes through the
multibyte conversion code, and fails because the string is invalid
multibyte.

Note, it only works with non UTF-8 locale set in LC_CTYPE or LC_ALL.

This is debian bug http://bugs.debian.org/208308

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/0


On 2008-05-18T10:38:54+00:00 Pierre Habouzit wrote:

Err the title is bogus, the thing is that sprintf returns -1 bogusly, if you 
run the previous testcase using  LC_ALL=ja_JP.EUC-JP e.g.

%s should not care about multibyte at all

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/1


On 2010-08-30T13:47:37+00:00 Ævar Arnfjörð Bjarmason wrote:

Here's a simpler testcase for this bug courtesy of Jonathan Nieder:

#include stdio.h
#include locale.h

int main(void)
{
int n;

setlocale(LC_CTYPE, );
n = printf(%.11s\n, Author: \277);
perror(printf);
fprintf(stderr, return value: %d\n, n);
return 0;
}

Under a C locale that'll do the right thing:

$ LANG=C ./test
Author: #65533;
printf: Success
return value: 10

But not under a UTF-8 locale, since \277 isn't a valid UTF-8 sequence:

$ LANG=en_US.utf8 ./test
printf: Invalid or incomplete multibyte or wide character
return value: -1

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/2


On 2012-03-11T16:31:51+00:00 Bugdal wrote:

This may be a duplicate of another longstanding bug report that Mr.
Drepper has marked as WONTFIX despite it being obviously non-conformant.
He seems to believe, for whatever reason, that avoiding writing out
incomplete multibyte sequences in incorrect programs that use %.NNs
formats haphazardly with multibyte strings is more important than not
breaking correct programs that are using %.NNs with strings not intended
to be interpreted as multibyte characters in the current locale. Neither
C nor POSIX makes any requirement that strings used with the %s format
specifier be valid multibyte character sequences in the current locale;
glibc is simply wrong on this issue.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/3


On 2012-03-11T16:55:49+00:00 Carlos-0 wrote:

I'm moving this bug to unassigned. We need someone to review this issue
and confirm the problem.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/4


On 2012-03-11T16:59:07+00:00 Carlos-0 wrote:

What would really make this bug stand out is if someone did the work to
review what the *standards* say about this particular behaviour.
Reviewing what should be accepted is 90% of the work in issues like
this. Help on this from the bug submitter would be very useful.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/comments/5


On 2012-03-11T17:03:57+00:00 Bugdal wrote:

My pleasure. Per N1256 (C99+TC1/2/3):

s
If no l length modifier is present, the argument shall be a pointer to the 
initial element of an array of character type.246) Characters from the array 
are 

[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-08 Thread Chris J Arges
** Also affects: eglibc (Ubuntu Lucid)
   Importance: Undecided
   Status: New

** Changed in: eglibc (Ubuntu Lucid)
   Importance: Undecided = Medium

** Changed in: eglibc (Ubuntu Lucid)
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-08 Thread Chris J Arges
This also affects the lucid version. I did a test build with Adam's 
asplodey-who patch here:
http://people.canonical.com/~arges/lp1109327/
I tested this and it fixes the issue.

** Changed in: eglibc (Ubuntu Lucid)
 Assignee: (unassigned) = Adam Conrad (adconrad)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Chris J Arges
If I install eglibc 2.15-0ubuntu20 it fails, if I install 2.16-0ubuntu1 it 
works.
Tested with packages here: https://launchpad.net/ubuntu/raring/+source/eglibc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Chris J Arges
This seems to work within a precise chroot, but a non-chroot precise
environment it fails.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Chris J Arges
A workaround to this issue is to use 'export LANG=C' before issuing the
command.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Adam Conrad
A quick test here suggests that the attached backport patch should DTRT.
I think.  Unless my testing methodology sucks.  Putting it through a
proper rebuild test to see.

** Patch added: asplodey-who.patch
   
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+attachment/3519812/+files/asplodey-who.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Adam Conrad
Okay, tested with a proper rebuild, and that patch works.  Will include
it in the next eglibc SRU round.

** Changed in: eglibc (Ubuntu Precise)
 Assignee: Chris J Arges (arges) = Adam Conrad (adconrad)

** Changed in: eglibc (Ubuntu Quantal)
 Assignee: Chris J Arges (arges) = Adam Conrad (adconrad)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Adam Conrad
** Bug watch added: Sourceware.org Bugzilla #6530
   http://sourceware.org/bugzilla/show_bug.cgi?id=6530

** Also affects: eglibc via
   http://sourceware.org/bugzilla/show_bug.cgi?id=6530
   Importance: Unknown
   Status: Unknown

** Bug watch added: Debian Bug tracker #208308
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208308

** Also affects: eglibc (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208308
   Importance: Unknown
   Status: Unknown

** Project changed: eglibc = glibc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Chris J Arges
http://people.canonical.com/~adconrad/lp1109327/

I tested this on Precise and verified that it does fix the issue.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1109327] Re: who command gets who: memory exhausted for certain inputs

2013-02-07 Thread Chris J Arges
** Description changed:

+ SRU Justification:
+ [Impact] 
+  * When using who, certain characters can cause issues with eglibc's vfprintf 
causing memory issues and who to print 'memory exhausted'.
+ 
+ [Test Case]
+ 
+  * Download wtmp.clean.
+  * locale-gen en_US.UTF-8 # if necessary
+  * LANG=en_US.UTF-8 who wtmp.clean
+  * If you see 'who: memory exhausted' the test failed.
+ 
+ [Regression Potential]
+ 
+  * This patch reverts a change that fixes the issue in BZ #6530.
+  * The patch also adds a test case to check for handling of incomplete 
multi-byte characters.
+  * upstream patch URL: 
http://sourceware.org/git/?p=glibc.git;a=commit;h=715a900c9085907fa749589bf738b192b1a2bda5
+ 
+ --
+ 
  * Description:
  When running who with the attached file we get an error of who: memory 
exhausted.
- $ who wtmp.clean
+ $ who wtmp.clean
  
- This works fine in newer versions of eglibc. I was able to determine that 
coreutils was not the problem 
- by using the precise version of coreutils with the raring eglibc version. In 
that case the problem went away. 
+ This works fine in newer versions of eglibc. I was able to determine that 
coreutils was not the problem
+ by using the precise version of coreutils with the raring eglibc version. In 
that case the problem went away.
  In addition I've compiled the precise version for raring, and the problem is 
not present.
  
  * Versions affected:
  This affects current Lucid, Oneiric, Precise and Quantal eglibc versions.
- 2.11.1-0ubuntu7.12 
+ 2.11.1-0ubuntu7.12
  2.13-20ubuntu5.3
  2.15-0ubuntu10.4
  2.15-0ubuntu20.1
  But does not affect Raring eglibc ( 2.17-0ubuntu1 )

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1109327

Title:
  who command gets who: memory exhausted for certain inputs

To manage notifications about this bug go to:
https://bugs.launchpad.net/glibc/+bug/1109327/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs