Re: bug: double free

Jörg Sommer <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
Hallo John,

"John E. Davis" <[email protected]> wrote:
> Jörg Sommer <[email protected]> wrote:
>> (gdb) bt
>> #0  0x0fd7d36c in raise () from /lib/libc.so.6
>> #1  0x0fd7efec in abort () from /lib/libc.so.6
>> #2  0x0fdbbdf4 in __libc_message () from /lib/libc.so.6
>> #3  0x0fdc3c38 in malloc_printerr () from /lib/libc.so.6
>> #4  0x0fdc60a8 in free () from /lib/libc.so.6
>> #5  0x0ff8c56c in SLfree () from /lib/libslang.so.2
>> #6  0x100476c8 in slrn_free (s=0x0) at /home/joerg/svn/slrn/src/strutil.c:308
>
> slrn_free will not do anything if its argument is NULL, as #6 above
> suggests.  Are you able to reproduce this?

Yes.

Breakpoint 1, slrn_art_free_article_line (l=0x101cbf88) at /home/joerg/svn/slrn/src/art.c:570
570             slrn_free ((char *) l->buf);
$143 = {next = 0x101cc1e0, prev = 0x101cbf60, flags = 0, 
  buf = 0x101cd2d8 "\017��\017��believe that whole question is in topic. \nIs there any way to recognize ( and then shape ) p2p traffic which is encrypted?\nModern p2p clients have this ability moreover some of them have this "...}
$144 = (Slrn_Article_Line_Type *) 0x101cbf88
(gdb) step
slrn_free (
    s=0x101cd2d8 "\017��\017��believe that whole question is in topic. \nIs there any way to recognize ( and then shape ) p2p traffic which is encrypted?\nModern p2p clients have this ability moreover some of them have this "...) at /home/joerg/svn/slrn/src/strutil.c:308
308        if (s != NULL)
(gdb) 
307     {
(gdb) 
308        if (s != NULL)
(gdb) 
309           SLfree (s);
(gdb) 
0x10052190 in call___do_global_ctors_aux ()
(gdb) cont
Continuing.
*** glibc detected *** /home/joerg/svn/slrn/src/objs/slrn: double free or corruption (out): 0x101cd2d8 ***

slrn_free() is not called with NULL.

This is the article:
--------------------
Path: alea.gnuu.de!postmaster
From: [email protected] (sAwAr)
Newsgroups: local.mailinglist.lartc
Subject: How to fight with encrypted p2p
Date: 12 Nov 2007 02:51:07 +0100
Lines: 11
Sender: [email protected]
Approved: [email protected]
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: TEXT/plain; CHARSET=ISO-8859-2
Content-Transfer-Encoding: QUOTED-PRINTABLE
X-Trace: alea.gnuu.de 1194860065 20082 127.0.0.1 (12 Nov 2007 09:34:25 GMT)
X-Complaints-To: [email protected]
X-Virus-Scanned: amavisd-new at gnuu.de
X-Original-To: [email protected]
X-Delivered-To: [email protected]
X-To: [email protected]
X-ORIGINATE-IP: 81.219.219.19
X-IMPORTANCE: Normal
X-MSMAIL-PRIORITY: Normal
X-PRIORITY: 3
X-Mailer: PSE3
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
X-Precedence: list
X-List-Id: "Mailinglist of the Linux Advanced Routing &amp;
	Traffic Control project" <lartc.mailman.ds9a.nl>
X-List-Unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>,
	<mailto:[email protected]?subject=unsubscribe>
X-List-Archive: <http://mailman.ds9a.nl/pipermail/lartc>
X-List-Post: <mailto:[email protected]>
X-List-Help: <mailto:[email protected]?subject=help>
X-List-Subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>,
	<mailto:[email protected]?subject=subscribe>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.051336, version=1.1.3
Xref: alea.gnuu.de local.mailinglist.lartc:8105

=0A=0AHi=0A=0AI believe that whole question is in topic. =0AIs there any wa=
y to recognize ( and then shape ) p2p traffic which is encrypted?=0AModern =
p2p clients have this ability moreover some of them have this enabled by de=
fault. =0ANow I'm using ipp2p for iptables but as I know this doesn't recog=
nize encrypted traffic.=0A=0AThanks in advance.=0A=0APozdrawiam=0ASzymon Tu=
rkiewicz=0A
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

-----[END]---------------

Bye, Jörg.
-- 
Roesen's Law (http://www.bruhaha.de/laws.html):
Sobald ein Troll, DAU oder Elch im Lauf eines Threads auf heftige Kritik
stößt, argumentiert er mit der Arroganz des Kritikers. Dies kann auch
vorsorglich erfolgen.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.