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 nptl/22351] New: Unaligned pthread_cond_t stopped working


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

            Bug ID: 22351
           Summary: Unaligned pthread_cond_t stopped working
           Product: glibc
           Version: 2.27
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nptl
          Assignee: unassigned at sourceware dot org
          Reporter: tuliom at linux dot vnet.ibm.com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 10556
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10556&action=edit
Modified version of nptl/tst-cond1.c

The attached program works well on glibc <= 2.24.

It has the following packed structure:

struct thread_info_t
{
  pthread_mutex_t mut;
  char c;
  pthread_cond_t cond;
};

If it's compiled on a glibc <= 2.24 machine and copied to a glibc >= 2.25
machine, it aborts.

Confirmed on x86_64 and powerpc64le.

-- 
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]