Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core, freeswitch-core
    • Security Level: public
    • Labels:
      None
    • CPU Architecture:
      x86-64
    • Kernel:
      Linux
    • uname:
      Linux commsmundi 4.4.16 #1 SMP PREEMPT Mon Aug 1 14:45:02 CEST 2016 x86_64 GNU/Linux
    • Userland:
      GNU/Linux
    • Distribution:
      Debian
    • Distribution Version:
      Debian 8 jessie
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      Version 1.7.0 git 7aa97b7 2016-09-15 22:28:04Z 64bit
    • GIT Master Revision hash::
      7aa97b7

      Description

      It looks a bit confusing: "switch_core_file_read" calls "file_string_file_read" which calls "switch_core_file_read" using another file handler included in the original file handler.

      In the first "switch_core_file_read", the file_interface pointer is ok:
      fh->file_interface=0x1ad8918

      But then the next "switch_core_file_read" (after going through "file_string_file_read") tries to read another file_interface pointer which is NULL:
      fh->private_info->fh->file_interface=0x0

      Not sure what happens for now...
      1. bt_full.txt
        17 kB
        François
      2. bt.txt
        4 kB
        François
      3. thread_apply_all_bt_full.txt
        1.49 MB
        François
      4. thread_apply_all_bt.txt
        399 kB
        François

        Activity

        Hide
        francois François added a comment -
        Mmm, maybe it is because I use some type of URI form with "file_string://":

        <action application="export" data="ringback=file_string://&lt;full_path_to_mp3_file>"/>
        Show
        francois François added a comment - Mmm, maybe it is because I use some type of URI form with "file_string://": <action application="export" data="ringback=file_ string://&lt;full_path_to_mp3_file >"/>
        Hide
        francois François added a comment -
        Why does jira interpret < as &lt;?

        I meant to say:
         <action application="export" data="ringback=file_string://[full_path_to_mp3_file]"/>
        Show
        francois François added a comment - Why does jira interpret < as &lt;? I meant to say:  <action application="export" data="ringback=file_string://[full_path_to_mp3_file]"/>
        Hide
        brian Brian West added a comment -
        Are you using a single file? and can you attach your dialplan xml that replicates this issue?
        Show
        brian Brian West added a comment - Are you using a single file? and can you attach your dialplan xml that replicates this issue?
        Hide
        francois François added a comment -
        Nevermind about the file_string, it's just a module that handles the file_string:// url.

        Now that i understand a bit more how this all works, I think it might have been introduced by some commit from FS-8811, probably 66fe6e5. Those are the only commits to switch_core_file since the last version I used with the same configuration. Since updating to head 2 days ago, I've had 6 of these segfaults.

        I'll try to reproduce in lab and pinpoint the exact commit, if I can't I'll just try something else until I crack this thing! :-)
        Show
        francois François added a comment - Nevermind about the file_string, it's just a module that handles the file_string:// url. Now that i understand a bit more how this all works, I think it might have been introduced by some commit from FS-8811 , probably 66fe6e5. Those are the only commits to switch_core_file since the last version I used with the same configuration. Since updating to head 2 days ago, I've had 6 of these segfaults. I'll try to reproduce in lab and pinpoint the exact commit, if I can't I'll just try something else until I crack this thing! :-)
        Hide
        francois François added a comment - - edited
        Yes I'm using a single file, but I don't think it has to do with the file_string anymore, all seems good with this particular module. Looking into FS-8811 now.
        Show
        francois François added a comment - - edited Yes I'm using a single file, but I don't think it has to do with the file_string anymore, all seems good with this particular module. Looking into FS-8811 now.
        Hide
        francois François added a comment -
        I might have been misunderstood, this issue is not resolved.

        I just said that I don't suspect file_string to be the cause as I previously did.

        I now suspect that some commit in FS-8811 is the cause of this segfault, so I am looking into it. Please keep it open until I come up with a patch!
        Show
        francois François added a comment - I might have been misunderstood, this issue is not resolved. I just said that I don't suspect file_string to be the cause as I previously did. I now suspect that some commit in FS-8811 is the cause of this segfault, so I am looking into it. Please keep it open until I come up with a patch!
        Hide
        anthm Anthony Minessale II added a comment -
        I reproduced the seg, made the patch and fixed it and tested it.
        Are you saying you still have a crash on latest master?

        When the bug resolved you should always check the commits under the development section.

        Show
        anthm Anthony Minessale II added a comment - I reproduced the seg, made the patch and fixed it and tested it. Are you saying you still have a crash on latest master? When the bug resolved you should always check the commits under the development section.
        Hide
        francois François added a comment -
        Sorry about this Anthony, I hadn't seen your commit.

        Resolved again.
        Show
        francois François added a comment - Sorry about this Anthony, I hadn't seen your commit. Resolved again.

          People

          • Assignee:
            anthm Anthony Minessale II
            Reporter:
            francois François
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development