Opened 10 years ago

Closed 10 years ago

#42 closed defect (fixed)

CONSTRAINT_ERROR at matreshka/source/xml/xml/xml-sax-simple_readers-parser.adb:958

Reported by: alexander.basov Owned by: somebody
Priority: major Milestone: 0.0.6
Component: Matreshka - XML Processor Version:
Keywords: Cc:

Description

I've got constraint error during parsing XML in AXMPP library, with incremental SAX parser, which is read data from socket as source.
I reset XML Reader each time, when new XMPP stream is opened with Self.Reader.Set_Input_Source (Self.Source'Access);

Catchpoint 2, CONSTRAINT_ERROR at 0x00007ffff5995603 in xml.sax.simple_readers.parser.yyparse (self=<value optimized out>, <selfL>=<value optimized out>)
    at /mnt/work/programming/projects/matreshka/source/xml/xml/xml-sax-simple_readers-parser.adb:958
958                 YY.TOS := YY.TOS - YY_Rule_Length (YY_Rule_Id) + 1;
(gdb) bt
#0  <__gnat_debug_raise_exception> (e=0x7ffff3ece900) at s-except.adb:46
#1  0x00007ffff3ab68b7 in <__gnat_raise_nodefer_with_msg> (e=0x7ffff3ece900) at a-except.adb:834
#2  0x00007ffff3ab6cae in ada.exceptions.raise_with_location_and_msg (e=0x7ffff3ece900, f=<value optimized out>, l=<value optimized out>, 
    m=<value optimized out>) at a-except.adb:999
#3  0x00007ffff3ab6898 in <__gnat_raise_constraint_error_msg> (file=<value optimized out>, line=<value optimized out>, msg=(system.address) 0x7ffff39ab2a0)
    at a-except.adb:799
#4  0x00007ffff3ab6de6 in <__gnat_rcheck_12> (file=(system.address) 0x7ffff3ece900, line=19) at a-except.adb:1087
#5  0x00007ffff5995603 in xml.sax.simple_readers.parser.yyparse (self=<value optimized out>, <selfL>=<value optimized out>)
    at /mnt/work/programming/projects/matreshka/source/xml/xml/xml-sax-simple_readers-parser.adb:958
#6  0x00007ffff59b2d97 in xml.sax.simple_readers.parse (self=0x7ffff3ece900, <selfL>=19)
    at /mnt/work/programming/projects/matreshka/source/xml/xml-sax-simple_readers.adb:246
#7  0x00007ffff796ddbc in xmpp.sessions.read_data (self=0x6cfdc0, <selfL>=0) at /mnt/work/programming/projects/axmpp/trunk/axmpp/source/xmpp-sessions.adb:799
#8  0x00007ffff79602f3 in xmpp.networks.recieve (self=0x6cfdc0, <selfL>=0) at /mnt/work/programming/projects/axmpp/trunk/axmpp/source/xmpp-networks.adb:218
#9  0x00007ffff795e29e in xmpp.networks.reader_task (<_task>=0x80b8b0) at /mnt/work/programming/projects/axmpp/trunk/axmpp/source/xmpp-networks.adb:82
#10 0x00007ffff3f09b11 in system.tasking.stages.task_wrapper () from /opt/gnat/lib/gcc/x86_64-pc-linux-gnu/4.3.6/adalib/libgnarl-2010.so
(gdb)

Change History (2)

comment:1 by vadim.godunko, 10 years ago

In [1275]:

Resets reader on enter to Parse subprogram, to allow to reconfigure
reader from callbacks.

Refs #42.

comment:2 by vadim.godunko, 10 years ago

Milestone: 0.1
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.