[Python-bugs-list] select with dec-threads core dumps (PR#35)
ddula@alfomc.net
ddula@alfomc.net
Thu, 22 Jul 1999 17:01:07 -0400 (EDT)
Full_Name: David Dula
Version: 1.5.2
OS: Digital Unix (OSF/1) 4.0E with latest patches
Submission from: (NULL) (192.208.45.218)
Select cores while waiting on a socket
spoo.alfomc.net> dbx /usr/local/ddula/tar/Python-1.5.2/python core
dbx version 3.11.10
Type 'help' for help.
Core file created by program "python"
thread 0xb signal Segmentation fault at >*[nxm_thread_kill, 0x3ff805ab3b8]
retr31, (r26), 1
(dbx) t
> 0 nxm_thread_kill(0x14003bb40, 0x3ff807e31c8, 0x3ffc0085c98, 0x3ff805ab0a8,
0x14003bb40) [0x3ff805ab3b8]
1 pthread_kill(0x1, 0x0, 0x0, 0x1400df980, 0x3ff00000000) [0x3ff80598b94]
2 (unknown)() [0x3ff8058cb38]
3 (unknown)() [0x3ff807e35ec]
4 exc_unwind(0x1400dde78, 0x1400dc5a0, 0xabadabad00beed00, 0x0,
0x3ff807e3964) [0x3ff807e36d4]
5 exc_raise_signal_exception(0x86, 0x0, 0x1200735b8, 0x1, 0x2)
[0x3ff807e3960]
6 (unknown)() [0x3ff8059a248]
7 select_select(args = (nil)) ["./selectmodule.c":221, 0x1200735b4]
8 eval_code2(co = [bad address (0x14010d838)], globals = 0xfc50, locals =
(nil), args = [bad address (0x14010d840)], kws = [bad address (0x14010d848)],
kwcount = [bad address (0x14010d9a8)], defs = [bad address (0x14010d9b0)],
defcount = [bad address (0x14010d9b8)]) ["ceval.c":1654, 0x12003e57c]
Appears eval_code2 is getting passed bad addresses?
My code snipped
<--SNIP-->
class TelnetProxy(SocketServer.StreamRequestHandler,SocketServer.BaseRequestHand
ler):
def handle(self):
o = socket(AF_INET,SOCK_STREAM)
o.connect(OHOST,OPORT)
while 1:
print o.fileno()
print self.rfile.fileno()
r,w,e = select.select([o,self.rfile],[],[],1) <---CORE
HERE
if o in r:
<--SNIP-->
Same problem under 1.5.1 as well.
The 1.5.2 is the latest source I downloaded Jul 20
This same code works fine on NT and LINUX I believe.
Dave Dula
ddula@alfomc.net