pcp
[Top] [All Lists]

[Bug 1129] pmDupContext-created context SEGVs during pmDestroyContext

To: pcp@xxxxxxxxxxx
Subject: [Bug 1129] pmDupContext-created context SEGVs during pmDestroyContext
From: bugzilla-daemon@xxxxxxxxxxx
Date: Tue, 24 Nov 2015 21:25:25 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <bug-1129-835@xxxxxxxxxxxxxxxx/bugzilla/>
References: <bug-1129-835@xxxxxxxxxxxxxxxx/bugzilla/>

Comment # 1 on bug 1129 from
libpcp/src/context.c pmDupContext:

00792     oldcon = contexts[old];     /* contexts[] may have been relocated */
00793     newcon = contexts[new];
[...]
00799     if (newcon->c_archctl != NULL)
00800         free(newcon->c_archctl);        /* will allocate a new one below
*/
00801     *newcon = *oldcon;          /* struct copy */
[...]

We're doing a bitwise copy between two __pmContext structs;
this is probably not valid with the embedded attribute etc.
structures.


You are receiving this mail because:
  • You are on the CC list for the bug.
<Prev in Thread] Current Thread [Next in Thread>