Project

General

Profile

Bug #376

[libprelude] assertion 'string' failed (prelude-string.c:661 prelude_string_get_string)

Added by Fr Yhuel over 14 years ago. Updated about 14 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
04/13/2010
Due date:
% Done:

100%

Resolution:

Description

I get the following warning while running prelude-manager 1.0.0 with libprelude 1.0.0

13 Apr 09:41:54 (process:3423) CRITICAL: assertion 'string' failed (prelude-string.c:661 prelude_string_get_string)

Running prelude-manager into gdb with environment variable LIBPRELUDE_ABORT="crit", I get the following bt:

{{{
#0 0x00007f04b24e0f45 in raise () from /lib/libc.so.6
#1 0x00007f04b24e3d80 in abort () from /lib/libc.so.6
#2 0x00007f04b3607e67 in _prelude_log (level=PRELUDE_LOG_CRIT,
file=<value optimized out>, function=<value optimized out>,
line=<value optimized out>, fmt=<value optimized out>;) at prelude-log.c:294
#3 0x00007f04b360d86f in prelude_string_get_string (
string=<value optimized out>;) at prelude-string.c:661
#4 0x00007f04b0c3c0c9 in xmlmod_run (pi=<value optimized out>,
message=<value optimized out>;) at xmlmod.c:685
#5 0x000000000040cc94 in report_plugin_run_single (pi=0x1aaabb0, pf=0x0,
idmef=0x1acbb70) at report-plugins.c:320
#6 0x000000000040d556 in report_plugins_run (idmef=0x1acbb70)
at report-plugins.c:365
#7 0x000000000040fd39 in idmef_message_process (idmef=0x1acbb70)
at idmef-message-scheduler.c:658
#8 0x0000000000410005 in process_message (msg=0x1ac5420)
at idmef-message-scheduler.c:242
#9 0x0000000000410a95 in idmef_message_scheduler_init ()
at idmef-message-scheduler.c:538
#10 0x000000000040b00a in main (argc=3, argv=0x7fff48b36118)
at prelude-manager.c:275
(gdb) f 4
#4 0x00007f04b0c3c0c9 in xmlmod_run (pi=<value optimized out>,
message=<value optimized out>;) at xmlmod.c:685
685 new = xmlNewTextChild(parent, NULL, (const xmlChar *) "Impact",
}}}

Associated revisions

Revision d46bdc3b (diff)
Added by Yoann Vandoorselaere about 14 years ago

Minor XMLmod fixes

Fix prelude-string warning in case of a NULL IDMEF impact description: this
is an optional element. Closes #376.

Always create a CorrelationAlert name element, since the associated
prelude_string_t can never be NULL.

Code simplification for Action element creation.

History

#1 Updated by Anonymous about 14 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Yoann VANDOORSELAERE about 14 years ago

  • Project changed from PRELUDE SIEM to Prelude Manager

Also available in: Atom PDF