Source: sip4
Version: 4.19.6+dfsg-1
Severity: important
Tags: upstream patch

Dear Maintainer,

SIP 4.19.6 segfaults when running the code generator as part of building 
wxPython Phoenix.  This has been fixed upstream, but it would be good if 
the patch could be cherry-picked.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-3-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
# HG changeset patch
# User Phil Thompson <p...@riverbankcomputing.com>
# Date 1515952150 0
# Node ID 8f9c478295d36b07066fba1c2ac8daacf632dde7
# Parent  e37301b91a57db62ed77ad5c912fcda30d85c997
Fixed the generated of a default value that is a global unscoped enum.

diff -r e37301b91a57 -r 8f9c478295d3 sipgen/gencode.c
--- a/sipgen/gencode.c  Tue Jan 09 14:16:47 2018 +0000
+++ b/sipgen/gencode.c  Sun Jan 14 17:49:10 2018 +0000
@@ -7585,7 +7585,7 @@
         {
             if (isScopedEnum(ed))
                 prcode(fp, "%E", ed);
-            else
+            else if (ed->ecd != NULL)
                 prEnumMemberScope(ed->members, fp);
 
             prcode(fp, "::%s", ed->members->cname);

_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to