After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628567 - g-ir-scanner crashes on unnamed interface method parameters
g-ir-scanner crashes on unnamed interface method parameters
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-09-01 23:04 UTC by Andreas Rottmann
Modified: 2015-02-07 16:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a scanner test for unnamed interface methods (1.17 KB, patch)
2010-09-01 23:04 UTC, Andreas Rottmann
committed Details | Review

Description Andreas Rottmann 2010-09-01 23:04:53 UTC
Created attachment 169307 [details] [review]
Add a scanner test for unnamed interface methods

Using gobject-introspection as of 8c8b6f3.., the attached testcase causes an exception in the scanner (this issue originally turned up in libsoup):

make[4]: Entering directory `/home/rotty/src/g-i/tests/scanner'
  GISCAN Foo-1.0.gir
Traceback (most recent call last):
  • File "../../tools/g-ir-scanner", line 44 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/home/rotty/src/g-i/giscanner/scannermain.py", line 341 in scanner_main
    main.transform()
  • File "/home/rotty/src/g-i/giscanner/maintransformer.py", line 94 in transform
    self._namespace.walk(self._pass3)
  • File "/home/rotty/src/g-i/giscanner/ast.py", line 405 in walk
    node.walk(callback, [])
  • File "/home/rotty/src/g-i/giscanner/ast.py", line 489 in walk
    self._walk(callback, chain)
  • File "/home/rotty/src/g-i/giscanner/glibast.py", line 150 in _walk
    super(GLibInterface, self)._walk(callback, chain)
  • File "/home/rotty/src/g-i/giscanner/ast.py", line 787 in _walk
    meth.walk(callback, chain)
  • File "/home/rotty/src/g-i/giscanner/ast.py", line 484 in walk
    res = callback(self, chain)
  • File "/home/rotty/src/g-i/giscanner/maintransformer.py", line 907 in _pass3
    self._pass3_callable_callbacks(node)
  • File "/home/rotty/src/g-i/giscanner/maintransformer.py", line 943 in _pass3_callable_callbacks
    param.argname.endswith('data')):
AttributeError: 'NoneType' object has no attribute 'endswith'
make[4]: *** [Foo-1.0.gir] Error 1
make[4]: Leaving directory `/home/rotty/src/g-i/tests/scanner'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/rotty/src/g-i/tests'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/rotty/src/g-i/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rotty/src/g-i'
make: *** [all] Error 2
Comment 1 André Klapper 2015-02-07 16:54:57 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]