[syslog-ng]syslog-ng crash
Stephane Enten
tuf@mmania.com
Fri, 26 Oct 2001 12:40:15 +0200
--9jxsPFA5p3P2qPhR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, Oct 26, 2001 at 12:10:05PM +0200, Thomas Kaehn wrote:
>
> Hello,
>
> syslog-ng crashes several times per hour.
> I get the following error message:
> ol_object_check: Type error!
>
> What is the possible cause of this problem?
> Is there a possibility to fix it?
You need to upgrade to syslog-ng 1.5.12 and libol 0.3.1
and apply this (little) fix[0].
Now my syslog-ng doesn't crash anymore.
Stephane
[0] Mail with the fix attached
--9jxsPFA5p3P2qPhR
Content-Type: message/rfc822
Content-Disposition: inline
Return-Path: <syslog-ng-admin@lists.balabit.hu>
Delivered-To: tutuf@ninsei.aspic.com
Received: from off.aspic.com (ns.aspic.com [213.193.2.5])
by ninsei.aspic.com (Postfix) with ESMTP id 346BC217D9
for <tutuf@ninsei.aspic.com>; Mon, 22 Oct 2001 22:13:41 +0200 (CEST)
Received: from venus.terrasoft.hu (venus.terrasoft.hu [195.70.57.147])
by off.aspic.com (8.9.3/8.9.3) with ESMTP id WAA33889
for <tuf@mmania.com>; Mon, 22 Oct 2001 22:14:22 +0200 (CEST)
(envelope-from syslog-ng-admin@lists.balabit.hu)
Received: from venus.terrasoft.hu (localhost [127.0.0.1])
by venus.terrasoft.hu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id VAA28202;
Mon, 22 Oct 2001 21:38:20 +0200
Delivered-To: <syslog-ng@lists.balabit.hu>
Received: from bzorp.balabit (blurp.balabit.hu [195.70.57.121])
by venus.terrasoft.hu (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id VAA28191
for <syslog-ng@lists.balabit.hu>; Mon, 22 Oct 2001 21:38:17 +0200
Received: from bazsi by bzorp.balabit with local (Exim 3.12 #1 (Debian))
id 15vkn8-0003B2-00
for <syslog-ng@lists.balabit.hu>; Mon, 22 Oct 2001 21:31:18 +0200
Date: Mon, 22 Oct 2001 21:31:18 +0200
From: Balazs Scheidler <bazsi@balabit.hu>
To: syslog-ng@lists.balabit.hu
Message-ID: <20011022213118.A12209@balabit.hu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
User-Agent: Mutt/1.0.1i
Subject: [syslog-ng]type error fix
Reply-To: syslog-ng@lists.balabit.hu
Sender: syslog-ng-admin@lists.balabit.hu
Errors-To: syslog-ng-admin@lists.balabit.hu
X-Mailman-Version: 1.1
Precedence: bulk
List-Id: Syslog-ng users' and developers' mailing list <syslog-ng.lists.balabit.hu>
X-BeenThere: syslog-ng@lists.balabit.hu
Hi,
The patch below hopefully fixes the "Type Error" problems reported in
1.5.12. I'd appreciate feedback whether it really fixes the bug.
(if it does, expect a new version shortly)
Thanks for the cooperation for those who helped me to track this issue.
diff -urN syslog-ng-1.5.12/src/affile.c syslog-ng-1.5.12-fixed/src/affile.c
--- syslog-ng-1.5.12/src/affile.c Sat Oct 20 15:03:59 2001
+++ syslog-ng-1.5.12-fixed/src/affile.c Mon Oct 22 21:22:18 2001
@@ -118,7 +118,7 @@
struct resource_node *res;
lseek(fd, 0, SEEK_END);
- self->src = io_read(make_io_fd(cfg->backend, fd, self->name),
+ self->src = io_read(make_io_fd(cfg->backend, fd, ol_string_use(self->name)),
make_log_reader(0, c),
NULL);
res = REMEMBER_RESOURCE(cfg->resources, &self->src->super.super);
@@ -218,7 +219,7 @@
self->owner->flags & AFFILE_CREATE_DIRS, &fd)) {
self->dest =
- io_write(make_io_fd(cfg->backend, fd, self->expanded_fname),
+ io_write(make_io_fd(cfg->backend, fd, ol_string_use(self->expanded_fname)),
make_pkt_buffer_ext(self->owner->sync_freq,
MAX(self->owner->super.log_fifo_size + 1,
self->owner->sync_freq)),
--
Bazsi
_______________________________________________
syslog-ng maillist - syslog-ng@lists.balabit.hu
https://lists.balabit.hu/mailman/listinfo/syslog-ng
--9jxsPFA5p3P2qPhR--