Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Checkins

r76403 - in python/trunk: Misc/NEWS configure configure.in

 

 

Python checkins RSS feed   Index | Next | Previous | View Threaded


python-checkins at python

Nov 19, 2009, 10:20 AM

Post #1 of 2 (161 views)
Permalink
r76403 - in python/trunk: Misc/NEWS configure configure.in

Author: ronald.oussoren
Date: Thu Nov 19 17:25:21 2009
New Revision: 76403

Log:
Fix for issue #7085

On MacOSX 10.6 the CoreFoundation framework must be initialized on the main
thread, the constructor function in that framework will cause an SIGABRT when
it is called on any other thread.

Because a number of extension link (indirectly) to CoreFoundation and the
Python core itself didn't the interpreter crashed when importing some
extensions, such as _locale, on a secondary thread.

This fix ensures that Python is linked to CoreFoundation on OSX, which results
in the CoreFoundation constructor being called when Python is loaded. This
does not require code changes.


Modified:
python/trunk/Misc/NEWS
python/trunk/configure
python/trunk/configure.in

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Thu Nov 19 17:25:21 2009
@@ -12,6 +12,9 @@
Core and Builtins
-----------------

+- Issue #7085: Fix crash when importing some extensions in a thread
+ on MacOSX 10.6.
+
- Issue #7117: Backport round implementation from Python 3.x. round
now uses David Gay's correctly-rounded string <-> double conversions
(when available), and so produces correctly rounded results. There

Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure (original)
+++ python/trunk/configure Thu Nov 19 17:25:21 2009
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 76300 .
+# From configure.in Revision: 76308 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
@@ -3865,7 +3865,7 @@
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
-rm -f conftest*
+rm -f -r conftest*



@@ -5413,7 +5413,7 @@
else
ac_cv_header_stdc=no
fi
-rm -f conftest*
+rm -f -r conftest*

fi

@@ -5434,7 +5434,7 @@
else
ac_cv_header_stdc=no
fi
-rm -f conftest*
+rm -f -r conftest*

fi

@@ -6532,7 +6532,7 @@


fi
-rm -f conftest*
+rm -f -r conftest*

{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
echo "${ECHO_T}$was_it_defined" >&6; }
@@ -7062,7 +7062,7 @@
else
ac_cv_type_uid_t=no
fi
-rm -f conftest*
+rm -f -r conftest*

fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
@@ -15722,7 +15722,7 @@
else
unistd_defines_pthreads=no
fi
-rm -f conftest*
+rm -f -r conftest*

{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
@@ -17336,7 +17336,7 @@
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i
fi
-rm -f conftest*
+rm -f -r conftest*

;;
kame)
@@ -17359,7 +17359,7 @@
ipv6libdir=/usr/local/v6/lib
ipv6trylibc=yes
fi
-rm -f conftest*
+rm -f -r conftest*

;;
linux-glibc)
@@ -17380,7 +17380,7 @@
ipv6type=$i;
ipv6trylibc=yes
fi
-rm -f conftest*
+rm -f -r conftest*

;;
linux-inet6)
@@ -17418,7 +17418,7 @@
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
-rm -f conftest*
+rm -f -r conftest*

;;
v6d)
@@ -17441,7 +17441,7 @@
ipv6libdir=/usr/local/v6/lib;
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
fi
-rm -f conftest*
+rm -f -r conftest*

;;
zeta)
@@ -17463,7 +17463,7 @@
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
-rm -f conftest*
+rm -f -r conftest*

;;
esac
@@ -25744,7 +25744,7 @@
_ACEOF

fi
-rm -f conftest*
+rm -f -r conftest*

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -25763,7 +25763,7 @@
_ACEOF

fi
-rm -f conftest*
+rm -f -r conftest*

fi

@@ -26033,7 +26033,7 @@
_ACEOF

fi
-rm -f conftest*
+rm -f -r conftest*

fi

@@ -27111,6 +27111,11 @@

fi

+if test $ac_sys_system = Darwin
+then
+ LIBS="$LIBS -framework CoreFoundation"
+fi
+

{ echo "$as_me:$LINENO: checking for %zd printf() format support" >&5
echo $ECHO_N "checking for %zd printf() format support... $ECHO_C" >&6; }

Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in (original)
+++ python/trunk/configure.in Thu Nov 19 17:25:21 2009
@@ -3999,6 +3999,11 @@
[Define to printf format modifier for long long type])
fi

+if test $ac_sys_system = Darwin
+then
+ LIBS="$LIBS -framework CoreFoundation"
+fi
+

AC_CACHE_CHECK([for %zd printf() format support], ac_cv_have_size_t_format, [dnl
AC_TRY_RUN([
_______________________________________________
Python-checkins mailing list
Python-checkins [at] python
http://mail.python.org/mailman/listinfo/python-checkins


dickinsm at gmail

Nov 20, 2009, 9:22 AM

Post #2 of 2 (132 views)
Permalink
Re: r76403 - in python/trunk: Misc/NEWS configure configure.in [In reply to]

On Thu, Nov 19, 2009 at 4:28 PM, ronald.oussoren
<python-checkins [at] python> wrote:
> Author: ronald.oussoren
> Date: Thu Nov 19 17:25:21 2009
> New Revision: 76403
>
> Log:
> Fix for issue #7085

[...]

> Modified: python/trunk/configure
> ==============================================================================
> --- python/trunk/configure      (original)
> +++ python/trunk/configure      Thu Nov 19 17:25:21 2009
> @@ -1,5 +1,5 @@
>  #! /bin/sh
> -# From configure.in Revision: 76300 .
> +# From configure.in Revision: 76308 .
>  # Guess values for system-dependent variables and create Makefiles.
>  # Generated by GNU Autoconf 2.61 for python 2.7.
>  #
> @@ -3865,7 +3865,7 @@
>   { echo "$as_me:$LINENO: result: no" >&5
>  echo "${ECHO_T}no" >&6; }
>  fi
> -rm -f conftest*
> +rm -f -r conftest*
>
>
>
> @@ -5413,7 +5413,7 @@
>  else
>   ac_cv_header_stdc=no
>  fi
> -rm -f conftest*
> +rm -f -r conftest*
>
>  fi
>
> @@ -5434,7 +5434,7 @@
>  else
>   ac_cv_header_stdc=no
>  fi
> -rm -f conftest*
> +rm -f -r conftest*

[.Snip lots more occurrences of -rm -f conftext* \n +rm -f -r conftest* ]

It looks as though the autoconf provided with OS X 10.6 isn't quite
standard...

Mark
_______________________________________________
Python-checkins mailing list
Python-checkins [at] python
http://mail.python.org/mailman/listinfo/python-checkins

Python checkins RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.