Skip to content
Tcl Source Code View Ticket
Login

View Ticket

core dump on FreeBSD, thread::create

Closed / Fixed1860425fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-29 15:21:55
cvs checkout from 2007-12-22
thread enabled build.
FreeBSD 6.2

%package require Thread
2.6.5
%thread::create {}
tclsh in free(): error: junk pointer, too high to make sense



This problem doesn't occur on 8.5a7 or 8.5b3 built the same way.
dkf Ticket [1860425fff]: 3 changes [History diff]2007-12-30 01:16:42
[email protected]plain2008-01-10 23:00:36
Logged In: NO 

After undoing the changes made to tclUnixThrd.c etc in the update below, the error doesn't occur.

Revision 1.54 - (download) (annotate) 
Mon Nov 26 19:11:13 2007 UTC (6 weeks, 2 days ago) by msofer 
Branch: MAIN 
* generic/tclBasic.c:
* generic/tclInt.h:
* unix/tclUnixInit.c:
* unix/tclUnixThrd.c: Fix stack checking via workaround for bug in
glibc's pthread_attr_get_np, patch from [Bug 1815573]. Many thanks
to Sergei Golovan (aka Teo) for detecting the bug and helping
diagnose and develop the fix.
dgp Ticket [1860425fff]: 1 change [History diff]2008-01-10 23:53:13
dgp Ticket [1860425fff]: 1 change [History diff]2008-01-10 23:53:14
msoferplain2008-01-11 03:37:05
File Added - 261705: tclUnixThrd.diff

Logged In: YES 
user_id=148712
Originator: NO

Could you please test if the attached patch fixes the issue?
File Added: tclUnixThrd.diff
juliannobleplain2008-01-11 11:19:37
Logged In: YES 
user_id=598324
Originator: YES

Yes, the attached tclUnixThrd.diff fixed it.

'make test' output looks reasonable except for stack-3.1 failed
errorCode: CHILDKILLED 71901 SIGBUS {bus error}

Sorry - I don't know if that's related - but despite that test faluire,
so far this version of Tcl seems to work ok for my apps.
msoferplain2008-01-11 17:55:11
Logged In: YES 
user_id=148712
Originator: NO

The failure is stack-3.1 is relatet but different, probably the same as #1850424, the other that
msofer Closed ticket [1860425fff]. [History diff]2008-01-11 17:55:12
Log in (anonymous is fine) to add a comment.

Attachments: