Bug#860393: Segfaults on startup

Bernhard Übelacker bernhardu at mailbox.org
Mon Apr 17 16:19:22 UTC 2017


Hello,
just tried if I can reproduce the issue.

I think this is a again a case of a pointer truncation by default
int for a pointer returning function.


First patch is just to build with debug information to make the
automatic dbgsym packages helpful.

The second patch adds some includes to get prototypes for alloc function.
This is also warned about in the current amd64 build log:
../win/proxy/nhext.c:36:39: warning: implicit declaration of function 'alloc' [-Wimplicit-function-declaration]
     nhext_connection.in = (NhExtXdr *)alloc(sizeof(NhExtXdr));
                                       ^~~~~

The third patch adds the prototype into a header file for nh_option_get_boolopt.

With these applied at least the user interface can start without crashing.
The build shows another 58 "warning: implicit declaration of function", that
may crash later.

Kind regards,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compile-with-debug-information-to-make-dbgsym-packag.patch
Type: text/x-patch
Size: 2207 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170417/d7b67368/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Avoid-pointer-truncation-because-of-default-int-retu.patch
Type: text/x-patch
Size: 3882 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170417/d7b67368/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Avoid-pointer-truncation-because-of-default-int-retu.patch
Type: text/x-patch
Size: 2411 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170417/d7b67368/attachment-0002.bin>


More information about the Pkg-games-devel mailing list