(no subject)
___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd
Python test suite, test_openpty in endless loop
Hi, Neal's latest pthread checkin fixed one issue in the python test suite. However, as the test suite now runs further, it exposed another problem which makes the machine hang in an endless loop (and not just abort the test suite, as before), namely in test_openpty. This test is pretty simple: import os from test.test_support import verbose, TestFailed, TestSkipped try: if verbose: print "Calling os.openpty()" master, slave = os.openpty() at which point it hangs and writes out: /hurd/term: /dev/ttyp0: Device or Resource Busy to the terminal endlessly until interrupted (interrupting it from the same terminal via ^C eventually results in similar messages with ttyp1 until ttyp3 for some time and then a KeyboardInterrupt abort from Python). os.openpty is pretty simple as well, it basically wraps around openpty() (I have stripped away unecessary preprocessor directives as HAVE_OPENPTY is defined for us): static PyObject * posix_openpty(PyObject *self, PyObject *noargs) { int master_fd, slave_fd; if (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) != 0) return posix_error(); return Py_BuildValue("(ii)", master_fd, slave_fd); } If I run the test in gdb and abort it, I get this backtrace: #0 0x011b18d2 in _hurd_intr_rpc_msg_in_trap () at intr-msg.c:133 #1 0x01332f0a in __dir_lookup (start_dir=1073741828, file_name=0x4004 , flags=1073741828, mode=1073741828, do_retry=0x1341808, retry_name=0x4004 , result=0x4004) at /org/buildd/tmp/tmp/glibc-2.3.2.ds1/build-tree/hurd-i386-libc/hurd/RPC_dir_lookup.c:187 #2 0x0119ffb7 in lookup_op.0 () from /usr/lib/debug/libc.so.0.3 #3 0x01199c2a in _hurd_ports_use (which=23064456, operate=0x15ff4fc) at hurdinit.c:49 #4 0x011a00b6 in __hurd_file_name_lookup ( use_init_port=0x1199aa0 <_hurd_ports_use>, get_dtable_port=0x4004, lookup=0x1332e40 <__dir_lookup>, file_name=0x15ff985 "dev/ptyp0", flags=3, mode=0, result=0x15ff940) at hurdlookup.c:94 #5 0x011a04cd in __file_name_lookup ( file_name=0x4004 , flags=1073741828, mode=20191240) at hurdlookup.c:235 #6 0x0128424e in __libc_open ( file=0x4004 , oflag=3) at ../sysdeps/mach/hurd/open.c:43 #7 0x012d9b07 in __getpt () at ../sysdeps/unix/bsd/getpt.c:65 #8 0x01158524 in openpty (amaster=0x4004, aslave=0x4004, name=0x0, termp=0x0, winp=0x0) at openpty.c:98 #9 0x010ecb18 in initposix () from /usr/lib/libpython2.4.so.1.0 #10 0x010acf8d in PyEval_GetFuncDesc () from /usr/lib/libpython2.4.so.1.0 #11 0x010aae49 in PyEval_EvalFrame () from /usr/lib/libpython2.4.so.1.0 #12 0x010ab92e in PyEval_EvalCodeEx () from /usr/lib/libpython2.4.so.1.0 #13 0x010a8bb7 in PyEval_EvalCode () from /usr/lib/libpython2.4.so.1.0 #14 0x010df4d9 in PyRun_FileExFlags () from /usr/lib/libpython2.4.so.1.0 #15 0x010de8e4 in PyRun_SimpleFileExFlags () from /usr/lib/libpython2.4.so.1.0#16 0x010de29a in PyRun_AnyFileExFlags () from /usr/lib/libpython2.4.so.1.0 #17 0x010e6eb6 in Py_Main () from /usr/lib/libpython2.4.so.1.0 #18 0x08048679 in main (argc=1073741828, argv=0x4004) at ../Modules/python.c:23 On the other hand, a trivial C program using openpty() works fine, so it might be some Python->C or Python->POSIX issue. Can anybody look into this, perhaps? I have no experience with ptys or Python<->C stuff and am stuck here it seems. thanks, Michael ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd
bug-hurd@gnu.org
_/_/_/_/_/$B5U1g!y?M:[EMAIL PROTECTED](BSM$B!yB(2q$$!yD>%aD>EE(B_/_/_/_/_/ _/_/_/_/_/_/ http://awg.webchu.com/?springi _/_/_/_/_/_/ $B!xBg9%I>!V(B1$B1_!WL5NA%]%$%s%HB#Dh%-%c%s%Z!<%s7QB3http://awg.webchu.com/?springi $B!}7HBS!&(BPC$BBP1~$G%U%j!<%a!<%k$bMxMQ$G$-$^$9!#(B $B!}F?L>@-$,Hs>o$K9b$/!"0l;[EMAIL PROTECTED];[EMAIL PROTECTED]@Z4X$o$j$,$"$j$^$;$s$N$G0B?4$7$F$4MxMQ2<$5$$!#(B $B!}L5NA$G$?$C$W$jM7$s$GD:$-!"!V$3$3$J$i!*!W$H;W$C$FD:$1$?J}$O0B?4$NA0J'$$$r$4MxMQ2<$5$$!#$?$C$?(B3000$B1_$+$i$4MxMQD:$1$^$9!#(B $B"(Ev%a!<%k$NG[?.5qH]$O$3$A$i"*(B [EMAIL PROTECTED] $B$^$G$*http://lists.gnu.org/mailman/listinfo/bug-hurd
Imagine you`re thin
Title: bowman annie budgetary glom You saw that on BBC - Hoodia more info... rich benevolent wouldn't dastard phylogeny bodice ringlet baneful armonk forgery hasty bullseye clone pregnant cacao subvert absurd seduction alva substantive cohomology jitterbug bloc cola statesman dartmouth fickle farce no ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd
Re: _cthread_init_routine and _cthread_exit_routine
> > Does that mean glibc should be to actually call ^fixed > > _cthread_exit_initializer? Should I file a bug report? > > Huh? I just described why no further libc change is required. Allow me to illustrate the problem in more concrete terms. Consider the following program: #include #include void _cthread_exit_routine (int status) { printf ("%s called.\n", __FUNCTION__); exit (status); } int main (int argc, char *argv) { return 0; } libc should call _cthread_exit_routine when main returns. Yet, running this program on a Hurd box produces no output. Putting a break point on exit (which is called when main returns), shows: #0 0x0107eca6 in exit () from /lib/libc.so.0.3 #1 0x0106716e in __libc_start_main () from /lib/libc.so.0.3 #2 0x08048421 in _start () at ../sysdeps/i386/elf/start.S:102 So, libc/sysdeps/mach/start.c is not being used and there is no other code to call _cthread_exit_routine. Is that clearer? Thanks, Neal ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd
MIKE MONDAY
КУЛЬТУРНO-РАЗВЛЕКАТЕЛЬНЫЙ ЦEНТР "СЛAВA" 23,Мocквa, ш. Энтyзиастoв, g. 58/1, тeл.: 1^76^71^72^ РEЗEРВИPOВАНИEVIP CТОЛИКОВ ТЕЛ.: 220-5041 ПPA3ДНИЧНАЯ AФИШA КУЛЬТУPНО-РАЗВЛЕКAТEЛЬНОГO ЦEНТPА «СЛAВA» 6 МAЯCAША НАЧAЛО В 01:30 7 МAЯ НИКИТА НАЧАЛOВ 01:30 8 МAЯ MIKE MONDAY НАЧAЛO В 01:30 9 МAЯ ДИНAМИТНАЧAЛOВ 01:30 10 МАЯ КЛУБ PАБOТАЕТ В РЕ}|{ИМЕ ВЫХOДНОГО ДНЯ MIKEMONDAY 8.05.2005 Mike Monday uграет мyзыкуна публuку cдетcтва. Cнaчала нa пианино, пoтoм на фаготe, a зaтем u на сaкcофoне. По oкoнчанuи ВУ3a Mike повoрaчиваeт свoй твopчeскuй взгляg на Xayс-мyзыкy u вмecтe с Andy uDan Hewson оcновываeт проект Beat Foundation. Иx peмикcы пользoвaлucь yспeхом y Sasha, a тaкже пoлучилu положительные oтзывы от прegcтавuтелей музыкaльной инgycтриu. Mike, ogнакo пpоgолжaл играть oтдeльно от кoллeктuвa и в ceнтябpe 2001 гоgа пpegcтавил свoй микс слyшaтeлям Radio 1. В студиu Mike пишет музыкy и выпускаeт eепод псевgoнимом Distant Drum на лeйблаx Steelfish Recordsu на cобствeннoм MM Records В наcтoящee врeмяMonday являeтcя рeзuдeнтом вечeрuнoк Play в лeгeндаpнoм клyбе Lakota, а также в Retox Bar. ДO ВCТPEЧИ ВКУЛЬТУPНO-PAЗВЛEКAТEЛЬНOМЦEНТРE СЛАВAРACПЕЧAТАВ ЭТO ПИCЬМО, ВЫ ПОЛУЧИТЕ CКИДКУ НАВXОД В PА3МЕРЕ 200 РУБЛЕЙ. Пoлyчuть gополнuтельную uнфоpмацuюможнo пo тeлeфонaм(095) 1^76^71^72^, 1^76^06^39^, 1^76^26^80^, 1^76^31^34^. 3aпись в CТOП лucт, т.е., фaктическu, полная отпиcка! `nmmjcwmzivzhmeohwztgxurufgqywcthqiwbthwfjqiyehrnwwayicljnmqwgiubkpihoqoaylqaudtcyssfwnjzgekpvllxem -^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^ ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd
My portfolio
Title: New Page 1 Hi My name is Ernie, I may not have the right email address, if not please excuse my intrusion. If you are interested in web design work for your company. Please click the link below to see my portfolio: http://www.webdesigntexasco.com/ Thanks, Ernie If you would like to be removed from my address book permanently, please click this link and type "remove" in the subject line: click here. ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd