Olivier,
We are aware that the eSNACC manual is a
little out of date and needs to be updated. In fact the command line options listed
in the manual are shown to be from version 1.5. For now you are better off
using arguments that the actual executable prints out.
I take it your other problem has been
resolved knowing that the option you specified was only valid in C. If you are
still having any problems, I can provide any help needed.
And to answer your last question, we have
a patch to be released in September that will allow snacc to compile on GCC
versions up to 4.1.1. The changes have already been made and are in the
process of being reviewed and tested.
Regards,
Dave Abarbanel
BAE Systems
From:
owner-imc-snacc@xxxxxxxxxxxx [mailto:owner-imc-snacc@xxxxxxxxxxxx] On Behalf Of Olivier BOUDEVILLE
Sent: Monday, August 21, 2006 9:20
AM
To: imc-snacc@xxxxxxx
Subject: Réf. : Segmentation fault
+ new esnacc version
Sorry for the useless question, I did not notice that
-E what for BER/DER in C only. However it seems that 'esnacc -h' returns
command-line options different from the ones from the 1.7 manual : with the
command line, I cannot see the -b option, whereas it is in the manual and the
executable handles it as expected. The reverse is true for the -B option : in
the executable help, but not in the manual (I hope I did not miss anything).
Olivier.
---------------------------
Olivier Boudeville
EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart,
France
Département SINETICS, groupe AASI (I22), bureau D-068
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 34 24
|
|
owner-imc-snacc@xxxxxxxxxxxx
21/08/2006 14:02
|
Pour : imc-snacc@xxxxxxx
cc : (ccc : Olivier
BOUDEVILLE/IMA/DER/EDFGDF/FR)
Objet : Segmentation fault +
new esnacc version
|
Hi,
I tried esnacc 1.7 (with the recommended patch 1.7.3) built with gcc 3.2.3 on a
GNU/Linux Debian-based (Sarge) platform, and for the following test ASN :
MonProtocole.asn :
"""
MonProtocole DEFINITIONS ::= BEGIN
MaQuestion ::= SEQUENCE {
numero INTEGER,
question VisibleString
}
MaReponse ::= SEQUENCE {
questionNumero INTEGER,
reponse BOOLEAN
}
END
"""
if I selected C++ code generation and PER encoding (-C -E PER) esnacc fails
with a segmentation fault :
"""
(gdb) where
#0 0x4007fee8 in vfprintf () from /lib/tls/libc.so.6
#1 0x4008868f in fprintf () from /lib/tls/libc.so.6
#2 0x08062adc in main ()
"""
My full command line is : '~/Logiciels/esnacc-1.7-install/bin/esnacc -C -E PER
MonProtocole.asn'
If I switch to BER (either with -E BER or with no -E option), it works.
Am I making a mistake ?
My other question is : what is the timeframe for the next esnacc version which
will allow to use more recent version of gcc ?
Thanks in advance for any hint,
best regards,
Olivier
Boudeville.
---------------------------
EDF R&D : 1, avenue du Général de Gaulle, 92140 Clamart,
France
Département SINETICS, groupe AASI (I22), bureau D-068
Office : 33 1 47 65 59 58 / Mobile : 33 6 16 83 37 22 / Fax : 33 1 47 65 34 24