https://bugs.kde.org/show_bug.cgi?id=366131

            Bug ID: 366131
           Summary: Illegal opcode in OS X 11.0 when using function
                    getpwuid()
           Product: valgrind
           Version: 3.11.0
          Platform: MacPorts Packages
                OS: OS X
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: jsew...@acm.org
          Reporter: cqu...@arcor.de

The following code snippet:

#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
int main()
{
    struct passwd *pw = getpwuid(getuid());
}

 generates the following error message:
==88748== valgrind: Unrecognised instruction at address 0x10043bb34.
...

 and raises SIGILL signal. The full stacktrace is as follows:
==88782==    at 0x10043BB34: OSAtomicEnqueue (in
/usr/lib/system/libsystem_platform.dylib)
==88782==    by 0x1004ABFD7: _xpc_dictionary_apply_node_f_wire_apply (in
/usr/lib/system/libxpc.dylib)
==88782==    by 0x1004AB43B: _xpc_dictionary_apply_wire_f (in
/usr/lib/system/libxpc.dylib)
==88782==    by 0x1004AA69A: _xpc_dictionary_apply_node_f (in
/usr/lib/system/libxpc.dylib)
==88782==    by 0x1004ABF6F: xpc_dictionary_apply (in
/usr/lib/system/libxpc.dylib)
==88782==    by 0x1002A3689: _extract_user (in
/usr/lib/system/libsystem_info.dylib)
==88782==    by 0x1002A32C9: _ds_item (in /usr/lib/system/libsystem_info.dylib)
==88782==    by 0x1002A3064: ds_user_byuid (in
/usr/lib/system/libsystem_info.dylib)
==88782==    by 0x1002A2DFB: search_item_bynumber (in
/usr/lib/system/libsystem_info.dylib)
==88782==    by 0x1002A24CA: getpwuid (in /usr/lib/system/libsystem_info.dylib)
==88782==    by 0x100000F7F: main (in ./test_getpwuid)

 Valgrind has been installed from macports, and the code snippet has been
compiled simply as 
 gcc -o test_getpwuid test_getpwuid.c

 Regards,
 Enrique

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to