[Bug 366040] New: pthread - sem_open command panics if globally unique identifier refers to existing file
https://bugzilla.novell.com/show_bug.cgi?id=366040 Summary: pthread - sem_open command panics if globally unique identifier refers to existing file Product: SUSE Linux 10.1 Version: Final Platform: All OS/Version: SuSE Linux 10.1 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: estellnb@gmail.com QAContact: qa@suse.de Found By: --- actual behaviour: If the '*name'-argument refers to an existing file, directory or mountpoint (f.e./home) sem_open issues one of the following errors: sem_open failed : No such file or directory sem_open failed : Not a directory sem_open failed : Permission denied This can easily happen since '/somename' rather than 'somename' has been suggested as an ident. Besides this an implementation based on semget/ftok will in deed require a real filename. man:sem_overview(7): Named semaphores A named semaphore is identified by a name of the form /somename. Two processes can operate on the same named semaphore by passing the same name to sem_open(3). rpm -qf /usr/lib/libpthread.so glibc-devel-2.4-31.43.6 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=366040 User estellnb@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=366040#c1 --- Comment #1 from Elmar Stellnberger (AT/K) <estellnb@gmail.com> 2008-02-29 09:53:54 MST --- Created an attachment (id=197925) --> (https://bugzilla.novell.com/attachment.cgi?id=197925) demo C program test program globsem (Different invocations of the 'globsem' executable do not enter their critical section coincidently): -- force sequential exec by invoc. order: time { globsem ; globsem ; globsem ; globsem; echo ---; } -- rely on mutual exclusion in critical section: -- does not fall below 800ms i.e. 4xwait of 200ms in critical section disown; time { globsem & globsem & globsem & globsem; wait; echo ---; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=366040 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |pbaudis@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com