Artifacts Associated With Ticket 415131ffffffffff
Ticket change [ce43673d3c] (rid 96023) by mad_derf on 2001-04-10 12:38:11:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi all, I have been trying to use the tclsh8.1_r on a FreeBSD host (it was the only available precompiled package, but I also had the case with Tcl 8.0 and Tcl 8.3.2 compiled). Ok, so here is the problem : % exec ls error reading output from command: interrupted system call % When I link tclsh with libc.so rather than libc_r.so (the multi-threaded c library), there is no problem, but if I link with the libc_r.so, I often have the above output (I say often, because it also sometimes work ...) I went into the code (and I had to say it was tough with GDB - seems to have problem with multi-threaded applications on FreeBSD), and it seems to be coming from the unix/tclUnixPipe.c file. In the PipeInputProc (), I replaced : ------------ bytesRead = read(GetFd(psPtr->inFile), buf, (size_t) toRead); if (bytesRead > -1) { return bytesRead; } *errorCodePtr = errno; return -1; ------------ with ------------ do { bytesRead = read(GetFd(psPtr->inFile), buf, (size_t) toRead); } while ((bytesRead < 0) && (errno == EINTR)); if (bytesRead < 0) { *errorCodePtr = errno; return (-1); } else { return (bytesRead); } ------------- It seems that the SUN RPCs also use that trick (in clnt_udp.c). After applying that patch, it seems all right. Shall I commit somewhere for that patch to be integrated (if agreed) in next releases ? Hope this helps DERF - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mad_derf"
- subsystem initialized to: "49. Threading"
- title initialized to: "multithreaded tclsh exec fails (FreeBSD)"
- type initialized to: "Bug"
Ticket change [a8aced7a6e] (rid 99034) by hobbs on 2001-05-04 03:50:56:
- icomment:
Logged In: YES user_id=72656 Please create the necessary patch and add it to this report or place it in the Patches area for other to test on other systems. Also make sure that this passes 'make test' on your system (both with threaded and non-threaded builds).
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Add attachment "patchfile" [3151260681] (rid 93408) by mad_derf on 2001-05-18 00:26:16.
Ticket change [6c8bda58ab] (rid 128531) by mad_derf on 2001-05-18 00:26:16:
- icomment:
Logged In: YES user_id=193026 I have created the patch file for that bug. It should be attached below (hmmm, not sure yet, it is the first time I do that). I ran the make test on several architectures (linux, solaris and FreeBSD), there was no differentces with my changes except for the multithreaded version on FreeBSD. It now works almost fine ... but I guess no one ever tested it multithreaded on FreeBSD :) So now, most of the test goes on with multithread. Almost no more "interrupted system call". Seems good no ? Ok, now here is the patch
- login: "mad_derf"
- mimetype: "text/plain"
- username: "mad_derf"
- icomment:
Ticket change [38c2ba7333] (rid 112264) by mad_derf on 2001-05-18 00:26:17:
- icomment:
File Added - 6390: patchfile
- login: "mad_derf"
- mimetype: "text/plain"
- username: "mad_derf"
- icomment:
Ticket change [bb37cb5974] (rid 129448) by hobbs on 2001-08-07 07:26:43:
- assignee changed to: "hobbs"
Ticket change [1b92843b11] (rid 123175) by dgp on 2001-10-04 23:20:57:
- icomment:
Logged In: YES user_id=80530 Jeff, here's a FreeBSD fix that should go into 8.3.4.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [5b9968d50c] (rid 118360) by andreas_kupries on 2001-10-04 23:32:54:
- icomment:
Logged In: YES user_id=75003 Note the possibly related items 218076, 218120, 219251, and 219354.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [f29997b337] (rid 109580) by hobbs on 2001-10-18 07:57:11:
- closedate changed to: "2001-10-18T00:57:11"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Testing threaded and non-threaded on HP-UX 11, Sol-2.6 and Linux (RH6.2 and 7.0) and it seems to pass all tests. Applied to 8.3.4cvs and 8.4a4cvs.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"