NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/59046: dhcpd issue
The following reply was made to PR bin/59046; it has been noted by GNATS.
From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost,
netbsd-bugs%netbsd.org@localhost,
6bone%6bone.informatik.uni-leipzig.de@localhost
Subject: Re: bin/59046: dhcpd issue
Date: Mon, 10 Feb 2025 12:42:55 -0500
--Apple-Mail=_DF768B98-A019-4C84-898A-EC6D7ED72CA2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
Can you print the message type in:
static void
build_dhcpv6_reply(struct data_string *reply, struct packet *packet) {
memset(reply, 0, sizeof(*reply));
=20
/* I would like to classify the client once here, but
* as I don't want to classify all of the incoming packets
* I need to do it before handling specific types.
* We don't need to classify if we are tossing the packet
* or if it is a relay - the classification step will get
* done when we process the inner client packet.
*/
switch (packet->dhcpv6_msg_type) {
?
Thanks
christos
> On Feb 10, 2025, at 3:00=E2=80=AFAM, =
6bone%6bone.informatik.uni-leipzig.de@localhost via gnats <gnats-admin%netbsd.org@localhost> =
wrote:
>=20
> The following reply was made to PR bin/59046; it has been noted by =
GNATS.
>=20
> From: 6bone%6bone.informatik.uni-leipzig.de@localhost
> To: Christos Zoulas <christos%zoulas.com@localhost>
> Cc: gnats-bugs%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, =
netbsd-bugs%netbsd.org@localhost
> Subject: Re: Re: bin/59046: dhcpd issue
> Date: Mon, 10 Feb 2025 08:56:37 +0100 (CET)
>=20
> This GDB was configured as "x86_64--netbsd".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
>=20
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/obj/external/mpl/dhcp/bin/server/dhcpd...
> [New process 25706]
> [New process 487]
> [New process 13393]
> [New process 27458]
> [New process 4164]
> [New process 6709]
> [New process 10550]
> [New process 11044]
> [New process 13596]
> [New process 597]
> [New process 153]
> [New process 15800]
> [New process 21849]
> Core was generated by `dhcpd'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> [Current thread is 1 (process 25706)]
> #0 0x00007bbf3510f8e8 in free () from /usr/lib/libc.so.12
> #1 0x00000001a9695d28 in dfree (ptr=3D<optimized out>, =
file=3D<optimized out>,
> line=3D<optimized out>)
> at =
/usr/src/external/mpl/dhcp/lib/omapip/../../dist/omapip/alloc.c:208
> #2 0x00000001a9666998 in buffer_dereference =
(ptr=3Dptr@entry=3D0x7bbf2dfefc80,
> file=3Dfile@entry=3D0x1a9852728 =
"/usr/src/external/mpl/dhcp/bin/server/../../dist/server/dhcpv6.c", =
line=3Dline@entry=3D7807)
> at =
/usr/src/external/mpl/dhcp/lib/common/../../dist/common/alloc.c:757
> #3 0x00000001a966754c in data_string_forget =
(data=3Ddata@entry=3D0x7bbf2dfefc80,
> file=3Dfile@entry=3D0x1a9852728 =
"/usr/src/external/mpl/dhcp/bin/server/../../dist/server/dhcpv6.c", =
line=3Dline@entry=3D7807)
> at =
/usr/src/external/mpl/dhcp/lib/common/../../dist/common/alloc.c:1350
> #4 0x00000001a963105a in dhcpv6 (packet=3D0x7bbf3888f000)
> at =
/usr/src/external/mpl/dhcp/bin/server/../../dist/server/dhcpv6.c:7807
> #5 0x00000001a96744a4 in do_packet6 (interface=3D<optimized out>,
> packet=3D0x7bbf2dfefde0 "\f", len=3D164, from_port=3D8962, =
from=3D<optimized out>,
> was_unicast=3D<optimized out>)
> at =
/usr/src/external/mpl/dhcp/lib/common/../../dist/common/options.c:4236
> #6 0x00000001a965e10f in got_one_v6 (h=3D<optimized out>)
> at =
/usr/src/external/mpl/dhcp/lib/common/../../dist/common/discover.c:1219
> #7 0x00000001a9691f2a in omapi_iscsock_cb (task=3D<optimized out>,
> socket=3D<optimized out>, cbarg=3D0x7bbf3a0fc180, flags=3D1)
> at =
/usr/src/external/mpl/dhcp/lib/omapip/../../dist/omapip/dispatch.c:172
> #8 0x00000001a980d834 in internal_fdwatch_read (sock=3D0x7bbf3a0bf700)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/unix/socket.=
c:3208
> #9 dispatch_recv (sock=3D0x7bbf3a0bf700)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/unix/socket.=
c:2718
> #10 process_fd (writeable=3D<optimized out>, readable=3D<optimized =
out>,
> fd=3D<optimized out>, thread=3D0x7bbf3a148ca0)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/unix/socket.=
c:3279
> #11 process_fds (nevents=3D<optimized out>, events=3D<optimized out>,
> thread=3D0x7bbf3a148ca0)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/unix/socket.=
c:3326
> #12 netthread (uap=3D0x7bbf3a148ca0)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/unix/socket.=
c:3613
> #13 0x00000001a9837713 in isc__trampoline_run (arg=3D0x7bbf3a13aa30)
> at =
/usr/src/external/mpl/dhcp/bind/lib/libisc/../../dist/lib/isc/trampoline.c=
:215
> #14 0x00007bbf3960c89f in ?? () from /usr/lib/libpthread.so.1
> #15 0x00007bbf350930e0 in ?? () from /usr/lib/libc.so.12
> #16 0x0000000000200000 in ?? ()
> #17 0x0000000000000000 in ?? ()
>=20
> Last log entry before the crash was:
> Client 00:01:00:01:27:3e:db:f2:b0:5c:da:40:02:08 releases address =
2001:638:902:200c::1269
> Sending Relay-reply to 2001:638:902:1::1 port 547
>=20
>=20
> Regards
> Uwe
>=20
>=20
> On Sat, 8 Feb 2025, Christos Zoulas wrote:
>=20
>> Can you compile with -g (symbols)? I can't tell which call is that.
>>=20
>> Thanks,
>>=20
>> christos
>>=20
>>=20
>>=20
>=20
--Apple-Mail=_DF768B98-A019-4C84-898A-EC6D7ED72CA2
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename=signature.asc
Content-Type: application/pgp-signature;
name=signature.asc
Content-Description: Message signed with OpenPGP
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCZ6o6nwAKCRBxESqxbLM7
Ok3jAJ0Us2NyRXyx0EsI6cNBj8h+xp0G+gCfa0phV42j2Cx42ywMcuCTPRirgtI=
=aNA+
-----END PGP SIGNATURE-----
--Apple-Mail=_DF768B98-A019-4C84-898A-EC6D7ED72CA2--
Home |
Main Index |
Thread Index |
Old Index