You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@etch.apache.org by Se...@ese.de on 2013/04/19 10:49:39 UTC
Crash after "validation failed" message
Hi,
I get a message like this:
19-04-2013 10:42:08 [007184] ERROR etch_binary_tdi - validation failed for type a0 class 409
- ..\..\..\src\main\bindings\msg\etch_binary_tdi.c 1166
from here:
ETCH_LOG(LOG_CATEGORY, ETCH_LOG_ERROR, "validation failed for type %x class %x\n", ((etch_object*)value)->obj_type, ((etch_object*)value)->class_id);
etch_object_destroy(value);
and in the following etch_object_destroy, the program crashes. I can see that in the stack trace.
I guess the crash in etch_object_destroy is a bug in etch and the failed validation causing etch_object_destroy to be called is my fault.
Did I guess right? (I'll create a JIRA ticket, then.)
What can be the cause of the failed validation? Not matching .etch files on client and server?
Sebastian
RE: Crash after "validation failed" message
Posted by Martin Veith <Ma...@bmw-carit.de>.
Hi Sebastian,
yes, the etch_object_destory should not crash in any situation. Could you please file a bug for that and add the code snippets to reproduce it?
The validation part takes care that the data read from the wire has the datatype expected by the receiver.
There can be different reasons for that. Some code would help.
Cheers,
Martin
From: Sebastian.Setzer@ese.de [mailto:Sebastian.Setzer@ese.de]
Sent: Friday, April 19, 2013 10:50 AM
To: user@etch.apache.org
Subject: Crash after "validation failed" message
Hi,
I get a message like this:
19-04-2013 10:42:08 [007184] ERROR etch_binary_tdi - validation failed for type a0 class 409
- ..\..\..\src\main\bindings\msg\etch_binary_tdi.c 1166
from here:
ETCH_LOG(LOG_CATEGORY, ETCH_LOG_ERROR, "validation failed for type %x class %x\n", ((etch_object*)value)->obj_type, ((etch_object*)value)->class_id);
etch_object_destroy(value);
and in the following etch_object_destroy, the program crashes. I can see that in the stack trace.
I guess the crash in etch_object_destroy is a bug in etch and the failed validation causing etch_object_destroy to be called is my fault.
Did I guess right? (I'll create a JIRA ticket, then.)
What can be the cause of the failed validation? Not matching .etch files on client and server?
Sebastian