This is the mail archive of the cygwin 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]
Other format: [Raw text]

RE: Python stackdump on "succesful" exit after import of python-requests


Interesting - I had the same issue earlier this week; I worked around it by using python3 instead, which didn't cause the same issue. (I figured it was just me not doing something right).

Obviously that doesn't explain the behavior but I didn't have time to further investigate the issue with python 2.7.

I ran into the issue when I was trying to build libvirt-python on Cygwin.

I'd be curious to know what the real root cause for this abort is.

Thanks,

Maarten Jacobs 

----------------------------------------
From: robert.martens@bell.ca
To: cygwin@cygwin.com
Subject: Python stackdump on "succesful" exit after import of python-requests
Date: Fri, 29 Jan 2016 21:38:54 +0000


Hello,
I am having a strange issue with Python 2.7 on cygwin.
Whenever a script of mine imports 'requests' (python-requests installed via cygwin installer), after it closes I get an "Aborted" message and a stack dump.

This consistently causes the issue:
$ python
Python 2.7.10 (default, Jun 1 2015, 18:17:45)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> exit()
Aborted (core dumped)

And here is the stackdump
$ cat python2.7.exe.stackdump
Stack trace:
Frame Function Args
0028C868 61033A23 (00000244, 0000EA60, 000000A4, 0028C8D8)
0028C998 610F27E2 (000000C8, 000000CC, 000000B8, 6111295F)

This is what gdb says:
(gdb) r
Starting program: /usr/bin/python
[New Thread 8744.0x1ca0]
[New Thread 8744.0x24f4]
[New Thread 8744.0x192c]
[New Thread 8744.0x11f0]
Python 2.7.10 (default, Jun 1 2015, 18:17:45)
[GCC 4.9.2] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
[New Thread 8744.0x2380]
>>> quit()

Program received signal SIGABRT, Aborted.
0x65c63de4 in Py_Exit () at /usr/src/debug/python-2.7.10-1/Python/pythonrun.c:1780
1780 exit(sts);
(gdb) bt
#0 0x65c63de4 in Py_Exit () at /usr/src/debug/python-2.7.10-1/Python/pythonrun.c:1780
#1 0x770ff8d1 in ntdll!ZwWaitForSingleObject () from /cygdrive/c/Windows/SysWOW64/ntdll.dll
#2 0x765014b9 in WaitForSingleObjectEx () from /cygdrive/c/Windows/syswow64/KERNELBASE.dll
#3 0x000002f8 in ?? ()
#4 0x00000000 in ?? ()
(gdb) continue
Continuing.
[New Thread 8744.0x25c4]
3 [main] python2.7 8744 cygwin_exception::open_stackdumpfile: Dumping stack trace to python2.7.exe.stackdump
[Thread 8744.0x24f4 exited with code 34304]
[Thread 8744.0x25c4 exited with code 34304]
[Thread 8744.0x2380 exited with code 34304]
[Thread 8744.0x192c exited with code 34304]
[Inferior 1 (process 8744) exited with code 0103000]

Any ideas?

Thanks,
Robert Martens
ADMS


--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
 		 	   		  
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      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]