This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_poll fails on FreeBSD
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: aimacintyre, benl, loewis
Priority: normal Keywords:

Created on 2002-12-01 18:14 by benl, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (9)
msg13504 - (view) Author: Ben Laurie (benl) Date: 2002-12-01 18:14
Starting program:
/usr/home/ben/work/python/dist/src/python
Lib/test/test_poll.py
Running poll test 1
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
 This is a test.
Poll test 1 complete
Running poll test 2
timeout = 0
timeout = 1000
'testing...\n'
timeout = 2000
'testing...\n'
timeout = 4000
'testing...\n'
timeout = 8000
'testing...\n'
timeout = 16000
'testing...\n'
timeout = -1
'testing...\n'
timeout = -1
'testing...\n'
timeout = -1
'testing...\n'
timeout = -1
'testing...\n'
timeout = -1
'testing...\n'
timeout = -1

Program received signal SIGSEGV, Segmentation fault.
0x2813cd04 in strncat () from /usr/lib/libc_r.so.3
(gdb) where
#0  0x2813cd04 in strncat () from /usr/lib/libc_r.so.3
#1  0x281799fb in .cerror () from /usr/lib/libc_r.so.3
#2  0x80d4aad in PyCFunction_Call (func=0x81a63ec,
arg=0x81a4a6c, kw=0x0)
    at Objects/methodobject.c:80
#3  0x809d83b in call_function (pp_stack=0xbfbfd2f8,
oparg=1)
    at Python/ceval.c:3249
#4  0x809c066 in eval_frame (f=0x8172e0c) at
Python/ceval.c:2009
#5  0x809cf52 in PyEval_EvalCodeEx (co=0x819c7e0,
globals=0x813057c, 
    locals=0x0, args=0x8112d5c, argcount=0,
kws=0x8112d5c, kwcount=0, 
    defs=0x0, defcount=0, closure=0x0) at
Python/ceval.c:2554
#6  0x809f09c in fast_function (func=0x81b82cc,
pp_stack=0xbfbfd498, n=0, 
    na=0, nk=0) at Python/ceval.c:3297
#7  0x809d8c1 in call_function (pp_stack=0xbfbfd498,
oparg=0)
    at Python/ceval.c:3266
#8  0x809c066 in eval_frame (f=0x8112c0c) at
Python/ceval.c:2009
#9  0x809cf52 in PyEval_EvalCodeEx (co=0x819c820,
globals=0x813057c, 
    locals=0x813057c, args=0x0, argcount=0, kws=0x0,
kwcount=0, defs=0x0, 
    defcount=0, closure=0x0) at Python/ceval.c:2554
#10 0x809f03d in PyEval_EvalCode (co=0x819c820,
globals=0x813057c, 
    locals=0x813057c) at Python/ceval.c:478
#11 0x80bb093 in run_node (n=0x8118410, 
    filename=0xbfbfd83a "Lib/test/test_poll.py",
globals=0x813057c, 
    locals=0x813057c, flags=0xbfbfd6c4) at
Python/pythonrun.c:1089
#12 0x80bb04e in run_err_node (n=0x8118410, 
    filename=0xbfbfd83a "Lib/test/test_poll.py",
globals=0x813057c, 
    locals=0x813057c, flags=0xbfbfd6c4) at
Python/pythonrun.c:1076
#13 0x80baca1 in PyRun_FileExFlags (fp=0x28192680, 
    filename=0xbfbfd83a "Lib/test/test_poll.py",
start=257, globals=0x813057c, 
    locals=0x813057c, closeit=1, flags=0xbfbfd6c4) at
Python/pythonrun.c:1067
#14 0x80b9972 in PyRun_SimpleFileExFlags (fp=0x28192680, 
    filename=0xbfbfd83a "Lib/test/test_poll.py",
closeit=1, flags=0xbfbfd6c4)
    at Python/pythonrun.c:698
#15 0x80ba843 in PyRun_AnyFileExFlags (fp=0x28192680, 
    filename=0xbfbfd83a "Lib/test/test_poll.py",
closeit=1, flags=0xbfbfd6c4)
    at Python/pythonrun.c:491
#16 0x80535fb in Py_Main (argc=2, argv=0xbfbfd714) at
Modules/main.c:385
#17 0x8052ee8 in main (argc=2, argv=0xbfbfd714) at
Modules/python.c:8

The function called in PyCFunction_Call is poll_poll().
msg13505 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-01 23:01
Logged In: YES 
user_id=21627

Was this meant to be a bug report, or a patch?
msg13506 - (view) Author: Ben Laurie (benl) Date: 2002-12-02 06:13
Logged In: YES 
user_id=14333

Ooops, you are correct, it is a bug report. Sorry!
msg13507 - (view) Author: Ben Laurie (benl) Date: 2002-12-02 13:28
Logged In: YES 
user_id=14333

This test was run against the current CVS.
msg13508 - (view) Author: Andrew I MacIntyre (aimacintyre) * (Python triager) Date: 2002-12-03 01:27
Logged In: YES 
user_id=250749

What FreeBSD version is this on?  (I assume the reference 
to "current CVS" means Python's CVS head).
msg13509 - (view) Author: Ben Laurie (benl) Date: 2002-12-29 17:55
Logged In: YES 
user_id=14333

BSD Version is ancient: 3.2-STABLE
msg13510 - (view) Author: Andrew I MacIntyre (aimacintyre) * (Python triager) Date: 2002-12-31 11:51
Logged In: YES 
user_id=250749

I can't replicate this failure on FreeBSD 4.4.

I notice that the failure would appear to be in the pthreads
library; have you tried building Python without thread support?
msg13511 - (view) Author: Ben Laurie (benl) Date: 2002-12-31 16:47
Logged In: YES 
user_id=14333

Indeed, it works OK with threads disabled.
msg13512 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2002-12-31 17:01
Logged In: YES 
user_id=21627

I would then declare that threads are not supported on that
platform; closing it as third-party.
History
Date User Action Args
2022-04-10 16:05:57adminsetgithub: 37559
2002-12-01 18:14:24benlcreate