Menu

#11 Segfault with "-n" option

trunk
closed
Aex Aey
None
5
2018-05-15
2016-04-07
No

Hello,
i'm facing segfault issue on different redhat distrib when using option "-n" after a few time.

For example on : CentOS Linux release 7.1.1503 (Core)

Problem not reproduced without this option.

I attached the debug, may you have a look ?

Thanks

David.

1 Attachments

Related

Support Requests: #11

Discussion

  • Aex Aey

    Aex Aey - 2016-04-07

    Hi David, thanks for profiling your build. Could you please take a stack dump/backtrace too?

    # ...checkout or reuse existing svn directory
    make pcapsipdump-debug
    ulimit -c 16777216
    ./pcapsipdump-debug -n ...all the options you would regularly use...
    # ...run until it segfaults, and make sure corefile is created
    gdb pcapsipdump-debug ...core-file here...
    bt
    info args
    info locals
    up
    # ...repeat "info locals" and "up" until gdb say "you cannot go up".
    

    Arguments/variables from "info" commands above might contain confidential information. Feel free to replace that with "XXXX".

     
  • david Villaume

    david Villaume - 2016-04-08

    Hi,

    Here are the requested infos.

    Thanks again for you help.

    David

     
  • Aex Aey

    Aex Aey - 2016-04-08

    Ok, I see what happened here:

    Program terminated with signal 11, Segmentation fault.
    #0  0x00000000004034a0 in main (argc=8, argv=0x7ffd63d33848) at pcapsipdump.cpp:540
    540                             ct->table[idx].had_bye=1;
    

    while idx variable at this point is:

    idx = -1
    

    Fixed in [r103], thanks for reporting!

     

    Related

    Commit: [r103]

  • Aex Aey

    Aex Aey - 2016-04-18
    • status: open --> closed
    • assigned_to: Aex Aey
     

Log in to post a comment.

MongoDB Logo MongoDB