This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23751] New: Malfunction of semctl() called from a shared object


https://sourceware.org/bugzilla/show_bug.cgi?id=23751

            Bug ID: 23751
           Summary: Malfunction of semctl() called from a shared object
           Product: glibc
           Version: 2.13
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: marcin at sacha dot pl
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 11305
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11305&action=edit
simple test program

The semctl() function returns wrong values in sem_perm structure when used in a
shared object. When called from a standalone program (ie. a plain main()
function) values are correct and reflect real semaphore attributes. The error
regards IPC_STAT and SEM_STAT commands.

In the attachment you can find a simple test program. Build it in two ways -
first as a single executable, and a second as an executable (prog.c) and a
shared library (lib.c). Then create some semaphores on the system and compare
the results of both versions of the program.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]