lappend size limit???

Clovertech Forums Read Only Archives Cloverleaf General lappend size limit???

  • Creator
    Topic
  • #48665
    David Plunkett
    Participant

      Does anyone know if there is a size limit on a variable created with the lappend command?

      I’m running the following code and it’s bombing after about 246,000 records with “Illegal instruction(coredump)”.

      foreach record [split $inFileData n] {

        lappend newData [format “%-300s” $record]

      }

      Thanks

    Viewing 1 reply thread
    • Author
      Replies
      • #59329
        Steve Carter
        Participant

          Not sure of your OS, but on Unix, yes there’s a limit.

          I don’t remember which parameter it is, but it is in this list:

          $ ulimit -a

          time(seconds)        unlimited

          file(blocks)         2097151

          data(kbytes)         131072

          stack(kbytes)        98304

          memory(kbytes)       98304

          coredump(blocks)     2097151

          nofiles(descriptors) 2000

          I ran into a similiar problem and had to write information out to a file after x number of records to keep the script from core dumping.

          Steve

        • #59330
          David Plunkett
          Participant

            It is a UNIX system running AIX 5.2.

        Viewing 1 reply thread
        • The forum ‘General’ is closed to new topics and replies.