<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>33349</bug_id>
          
          <creation_ts>2017-04-09 10:23:48 +0300</creation_ts>
          <short_desc>segfaults when reading config (and is a core dump bomb)</short_desc>
          <delta_ts>2019-01-20 01:03:39 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>keepalived</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>aen</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>nbr</cc>
    
    <cc>rider</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>163090</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-04-09 10:23:48 +0300</bug_when>
    <thetext>1.3.5-alt2.S1

keepalived -d segfaults when reading the config file in a function which verifies the config (as seen in the backtrace of the core dump printed by gdb).

It&apos;s a pity that there is no keepalived-debuginfo.

And it behaves as a core dump and fork bomb, at least, when the systemd service is started: / is filled with the core dumps, and and keeps forking.

Unfortuanetly, now the system where this happened is unusable and unaccessible because of this. I&apos;ll be able to post more details on how to reproduce this when I restore this system (from scratch).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163091</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2017-04-09 11:30:03 +0300</bug_when>
    <thetext>Ваня,эта сборка keepalived используется много где, если падает - у тебя что-то недонастроено.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163092</commentid>
    <comment_count>2</comment_count>
    <who name="nbr">nbr</who>
    <bug_when>2017-04-09 12:10:49 +0300</bug_when>
    <thetext>Так дело в том, что keepalived падает с segfault  при минимальных ошибках в конфигурации! Причем в цикле.
Да, на правильных, отлаженных keepalived.conf все будет нормально. Но это не дело.


https://github.com/acassen/keepalived/issues/426

Это недоработка апстрима, но с ней надо что-то делать. Это некорректное и неробастное поведение - дампить кору при ошибках конфига. 
P.S.Я не пытаюсь закоммитить версию с keepalived в cизиф - пропускать мои таски в сизиф с ней не надо. Это чисто test-only stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>163094</commentid>
    <comment_count>3</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2017-04-09 14:48:16 +0300</bug_when>
    <thetext>Ну да, падает при плохой конфигурации. 
Пишите в апстрим.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>175884</commentid>
    <comment_count>4</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2018-11-19 14:31:23 +0300</bug_when>
    <thetext>пример кривого конфига дадите ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177633</commentid>
    <comment_count>5</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2019-01-19 22:01:38 +0300</bug_when>
    <thetext>Кривой конфиг: 
vrrp_instance VI_1 {
    interface ens18
    state
    nopreempt
    priority 100
    virtual_router_id 1

    virtual_ipaddress {
        192.168.1.99/24 brd 192.168.1.255 dev ens18
    }
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177636</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2019-01-20 01:03:39 +0300</bug_when>
    <thetext>keepalived-2.0.11-alt1 -&gt; sisyphus:

Sat Jan 19 2019 Anton Farygin &lt;rider@altlinux.ru&gt; 2.0.11-alt1
- 2.0.11
- enabled strict config check (closes: #33349)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>