Menu

segfault while calling dump_open

Help
2007-07-11
2013-05-09
  • Shehjar Tikoo

    Shehjar Tikoo - 2007-07-11

    Hi

    Python2.4 crashes with a segfault while calling the dump_open method.

    What information can I provide to help fix this problem? core dumps? backtraces?
    I'd really like to avoid building python unless its completely unavoidable.

    I am using a P4 machine with Debian etch.

    Thanks
    Shehjar

     
    • Shehjar Tikoo

      Shehjar Tikoo - 2007-07-11

      BTW, this happens with the latest check out from the CVS.

       
      • Wim Lewis

        Wim Lewis - 2007-07-15

        A backtrace would be helpful if you can get one. You should be able to compile just py-libpcap with debugging symbols (no need to recompile all of python) and then run python in the debugger, and hit 'bt' when it segfaults. Actually this is probably worth doing even if you don't recompile py-libpcap.

        Also, what version of libpcap are you using? (Easy way to find this is to import the pcap module and then get the value of the "pcap._pcap.version" string.)

         
        • kristjanbb

          kristjanbb - 2009-08-05

          dump_open can not be called before self->pcap has been initialized by calling some of the open_* functions.

          It's a lack of sanity check in both pylibpcap and libpcap. Just use open_offline(filename) instead.

          See trace in bug report.

           
    • Andrzej Lichnerowicz

      hi, i've run against same problem. libpcap 0.8.3. no real way to provide you with trace, but wanted to ask is there any progress on this?

       

Log in to post a comment.