2009-03-09 01:03:08 |
Anders Kaseorg |
bug |
|
|
added bug |
2009-03-09 01:03:08 |
Anders Kaseorg |
bug |
|
|
added attachment 'popen-test.c' (popen-test.c) |
2009-03-09 01:08:16 |
Evan Broder |
glibc: status |
New |
Confirmed |
|
2009-03-09 01:08:16 |
Evan Broder |
glibc: statusexplanation |
|
I would be the second person who tested this on a second Jaunty install and a second Lenny install |
|
2009-03-09 05:34:53 |
Anders Kaseorg |
title |
Jaunty i386 popen() misbehaves on Lenny 2.6.26-1-amd64 kernel |
Jaunty i386 popen() misbehaves on x86_64 kernel 2.6.26 |
|
2009-03-09 08:24:12 |
Anders Kaseorg |
bug |
|
|
assigned to linux (Ubuntu) |
2009-03-09 09:02:11 |
Anders Kaseorg |
bug |
|
|
added subscriber Ubuntu Kernel Team |
2009-03-09 09:09:35 |
Anders Kaseorg |
bug |
|
|
assigned to linux-2.6 (Debian) |
2009-03-09 18:31:25 |
Anders Kaseorg |
bug |
|
|
added attachment 'bad-syscall-test.c' (bad-syscall-test.c) |
2009-03-09 22:55:07 |
Leann Ogasawara |
linux: status |
New |
Triaged |
|
2009-03-09 22:55:07 |
Leann Ogasawara |
linux: importance |
Undecided |
Medium |
|
2009-03-09 22:55:07 |
Leann Ogasawara |
linux: statusexplanation |
|
|
|
2009-03-10 05:05:03 |
Bug Watch Updater |
linux-2.6: status |
Unknown |
New |
|
2009-03-10 19:57:12 |
Andy Whitcroft |
linux: status |
Triaged |
In Progress |
|
2009-03-10 19:57:12 |
Andy Whitcroft |
linux: assignee |
|
apw |
|
2009-03-10 19:57:12 |
Andy Whitcroft |
linux: statusexplanation |
|
It seems that the only sensible fix is to fix the kernel. If this will affect new system calls then this does seem like something worth fixing correctly. |
|
2009-03-10 19:57:29 |
Andy Whitcroft |
glibc: status |
Confirmed |
Invalid |
|
2009-03-10 19:57:29 |
Andy Whitcroft |
glibc: statusexplanation |
I would be the second person who tested this on a second Jaunty install and a second Lenny install |
|
|
2009-03-10 23:29:17 |
Andy Whitcroft |
linux: status |
In Progress |
Incomplete |
|
2009-03-10 23:29:17 |
Andy Whitcroft |
linux: statusexplanation |
It seems that the only sensible fix is to fix the kernel. If this will affect new system calls then this does seem like something worth fixing correctly. |
|
|
2009-03-11 07:29:07 |
Anders Kaseorg |
linux: status |
Incomplete |
In Progress |
|
2009-03-11 07:29:07 |
Anders Kaseorg |
linux: statusexplanation |
|
Yep, the Intrepid amd64 kernel also fixes the problem. |
|
2009-03-11 17:42:48 |
Anders Kaseorg |
bug |
|
|
assigned to fedora |
2009-03-11 17:49:37 |
Anders Kaseorg |
bug |
|
|
assigned to openvz-kernel |
2009-03-11 18:01:57 |
Bug Watch Updater |
openvz-kernel: status |
Unknown |
Confirmed |
|
2009-03-11 18:03:56 |
Bug Watch Updater |
None: status |
Unknown |
Fix Released |
|
2009-03-15 03:38:30 |
Tim Gardner |
linux: status |
In Progress |
Fix Committed |
|
2009-03-15 03:38:30 |
Tim Gardner |
linux: statusexplanation |
|
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-jaunty.git;a=commit;h=73eec19c0301e46b46184cc8c16704ee6b9e26a5 |
|
2009-03-15 03:38:30 |
Tim Gardner |
linux: milestone |
|
ubuntu-9.04-beta |
|
2009-03-15 03:41:24 |
Tim Gardner |
linux (Ubuntu Intrepid): status |
New |
In Progress |
|
2009-03-15 03:41:24 |
Tim Gardner |
linux (Ubuntu Intrepid): assignee |
|
stefan-bader-canonical |
|
2009-03-15 03:41:24 |
Tim Gardner |
linux (Ubuntu Intrepid): statusexplanation |
|
|
|
2009-03-16 02:45:06 |
Launchpad Janitor |
linux: status |
Fix Committed |
Fix Released |
|
2009-03-16 10:47:40 |
Matthias Klose |
glibc (Ubuntu Intrepid): status |
New |
Invalid |
|
2009-03-16 10:47:40 |
Matthias Klose |
glibc (Ubuntu Intrepid): statusexplanation |
|
|
|
2009-03-16 12:52:17 |
Stefan Bader |
description |
There is something very wrong with the popen() implementation in Jaunty on i386. It works fine when run on the Jaunty kernel, but when run on the Lenny 2.6.26-1-amd64 kernel, it misbehaves as follows. The output of the subcommand, instead of being fed to the pipe, is fed directly to stdout; the pipe either returns errors or hangs forever.
This causes weird errors in many programs running in a Jaunty i386 chroot on our Lenny build server.
Attached is a small 5-line test program. Run
gcc -static popen-test.c -o popen-test
and then copy popen-test to a Lenny machine to see the problem.
Correct output:
$ uname -r
2.6.28-8-generic
$ ./popen-test
popen returned 0x1ec6400
ferror returned 0
fread returned 19
ferror returned 0
pclose returned 0
Incorrect output:
$ uname -r
2.6.26-1-amd64
$ ./popen-test
popen returned 0x935f688
ferror returned 0
SHOULD NOT DISPLAY
This has been reproduced independently by two of us with two different Jaunty i386 installs and two different Lenny installs. |
SRU justification:
Impact: A bug in the syscall implementation can cause incorrect behavior when trying to use syscalls that are not implemented.
Fix: Cherry pick from upstream to correctly return an error code in that situation.
Testcase: see test below.
---
There is something very wrong with the popen() implementation in Jaunty on i386. It works fine when run on the Jaunty kernel, but when run on the Lenny 2.6.26-1-amd64 kernel, it misbehaves as follows. The output of the subcommand, instead of being fed to the pipe, is fed directly to stdout; the pipe either returns errors or hangs forever.
This causes weird errors in many programs running in a Jaunty i386 chroot on our Lenny build server.
Attached is a small 5-line test program. Run
gcc -static popen-test.c -o popen-test
and then copy popen-test to a Lenny machine to see the problem.
Correct output:
$ uname -r
2.6.28-8-generic
$ ./popen-test
popen returned 0x1ec6400
ferror returned 0
fread returned 19
ferror returned 0
pclose returned 0
Incorrect output:
$ uname -r
2.6.26-1-amd64
$ ./popen-test
popen returned 0x935f688
ferror returned 0
SHOULD NOT DISPLAY
This has been reproduced independently by two of us with two different Jaunty i386 installs and two different Lenny installs. |
|
2009-03-16 12:52:38 |
Stefan Bader |
linux: status |
In Progress |
Fix Committed |
|
2009-03-16 12:53:16 |
Stefan Bader |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2009-03-16 14:24:16 |
Andy Whitcroft |
linux: importance |
Undecided |
Medium |
|
2009-04-20 14:44:13 |
Bug Watch Updater |
openvz-kernel: status |
Confirmed |
Fix Released |
|
2009-06-05 10:07:44 |
Martin Pitt |
tags |
|
verification-needed |
|
2009-06-29 01:39:13 |
Evan Broder |
removed subscriber Evan Broder |
|
|
|
2009-07-03 09:20:20 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/karmic/linux-ports |
|
2009-07-30 09:14:45 |
Steve Beattie |
tags |
verification-needed |
verification-done |
|
2009-09-14 13:52:08 |
Launchpad Janitor |
linux (Ubuntu Intrepid): status |
Fix Committed |
Fix Released |
|
2009-10-07 23:11:12 |
Bug Watch Updater |
linux-2.6 (Debian): status |
New |
Fix Released |
|
2017-10-27 10:20:34 |
Bug Watch Updater |
fedora: importance |
Unknown |
Medium |
|