[ sisc-Bugs-864792 ] Long lists cause StackOverflowError on serialization

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #864792, was opened at 2003-12-23 02:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=864792&group_id=23735

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Chris Double (doublec)
Assigned to: Nobody/Anonymous (nobody)
Summary: Long lists cause StackOverflowError on serialization

Initial Comment:
Example code:

(define a '())
(do ((i 0 (+ 1 i)))
     ((= i 2000) #f)
    (set! a (cons (number->string i) a)))

(call-with-serial-output-file "c:/test.ser" 
  (lambda (p) (serialize a p)))
java.lang.StackOverflowError
	at sisc.ser.CountingOutputStream.write(Unknown Source)
	at
java.io.DataOutputStream.write(DataOutputStream.java:85)
	at sisc.ser.BerEncoding.writeBer(Unknown Source)
	at sisc.ser.SLL2Serializer.writeInt(Unknown Source)

...

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=864792&group_id=23735


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
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.