This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Python


Rob,

On Tue, Mar 20, 2001 at 05:47:18PM -0500, Jason Tishler wrote:
> On Tue, Mar 20, 2001 at 04:37:18PM +1100, Robert Collins wrote:
> > 	What errors do you get building python with threads ? I'm
> > working on the thread support and thought that python might be a nice
> > cross-check for my test-suites...
> 
> Don't worry -- I've noticed... :,)
> 
> I'll do a build, run the regression tests (if possible), and report back.

I had the following issues when I configured Python to use your pthreads
support:

1. To compile I had to apply the attached patch to sys/signal.h.  IIRC,
this is a known issue.

2. The Python regression tests run much slower with pthreads enabled
than without.  Also, the CPU seemed to be pegged at 100% more often
with pthreads than without.

3. The Python regression tests consistently crash during test_popen2
with the following error message:

    H:\src\Python-2.1b2a-threads\python.exe: *** couldn't release memory 0x1A02C000(5013504) for 'H:\src\Python-2.1b2a-threads\build\lib.cygwin_nt-4.0-1.3.0-i686-2.1\imageop.dll' alignment, Win32 error 487

    358288600 [main] python 366 sync_with_child: child 269(0x248) died before initialization with status code 0x1
    358288838 [main] python 366 sync_with_child: *** child state child loading dlls
    358291613 [sig] python 366 stackdump: Dumping stack trace to python.exe.stackdump

I've attached the stackdump for your perusal.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com
--- signal.h.orig	Tue Mar 27 09:14:18 2001
+++ signal.h	Mon Mar 26 23:02:10 2001
@@ -159,7 +159,7 @@ int _EXFUN(sigsuspend, (const sigset_t *
 int _EXFUN(sigpause, (int));
 
 #if defined(_POSIX_THREADS)
-int _EXFUN(pthread_kill, (pthread_t thread, int sig));
+// int _EXFUN(pthread_kill, (pthread_t thread, int sig));
 #endif
 
 #if defined(_POSIX_REALTIME_SIGNALS)
Stack trace:
Frame     Function  Args
0240E374  77F04F37  (00000114, 0000EA60, 00000000, 6104A2B3)
0240E3C4  77F04F37  (00000000, 0240E594, 0000010D, 6104897D)
0240E414  61048CE9  (00000006, 0000016E, 0240EA04, 00000248)
0240E454  61046549  (0000016E, 00000006, 77F66FD0, 02415C90)
0240E484  610466F5  (0000016E, 00000006, 77F1CE6B, 00000002)
0240E4A4  610815F2  (6108B0A0, 0000016E, 00000006, 6102348C)
0240E4D4  610761C4  (6108B0A0, 00000006, 00000000, 00000214)
0240E4F4  61076199  (00000006, 00008000, 61023330, 6102348C)
0240E514  610728CC  (0240EA04, 61098208, 0240E9F8, 61023722)
0240E544  61023653  (0240EA04, 00000214, 00000001, 61024225)
0240EA14  61024A8F  (0240EA3C, 0240EB94, 0240EB98, 0240EB9C)
0240EBA4  61024F52  (0A012924, 0000020C, 0240EBE4, 61D59619)
0240EBC4  61D97FC1  (00000000, 0A012924, 0240EC04, 61058743)
0240EC04  61D758B2  (0A01C2F8, 0A012924, 00000000, 61D5B8AE)
0240EC34  61D7575A  (0A01C2F8, 0A012924, 00000000, 61D5BAAE)
0240EC74  61D76048  (0A01C2F8, 0240ED2C, 00000000, 00000000)
End of stack trace (more stack frames may be present)
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]