From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,590105a5ce7f98b5,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail From: zychp@o2.pl Newsgroups: comp.lang.ada Subject: very long string and Segmentation fault Date: 7 Jul 2006 01:39:29 -0700 Organization: http://groups.google.com Message-ID: <1152261569.199484.272250@m73g2000cwd.googlegroups.com> NNTP-Posting-Host: 62.111.211.178 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1152261575 29937 127.0.0.1 (7 Jul 2006 08:39:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 Jul 2006 08:39:35 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060615 Firefox/1.5.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=62.111.211.178; posting-account=cdZc_w0AAACo618ZAVjggcorsVNUv0lB Xref: g2news2.google.com comp.lang.ada:5548 Date: 2006-07-07T01:39:29-07:00 List-Id: Hello, I have problem with creating very long strings. When I try to create string bigger than 5MB I get Segmentation fault. Tmp: String_Access; ... Tmp := new String (1 .. 10_000_000); In this line a get Segmentation fault. I use GNAT 3.4.5. What is more when I run this code: type ttt is array (positive range <> ) of Character; type ttt_a is access ttt; Tmp : ttt_a ; begin Tmp := new ttt ( 1 .. 10_000_000 ) ; for i in Tmp'range loop Tmp(i) := 'x'; end loop; It works fine. But now it's hard to use some Ada.Strings.Fixed functions. What can be the reason of this? How it can be soved? Regards Gorion P.S. I have to use pure Strings (no Unbounded_String etc. ).