Tcl Source Code

View Ticket
Login
Ticket UUID: 1869390
Title: threading causes segfaults on freebsd
Type: Bug Version: obsolete: 8.5.1
Submitter: msofer Created on: 2008-01-11 15:27:11
Subsystem: 49. Threading Assigned To: mistachkin
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-11-05 09:20:21
Resolution: Out of Date Closed By: sf-robot
    Closed on: 2009-11-05 02:20:21
Description:
On Joe Mistachkin's machine

[miguel@jupiter ~/tcl-CVS/unix]$ uname -a
FreeBSD jupiter.mistachkin.net 4.11-STABLE FreeBSD 4.11-STABLE #14: Sun Mar 11 14:34:34 PST 2007     [email protected]:/usr/obj/usr/src/sys/JUPITER  i386
[miguel@jupiter ~/tcl-CVS/unix]$ ulimit -s
1048576

(yes, those are 1GB stacks! Do not seem to influence these results)

The errors are NOT due to the changes in stack checking: attaching 'make test' output for both HEAD and 8.5b2 (before the stack check changes) in a build with
  --disable-shared --enable-symbols --enable-threads
The two are not the same but similar, there are a few more segfaults in HEAD.

Note that juliannoble reports no problems with 'make test' in #1860425
User Comments: sf-robot added on 2009-11-05 09:20:21:

allow_comments - 1

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

mistachkin added on 2009-10-21 07:21:06:
This does not repro on core-8-5-branch either.  Tested with and without --disable-shared.

dgp added on 2009-10-21 04:23:04:
mistachkin, can you check the core-8-5-branch?
If you cannot repro there either, we should close this?

mistachkin added on 2009-10-18 09:40:56:
This bug does not repro on HEAD on my machine.

juliannoble added on 2008-01-16 12:52:02:
Logged In: YES 
user_id=598324
Originator: NO

Found an old slow 4.9 system to try it on. 
This system does get the segmentation violations etc.

gollum# uname -a
FreeBSD gollum 4.9-STABLE FreeBSD 4.9-STABLE #0: Sat Mar 13 11:53:22 GMT 2004     julz@gollum:/usr/obj/usr/src/sys/pcm_isdn_kernel  i386


Tests ended at Sun Jan 13 12:29:22 GMT 2008
all.tcl:        Total   23099   Passed  21981   Skipped 1109    Failed  9
Sourced 137 Test Files.
Files with failing tests: compExpr-old.test expr.test http.test pkgMkIndex.test

juliannoble added on 2008-01-12 01:08:18:
Logged In: YES 
user_id=598324
Originator: NO

I don't have a FreeBSD 4.x system to build on - but tests run ok on 6.2
Just fetched cvs head and configured with --disable-shared --enable-symbols --enable-threads

bitz# uname -a
FreeBSD bitz.precisium.net 6.2-RELEASE-p7 FreeBSD 6.2-RELEASE-p7 #0: Thu Nov 15 10:21:05 UTC 2007     [email protected]:/usr/obj/usr/src/sys/BITZ-SMP  i386

Tests ended at Fri Jan 11 17:39:56 UTC 2008
all.tcl:        Total   24178   Passed  22960   Skipped 1218    Failed  0
Sourced 137 Test Files.

msofer added on 2008-01-11 22:43:57:

File Added - 261810: ERR.NOCHECK

Logged In: YES 
user_id=148712
Originator: YES

Adding ERR.NOCHECK for a build with -DTCL_NO_STACK_CHECK, illustrating that the issues are not (only?) due to stack checking.
File Added: ERR.NOCHECK

msofer added on 2008-01-11 22:27:41:

File Added - 261807: ERR.b2

Logged In: YES 
user_id=148712
Originator: YES

File Added: ERR.b2

msofer added on 2008-01-11 22:27:12:

File Added - 261806: ERR.HEAD

Attachments: