Bug#734607: libc6-i686: granpt() fails with EPERM

2014-01-08 Thread Jakub Wilk

Package: libc6-i686
Version: 2.18-0experimental0
Severity: important

grantpt() always fail with errno=EPERM:

$ ./test_grantpt
grantpt: Operation not permitted

Curiously enough, the non-686-optimized versions works correctly:

$ LD_HWCAP_MASK=0 ./test_grantpt
okay!


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.12-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6-i686 depends on:
ii  libc6  2.18-0experimental0

--
Jakub Wilk
#define _GNU_SOURCE
#include stdio.h
#include stdlib.h

int main(int arg, char **argv)
{
	int fd = getpt();
	if (fd == -1) {
		perror(getpt);
		return 1;
	}
	int rc = grantpt(fd);
	if (rc != 0) {
		perror(grantpt);
		return 1;
	}
	fprintf(stderr, okay!\n);
	exit(0);
}


Processed: retitle 734607 to libc6-i686: grantpt() fails with EPERM

2014-01-08 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

 # typo
 retitle 734607 libc6-i686: grantpt() fails with EPERM
Bug #734607 [libc6-i686] libc6-i686: granpt() fails with EPERM
Changed Bug title to 'libc6-i686: grantpt() fails with EPERM' from 'libc6-i686: 
granpt() fails with EPERM'
 thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
734607: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=734607
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/handler.s.c.13891901327296.transcr...@bugs.debian.org



Bug#734607: libc6-i686: granpt() fails with EPERM

2014-01-08 Thread Adam Conrad
On Wed, Jan 08, 2014 at 02:59:11PM +0100, Jakub Wilk wrote:
 
 $ ./test_grantpt
 grantpt: Operation not permitted
 
 Curiously enough, the non-686-optimized versions works correctly:
 
 $ LD_HWCAP_MASK=0 ./test_grantpt
 okay!

Ahh, fairly sure I know what's going on here.  I'll test my theory
later tonight and upload the current SVN HEAD if I'm right.

... Adam


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140108200053.gj10...@0c3.net