chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Segmentation violation using SSAX egg


From: David Ireland
Subject: [Chicken-users] Segmentation violation using SSAX egg
Date: Thu, 28 Sep 2017 16:49:10 +1000

Hi there,

I'm working on a program that requires processing a large number of XML files that have an average size of 500 kB.

I am using the SSAX egg to do the XML parsing and converting to SXML for further processing.

I am sporadically getting segmentation violations (about 1 out of 3 program executions fail) while processing these files. It is not dependent on the particular XML file but always occurs when about 50 have been processed already.  Here is the error:

Error: segmentation violation

    Call history:
    ,,,    
    crow.scm:524: unpack-aiml     
    crow.scm:468: read-all     
   
crow.scm:468: buffer-ports#open-input-buffer     
    crow.scm:469: ssax#ssax:xml->sxml   
 

And an except from the code:

(define (unpack-aiml file)
  (let* ((result    '())
         (contents   (open-input-buffer (read-all file)))
         (xml        (car (get-tag (ssax:xml->sxml contents '()) 'aiml)))

Would anyone have any suggestions how I could further debug?

Thanks.

David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]