[Home]

Summary:ASTERISK-24546: Use Asterisk console: Conditional jump or move depends on uninitialised value
Reporter:Badalian Vyacheslav (slavon)Labels:
Date Opened:2014-11-22 06:22:52.000-0600Date Closed:2015-01-02 11:48:54.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:11.13.1 Frequency of
Occurrence
Related
Issues:
Environment:centos 6 - x64Attachments:
Description:{code}
==44910== Conditional jump or move depends on uninitialised value(s)
==44910==    at 0x5AACAE: c_setpat (search.c:184)
==44910==    by 0x5ACA51: ed_search_prev_history (common.c:756)
==44910==    by 0x5A6D07: el_gets (read.c:475)
==44910==    by 0x44C5FD: main (asterisk.c:4401)
==44910==  Uninitialised value was created by a heap allocation
==44910==    at 0x4A06A2E: malloc (vg_replace_malloc.c:270)
==44910==    by 0x5AC545: el_init (search.c:73)
==44910==    by 0x4476C5: ast_el_initialize (asterisk.c:2988)
==44910==    by 0x44BBAD: main (asterisk.c:4135)
==44910==
==44910== Conditional jump or move depends on uninitialised value(s)
==44910==    at 0x4A0A20B: strstr (mc_replace_strmem.c:1367)
==44910==    by 0x5AAD61: el_match (search.c:125)
==44910==    by 0x5AAF79: c_hmatch (search.c:164)
==44910==    by 0x5ACACF: ed_search_prev_history (common.c:768)
==44910==    by 0x5A6D07: el_gets (read.c:475)
==44910==    by 0x44C5FD: main (asterisk.c:4401)
==44910==  Uninitialised value was created by a heap allocation
==44910==    at 0x4A06A2E: malloc (vg_replace_malloc.c:270)
==44910==    by 0x5AC545: el_init (search.c:73)
==44910==    by 0x4476C5: ast_el_initialize (asterisk.c:2988)
==44910==    by 0x44BBAD: main (asterisk.c:4135)

{code}
Comments:By: Matt Jordan (mjordan) 2014-11-24 10:34:25.148-0600

What are you doing to trip that particular output in valgrind? Running Asterisk with the standard suppressions does not emit that on startup - are you performing a particular action in the CLI?

By: Badalian Vyacheslav (slavon) 2014-11-24 10:37:27.878-0600

Yes... `astrerisk -r` and {{up}} and {{down}} keys for history search

By: Badalian Vyacheslav (slavon) 2014-12-02 23:53:53.520-0600

Sorry, but i can't provide more information. Some time {{asterisk -r}} crashes on 11.8 - 11.14 versions when i search in command history. But in valgrind i see it only one time.

By: Rusty Newton (rnewton) 2014-12-05 08:33:46.313-0600

What compiler flags was Asterisk compiled with when it happened?

{quote}
But in valgrind i see it only one time.
{quote}
So you cannot reproduce the issue reliably?

By: Badalian Vyacheslav (slavon) 2014-12-09 21:40:49.378-0600

Flags:
DONT_OPTIMIZATE
BETTER_BACKTRACES

{quote}
So you cannot reproduce the issue reliably?
{quote}

Nope. I get it when try to catch other issue. I can't reproduce it. This happens very rarely.


By: Rusty Newton (rnewton) 2014-12-16 20:09:48.200-0600

{quote}
Nope. I get it when try to catch other issue.
{quote}
What does that mean? You just noticed it while running Asterisk under valgrind for the other issue? Or was there something in particular you were doing with Asterisk to trigger the other issue as well. A CLI command or something else?

By: Badalian Vyacheslav (slavon) 2014-12-31 04:50:07.541-0600

{quote}
You just noticed it while running Asterisk under valgrind for the other issue
{quote}

Yes. I debugged other errors and found this in the logs periodically valgrind.

This can happen due to the fact that I'm using {{Putty ssh}} + {{screen}} + {{Russian chars}}. Maybe because of the Russian chars or control commands for the screen {{CTRL + CHAR}} can fly in the asterisk CLI.

By: Rusty Newton (rnewton) 2015-01-02 11:48:46.543-0600

Okay. I'm going to close this one out since we can't reproduce, you can't reproduce and we don't have any other reports.

If someone gathers further information that would help debug this, then we can re-open.