Bug#501435: marked as done (glibc-doc-reference: socket connection server example segfaults on 64bits due to missing arpa/inet.h header)
"Debian Bug Tracking System" <[email protected]> Wed, 29 Jul 2026 20:23:03 +0000
| Newsgroups | gmane.linux.debian.devel.glibc |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format... ------------=_1785356583-3440382-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your message dated Wed, 29 Jul 2026 20:22:22 +0000 with message-id <[email protected]> and subject line Bug#501435: fixed in glibc-doc-reference 2.43-1 has caused the Debian Bug report #501435, regarding glibc-doc-reference: socket connection server example segfaults o= n 64bits due to missing arpa/inet.h header to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) --=20 501435: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D501435 Debian Bug Tracking System Contact [email protected] with problems ------------=_1785356583-3440382-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by bugs.debian.org; 7 Oct 2008 10:47:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rietz.debian.org X-Spam-Level: X-Spam-Bayes: score:0.0000 Tokens: new, 54; hammy, 143; neutral, 36; spammy, 8. spammytokens:1.000-1--H*RU:sk:gregory, 1.000-1--H*r:sk:gregory, 1.000-1--HX-Spam-Relays-External:sk:gregory, 0.993-1--arpa, 0.987-1--Connections hammytokens:0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug, 0.000-+--H*x:reportbug, 0.000-+--H*UA:reportbug, 0.000-+--Severity X-Spam-Status: No, score=-11.9 required=4.0 tests=BAYES_00, DNS_FROM_SECURITYSAGE,FOURLA,HAS_PACKAGE,SPF_PASS,XMAILER_REPORTBUG autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Return-path: <[email protected]> Received: from ebene.inrialpes.fr ([194.199.18.70]) by rietz.debian.org with esmtp (Exim 4.63) (envelope-from <[email protected]>) id 1KnA6W-0005DK-6D for [email protected]; Tue, 07 Oct 2008 10:47:48 +0000 Received: from pamunkey.imag.fr (pamunkey.imag.fr [129.88.69.8]) by ebene.inrialpes.fr (8.13.6/8.13.8) with ESMTP id m97AjQpV018123; Tue, 7 Oct 2008 12:45:26 +0200 (MEST) Received: from wichita.imag.fr ([email protected] [129.88.69.69]) by pamunkey.imag.fr (8.13.4/8.13.4/ImagV2.1) with ESMTP id m97AjKMA011734; Tue, 7 Oct 2008 12:45:20 +0200 Received: from mounie by wichita.imag.fr with local (Exim 4.69) (envelope-from <[email protected]>) id 1KnA4E-0006DL-7b; Tue, 07 Oct 2008 12:45:26 +0200 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gregory Mounie <[email protected]> To: Debian Bug Tracking System <[email protected]> Subject: glibc-doc-reference: socket connection server example segfaults on 64bits due to missing arpa/inet.h header Message-ID: <[email protected]> X-Mailer: reportbug 3.45 Date: Tue, 07 Oct 2008 12:45:26 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (ebene.inrialpes.fr [194.199.18.70]); Tue, 07 Oct 2008 12:45:27 +0200 (MEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: [email protected] Delivered-To: [email protected] Package: glibc-doc-reference Version: 2.7-1 Severity: normal The example of socket server in the info file is buggy on 64 bits. (File: libc.info, Node: Connections, Next: Datagrams, Prev: Open/Close Sockets, Up: Sockets) It is doing segfault on x86-64 (and probably on most 64 bits architecture) due to the usage of inet_ntoa() without its header #include <arpa/inet.h> It is segfaulting in the fprintf line 107 : fprintf (stderr, "Server: connect from host %s, port %hd.\n", inet_ntoa (clientname.sin_addr), ntohs (clientname.sin_port)); The return value of inet_ntoa() is defaulted to int (4 bytes) instead of the char* (8 bytes). Thus the %s of the fprintf access a wrong memory address. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash -- no debconf information ------------=_1785356583-3440382-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 501435-close) by bugs.debian.org; 29 Jul 2026 20:22:24 +0000 X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02 (2024-03-25) on buxtehude.debian.org X-Spam-Level: X-Spam-Status: No, score=-114.2 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD, HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,SPF_HELO_PASS,SPF_PASS, USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 108; hammy, 150; neutral, 149; spammy, 0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK, 0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload, 0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo. Return-path: <[email protected]> Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:50664) by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <[email protected]>) id 1wpAnI-00EQtB-23 for [email protected]; Wed, 29 Jul 2026 20:22:24 +0000 Received: via submission from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,[email protected] (verified) by mailly.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from <[email protected]>) id 1wpAnH-00C7uk-15 for [email protected]; Wed, 29 Jul 2026 20:22:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type: Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID :Content-Description:In-Reply-To:References; bh=tix779FRSK15MCmcPxBWow2WFAS1M4SE4d+KJQWNyKA=; b=Ze89T/x3U9s66KtCq0g7EinkFv mXqpSwnbsfhgwvM0uwthnRwCYY7ue5Up4CpAdM5bL4HHz8F6zYPdBiggCEs+JmruIiRt7JrzvQ0Gk Ws915tKcnUFSSr7ASGVEWJEPMLkuPhU4VTRFCeb+Z9gw3W/UFSEF7RM5DbTIESaic4VG1k/mDg8VZ EZcmSzcL4xA1cBpMDqbMs6qX1WFFXQhO5yuLSUgslQ8kKEAF/BOf6SEMQWrMqV6ideAXcIqoTuiuV Op6HqIS00nipO6blHv6tXmjrixCzYs7An/XNpezB6X5TZjz9eApV/S+PLuJwr5SDT8T+ClYTTAW8H 84e5Oixg==; Received: from dak by fasolo.debian.org with local (Exim 4.98.2) (envelope-from <[email protected]>) id 1wpAnG-00000003QoV-1q7q; Wed, 29 Jul 2026 20:22:22 +0000 From: Debian FTP Masters <[email protected]> Reply-To: Aurelien Jarno <[email protected]> To: [email protected] X-DAK: dak process-upload X-Debian: DAK X-Debian-Package: glibc-doc-reference Debian: DAK Debian-Changes: glibc-doc-reference_2.43-1_source.changes Debian-Source: glibc-doc-reference Debian-Version: 2.43-1 Debian-Architecture: source Debian-Suite: unstable Debian-Archive-Action: accept MIME-Version: 1.0 Subject: Bug#501435: fixed in glibc-doc-reference 2.43-1 Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="===============7034462515196268832==" Message-Id: <[email protected]> Date: Wed, 29 Jul 2026 20:22:22 +0000 --===============7034462515196268832== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Source: glibc-doc-reference Source-Version: 2.43-1 Done: Aurelien Jarno <[email protected]> We believe that the bug you reported is fixed in the latest version of glibc-doc-reference, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Aurelien Jarno <[email protected]> (supplier of updated glibc-doc-reference = package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 29 Jul 2026 21:50:14 +0200 Source: glibc-doc-reference Architecture: source Version: 2.43-1 Distribution: unstable Urgency: medium Maintainer: GNU Libc Maintainers <[email protected]> Changed-By: Aurelien Jarno <[email protected]> Closes: 335171 501435 Changes: glibc-doc-reference (2.43-1) unstable; urgency=3Dmedium . * New upstream version. Closes: #335171, #501435. * debian/watch: update to v5 and use git instead of ftp. * debian/copyright: rewrite in Machine-readable format. * debian/rules: remove get-orig-source target and related code, now that t= he orig tarball can be generated with uscan. * debian/control: improve package description. * debian/control: drop Priority field, now the default. * debian/control: bump Standards-Version to 4.7.4 (no changes). * debian/salsa-ci.yml: add. Checksums-Sha1: 395cc60d24e44a3093f15cbf447ae42f52b55fca 2102 glibc-doc-reference_2.43-1.dsc f8865e2cc9224332a0925a6b45c8badb193b4082 761376 glibc-doc-reference_2.43.ori= g.tar.xz b19aaa469f5aa4ce548c77ed3bf9f2a2238f2612 6068 glibc-doc-reference_2.43-1.deb= ian.tar.xz 53278896a0db835bd6a65d663e701705987be8a0 5369 glibc-doc-reference_2.43-1_sou= rce.buildinfo Checksums-Sha256: a664d227f56c0a7a4fc251774a9e981430f2cab03fd3227035822d6f208d763b 2102 glibc-= doc-reference_2.43-1.dsc cb38f0725a853bea427cdcc97f870c27a1daac1f5f6ed9cabbb54f6aeb1f316b 761376 glib= c-doc-reference_2.43.orig.tar.xz f2eb79851436d3f70ff015b22d74b1cfca23968b26285373fe77b480895b719c 6068 glibc-= doc-reference_2.43-1.debian.tar.xz f7a409f1402dc01b10dd67ebeb435af34a25563b6f9e789cba266eba75d02739 5369 glibc-= doc-reference_2.43-1_source.buildinfo Files: e84efe9a345d389ee8104aabd8c53834 2102 non-free/doc optional glibc-doc-refere= nce_2.43-1.dsc 7a2720514399c842a3a4c39b1dde0d4d 761376 non-free/doc optional glibc-doc-refe= rence_2.43.orig.tar.xz 9835123765a2c7532ac7fa06cbc3cb63 6068 non-free/doc optional glibc-doc-refere= nce_2.43-1.debian.tar.xz a4b78ba1812f5537b79926f3921ca4c4 5369 non-free/doc optional glibc-doc-refere= nce_2.43-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEUryGlb40+QrX1Ay4E4jA+JnoM2sFAmpqWnkACgkQE4jA+Jno M2vErA/8CqriMyzmPpo24FTlM59mewUr4NtzQkwF1SvgP15b9TUBksL/uELIz2yZ SY/wNiahMvxDNd+a6Hxqo19xwT6qpcEcQ04XPIL1/UR3flr6yQlZY367vnDKx/+C +0sPbUihZYtZzn+RSOxwRV6xe21nOuvxyAExkLdrJrpmoU+W30pKl8fHDAJ4Gp3Y tipC2hjhARpoGeuJpS0myfjCl2MIVyaKM3fOmjGXYvL0sbHL+DfmQHbaKvFFxa1h 1gWA3eN0Lp045+p96ZdCMuZZbF1XyEwIPHtOYfsn4HHCPgHPkfLX3WMZm3aKdvNB IQckUe477bU9L0iaZ5yg8vMRf7fIqmK5WhvX44ZanbtkAxbmWlbtypWRC/2v7Xrr sfCZDYn00y2GFoE5ejwjoly6vROnhST3udXFS/fGOTN9PvmKHXdgj+8quk4/wXNF OQJKJKkvbkh8fD74FNk9Z05pc0KlFk7pMqFg/yMVZLyr/tte9F0eeG93f+v81pnz 2lvb7o1/QzbRx64BkWPzD45y+4ndXaJ4Yiua3NgIWAKxrGD8/FA5hylq71zTPh91 Jyc2SXbjUjD0VhNJIAuZdtAkoRC/9u6nJhZpgfDqrobOvIEz88iZz/gUTVc8F9u5 IO7t/K+/rJN2aKEx0d8nY/dWQMn1CZUgbCLtjnx2UvQ5+PDV7ZQ=3D =3Dk4jH -----END PGP SIGNATURE----- --===============7034462515196268832== Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCampg/gAKCRCb9qggYcy5 ITHgAP4xfTVcRlV2QsstHo3SVxEinuOOXq/xLS5xVckdq5iSjQD+NSLbJlQjLzDC pe8bGXL8mxZrr6LEuIKA2X4I5DZxpQk= =zce6 -----END PGP SIGNATURE----- --===============7034462515196268832==-- ------------=_1785356583-3440382-0--