https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=15704

            Bug ID: 15704
           Summary: Python asn2wrs script exeption with Python 2.7.15rc1
           Product: Wireshark
           Version: 3.0.1
          Hardware: x86-64
                OS: Ubuntu
            Status: UNCONFIRMED
          Severity: Blocker
          Priority: Low
         Component: Dissection engine (libwireshark)
          Assignee: bugzilla-ad...@wireshark.org
          Reporter: yann.gar...@fscom.fr
  Target Milestone: ---

Created attachment 17059
  --> https://bugs.wireshark.org/bugzilla/attachment.cgi?id=17059&action=edit
Full content of my <wireshark_home>/epan/dissectors/asn1/ieee1609dot2/ folder

Build Information:
asn2wrs script failure on Wireshark release 3.0.1, Python 2.7.15rc1 on Ubuntu
--
Hello,

This is about exception while running Python asn2wrs script to generate
dissector for ASN.1 files.
I tried to debug it, but I failed :(
Note that ASN.1 files contain parmaterized types.


The exception is:
vagrant@ubuntu1804:~/frameworks/wireshark-gerrit-20190419-dev/epan/dissectors/asn1/ieee1609dot2$
./asn2wrs.sh
ASN.1 to Wireshark dissector compiler
:0: UserWarning: Decoding ./EtsiTs102941TypesAuthorization.asn as utf-8 failed,
trying next.
:0: UserWarning: Decoding ./EtsiTs102941TypesAuthorizationValidation.asn as
utf-8 failed, trying next.
Traceback (most recent call last):
  File "../../../../tools/asn2wrs.py", line 8091, in <module>
    eth_main()
  File "../../../../tools/asn2wrs.py", line 8028, in eth_main
    eth_do_module(module, ectx)
  File "../../../../tools/asn2wrs.py", line 7886, in eth_do_module
    ast.to_eth(ectx)
  File "../../../../tools/asn2wrs.py", line 3677, in to_eth
    self.body.to_eth(ectx)
  File "../../../../tools/asn2wrs.py", line 3706, in to_eth
    a.eth_reg('', ectx)
  File "../../../../tools/asn2wrs.py", line 3265, in eth_reg
    if self.type == 'Type_Ref' and not self.tr_need_own_fn(ectx):
  File "../../../../tools/asn2wrs.py", line 3769, in tr_need_own_fn
    return (ectx.Per() or ectx.Oer()) and self.HasSizeConstraint()
  File "../../../../tools/asn2wrs.py", line 3156, in HasSizeConstraint
    return self.HasConstraint() and self.constr.IsSize()
  File "../../../../tools/asn2wrs.py", line 3501, in IsSize
    or (self.type == 'Intersection' and (self.subtype[0].IsSize() or
self.subtype[1].IsSize())) \
AttributeError: 'NoneType' object has no attribute 'IsSize'

-- 
You are receiving this mail because:
You are watching all bug changes.
___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-requ...@wireshark.org?subject=unsubscribe

Reply via email to