home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
- From: SEB1525@MVS.draper.com (Steve Bacher)
- Subject: regina bug with very long strings
- Message-ID: <19920908170207SEB1525@MVS.draper.com>
- Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
- Nntp-Posting-Host: mvs.draper.com
- Organization: Draper Laboratory
- Date: Tue, 8 Sep 1992 22:02:00 GMT
- Lines: 32
-
- There appears to be a bug in Regina 0.03d with long strings.
- If I do something like
-
- foo = copies("x",100000)
-
- and then do
-
- say length(foo)
-
- I get a segmentation fault. Where exactly the fault occurs depends on
- if I run the SunOS version or the AIX version.
-
- Similarly, if I do
-
- foo = 'cat'('/etc/hosts')
-
- (which produces a very long string for most people)
-
- on SunOS, length(foo) returns a negative number; on AIX, the operation
- gets a segmentation fault.
-
- This is triggered by any attempt to create a string longer than
- 32767 bytes.
-
- Shouldn't Regina recover more gracefully from attempts to create a
- string longer than the maximum value it can handle? Is this maximum
- value documented, anyhow? It would be less painful if the length of a
- string were held as an int rather than a short (see src/strings.h).
-
- --
- Steve Bacher (Batchman) Draper Laboratory
- Internet: seb@draper.com Cambridge, MA, USA
-