FreeBSD core dumps when wrapping big files!

Joey Mukherjee <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
Ok, I have tried everything in trying to get a FreeBSD starkit to  
work and have finally discovered my problem.

I have a file which is roughly 80mb that I include in the starkit.   
With this file, I can never get the final "sdx.kit wrap" to work - it  
will just dump core.  This 80mb file is actually a zip file that if I  
unzip it, it works fine so its not the size of the kit I am creating,  
just the size of the individual file.

I do this same wrapping on a Solaris, Mac, Linux, and Windows box and  
they all have .zip's inside which are all bigger than the 80mb.  Just  
FreeBSD fails...  I have tried with 8.4/8.5 from the website as well  
as creating them myself.

Does anyone have any ideas on what else I could do to make this  
work?  I tried making a Tclkit-Lite with the kitgen, but it does not  
work on FreeBSD?  In case this is an easier problem to solve, kitgen  
builds all of Tcl, but the install fails with:

Making directory /build/lib
mkdir: /build: Permission denied
*** Error code 1

I change the makefile.include to remove the "$(shell pwd)" and hard  
code the directory, I get a little further:

But eventually run into:

cc -o kit-cli -O2 -fno-strict-aliasing -pipe  ../../kitInit.c ../../ 
pwb.c ../../rechan.c ../../zlib.c  ../tcl/unix/tclAppInit.c -Ibuild/ 
include  -DKIT_LITE -DTCL_LOCAL_APPINIT=TclKit_AppInit - 
DSTATIC_BUILD  build/lib/vfs1*/*vfs1*.a build/lib/vlerqtcl4*/ 
*vlerqtcl4*.a  build/lib/libz.a build/lib/libtcl8*.a
cc: build/lib/vfs1*/*vfs1*.a: No such file or directory
cc: build/lib/vlerqtcl4*/*vlerqtcl4*.a: No such file or directory
cc: build/lib/libtcl8*.a: No such file or directory
../../kitInit.c:22:17: tcl.h: No such file or directory

I tried changing the TCLDIR = in the makefile.include to a few  
things, but got nowhere.

Back to the tclkit, I am attaching a "gdb where" in case it helps,  
but it is long.

Thanks for any ideas!

Joey

#0  0x28306026 in memcpy () from /lib/libc.so.6
#1  0x080d4222 in Tcl_AppendObjToObj ()
#2  0x080d4356 in Tcl_AppendObjToObj ()
#3  0x080d40e0 in Tcl_AppendObjToObj ()
#4  0x080e2280 in TclPtrSetVar ()
#5  0x08097faf in TclIncrObj ()
#6  0x08095e9b in TclCompEvalObj ()
#7  0x080cf4dd in TclObjInterpProc ()
#8  0x080cf021 in TclObjInterpProc ()
#9  0x0806897f in TclEvalObjvInternal ()
#10 0x08068b5d in Tcl_EvalObjv ()
#11 0x0806946b in Tcl_EvalObjEx ()
#12 0x08065665 in TclKit_AppInit ()
#13 0x080aaf2f in Tcl_GetChannelHandle ()
#14 0x080b0a70 in TclCopyChannel ()
#15 0x080b0002 in TclCopyChannel ()
#16 0x080afc40 in TclCopyChannel ()
#17 0x080b7971 in TclCrossFilesystemCopy ()
#18 0x080a0f9f in TclFileDeleteCmd ()
#19 0x080a0448 in TclFileCopyCmd ()
#20 0x080a02aa in TclFileCopyCmd ()
#21 0x0806fa81 in Tcl_FileObjCmd ()
#22 0x0806897f in TclEvalObjvInternal ()
#23 0x08097395 in TclIncrObj ()
#24 0x08095e9b in TclCompEvalObj ()
#25 0x080cf4dd in TclObjInterpProc ()
#26 0x080cf021 in TclObjInterpProc ()
#27 0x0806897f in TclEvalObjvInternal ()
#28 0x08068b5d in Tcl_EvalObjv ()
#29 0x0806946b in Tcl_EvalObjEx ()
#30 0x0806f666 in Tcl_EvalObjCmd ()
#31 0x0806897f in TclEvalObjvInternal ()
#32 0x08097395 in TclIncrObj ()
#33 0x08095e9b in TclCompEvalObj ()
#34 0x080cf4dd in TclObjInterpProc ()
#35 0x080cf021 in TclObjInterpProc ()
#36 0x0806897f in TclEvalObjvInternal ()
#37 0x08097395 in TclIncrObj ()
#38 0x08095e9b in TclCompEvalObj ()
#39 0x080cf4dd in TclObjInterpProc ()
#40 0x080cf021 in TclObjInterpProc ()
#41 0x0806897f in TclEvalObjvInternal ()
#42 0x08097395 in TclIncrObj ()
#43 0x08095e9b in TclCompEvalObj ()
#44 0x080cf4dd in TclObjInterpProc ()
#45 0x080cf021 in TclObjInterpProc ()
#46 0x0806897f in TclEvalObjvInternal ()
#47 0x08069132 in Tcl_EvalEx ()
#48 0x080c7848 in TclSubstTokens ()
#49 0x08068e8d in Tcl_EvalEx ()
#50 0x080b5ed6 in Tcl_FSEvalFileEx ()
#51 0x080772c1 in Tcl_SourceObjCmd ()
#52 0x0806897f in TclEvalObjvInternal ()
#53 0x08097395 in TclIncrObj ()
#54 0x08095e9b in TclCompEvalObj ()
#55 0x0806951a in Tcl_EvalObjEx ()
#56 0x08071670 in Tcl_IfObjCmd ()
#57 0x0806897f in TclEvalObjvInternal ()
#58 0x08069132 in Tcl_EvalEx ()
#59 0x080b5ed6 in Tcl_FSEvalFileEx ()
#60 0x080772c1 in Tcl_SourceObjCmd ()
#61 0x0806897f in TclEvalObjvInternal ()
#62 0x08068b5d in Tcl_EvalObjv ()
#63 0x0806946b in Tcl_EvalObjEx ()
#64 0x080cec8b in Tcl_UplevelObjCmd ()
#65 0x0806897f in TclEvalObjvInternal ()
#66 0x08097395 in TclIncrObj ()
#67 0x08095e9b in TclCompEvalObj ()
#68 0x080cf4dd in TclObjInterpProc ()
#69 0x080cf021 in TclObjInterpProc ()
#70 0x0806897f in TclEvalObjvInternal ()
#71 0x08069132 in Tcl_EvalEx ()#72 0x080b5ed6 in Tcl_FSEvalFileEx ()
#73 0x080772c1 in Tcl_SourceObjCmd ()
#74 0x0806897f in TclEvalObjvInternal ()
#75 0x08069132 in Tcl_EvalEx ()
#76 0x08069399 in Tcl_Eval ()
#77 0x08069ee7 in Tcl_GlobalEval ()
#78 0x080cbfdd in Tcl_PkgRequireEx ()
#79 0x080cbe32 in Tcl_PkgRequire ()
#80 0x080ccbab in Tcl_PackageObjCmd ()
#81 0x0806897f in TclEvalObjvInternal ()
#82 0x08069132 in Tcl_EvalEx ()
#83 0x080b5ed6 in Tcl_FSEvalFileEx ()
#84 0x080772c1 in Tcl_SourceObjCmd ()
#85 0x0806897f in TclEvalObjvInternal ()
#86 0x08068b5d in Tcl_EvalObjv ()
#87 0x0806946b in Tcl_EvalObjEx ()
#88 0x080cec8b in Tcl_UplevelObjCmd ()
#89 0x0806897f in TclEvalObjvInternal ()
#90 0x08097395 in TclIncrObj ()
#91 0x08095e9b in TclCompEvalObj ()
#92 0x080cf4dd in TclObjInterpProc ()
#93 0x080cf021 in TclObjInterpProc ()
#94 0x0806897f in TclEvalObjvInternal ()
#95 0x08069132 in Tcl_EvalEx ()
#96 0x080b5ed6 in Tcl_FSEvalFileEx ()
#97 0x080bb723 in Tcl_Main ()
#98 0x08065fa0 in main ()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.