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

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