Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Aug 1996 06:54:27 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        hackers@freebsd.org
Subject:   m_copym crash
Message-ID:  <199608021354.GAA00394@rah.star-gate.com>

next in thread | raw e-mail | index | archive | help


I have a tcl script crashing my system here at the close of a tcp
connection.

Basically, when the file gets close and it calls a series of 
tcp close related functions, the system crashes at "m_copym 3"

Has anyone seen this before on -current?

	Tnks,
	Amancio

----

struct mbuf *
m_copym(m, off0, len, wait)
	register struct mbuf *m;
	int off0, wait;
	register int len;
{
	register struct mbuf *n, **np;
	register int off = off0;
	struct mbuf *top;
	int copyhdr = 0;

	if (off < 0 || len < 0)
		panic("m_copym 1");
	if (off == 0 && m->m_flags & M_PKTHDR)
		copyhdr = 1;
	while (off > 0) {
		if (m == 0)
			panic("m_copym 2");
		if (off < m->m_len)
			break;
		off -= m->m_len;
		m = m->m_next;
	}
	np = &top;
	top = 0;
	while (len > 0) {
		if (m == 0) {
			if (len != M_COPYALL)
				panic("m_copym 3");
			   **** crash site *****
			break;
		}






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608021354.GAA00394>