Target machine hangs on single step

Sysprogs forums Forums VisualKernel Target machine hangs on single step

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9994
    dmott
    Participant

    I’m trying to debug a module for a custom PCIe video capture card. I’ve tried Ubuntu 14.04, 16.04 and have even rebuilt the kernels. Everything is up-to-date. I’ve followed the tutorials and the target machine completely hangs with both network debugging and KDB over a null modem cable. It’s a physical DELL quad core with stock everything except the video card and it hangs no matter where breakpoints are set. It will break into the debugger when the first breakpoint is hit but won’t resume or single step.  Please advise.

     

    #10003
    support
    Keymaster

    Hi,

    The Linux kernel is unfortunately not as well-designed in terms of debugging as the Windows one, so unless you are using JTAG or VMWare that runs on top of the kernel, random hanging could happen. Our best advice would be to try disabling all CPU cores except #0. This should reduce the chance of deadlocks in the kernel.

    Also if this is possible, we would advise getting a special machine with a JTAG connection. Although this is slower than debugging over serial port, this will be 100% reliable as the debugging logic will run on top of the kernel without sharing any resources with it.

    #10009
    dmott
    Participant

    Thanks for the info. Do you have a list of supported machines with JTAGs or a list of machines that are known to work and same with JTAG interfaces?

    #10030
    support
    Keymaster

    Hi,

    This is a tough one unfortunately. JTAG is widely used with ARM-based Linux boards, but is somewhat hard to find on x86/x64. We would recommend double-checking that with your hardware vendor.

    #10036
    dmott
    Participant

    I can appreciate the complications with a process debugging itself but it seems the claims of the product’s capabilities are a bit disingenuous. Has the JTAG debugging on x86 been tested? If so, what setup was used?

    #10047
    support
    Keymaster

    Hi,

    Sorry about the confusion. We have only tested VisualKernel with JTAG on ARM. Regarding product capabilities, VisualKernel automates and simplifies the kernel debugging for configurations supported by the Linux kernel. The only exception is added support for debugging over Ethernet (KGDBoE), however it is not very reliable due to the limitations of the Linux Kernel.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.