Db2

  • 1.  dmctop segmentation violation

    IBM Champion
    Posted Tue September 01, 2020 03:46 AM
    Hi Guys,

    I had a dmctop session running over night and when I checked that session this morning I was greeted by:

    [dsmtest@csndsmt ~]$ dmctop -d dsmtrepo -i 5

    Connecting to DB dsmtrepo
    By default secured connection (SSL) is used. For non-SSL connection use option -insecure.
    panic: runtime error: invalid memory address or nil pointer dereference [recovered]
            panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x627d5a]

    goroutine 1 [running]:
    github.com/rivo/tview.(*Application).Run.func1(0xc00016eb80)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/application.go:149 +0x82
    panic(0x7627e0, 0xc5ac50)
            /home/jenkins/tools/org.jenkinsci.plugins.golang.GolangInstallation/1.13/src/runtime/panic.go:679 +0x1b2
    github.com/rivo/tview.(*Table).Draw.func1(...)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/table.go:563
    github.com/rivo/tview.(*Table).Draw(0xc0000a4d20, 0x85bd40, 0xc000276000)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/table.go:788 +0x10ba
    github.com/rivo/tview.(*Grid).Draw(0xc0001bc000, 0x85bd40, 0xc000276000)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/grid.go:662 +0x12bf
    github.com/rivo/tview.(*Grid).Draw(0xc0001bc360, 0x85bd40, 0xc000276000)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/grid.go:662 +0x12bf
    github.com/rivo/tview.(*Pages).Draw(0xc00015b7d0, 0x85bd40, 0xc000276000)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/pages.go:278 +0xa8
    github.com/rivo/tview.(*Application).draw(0xc00016eb80, 0x0)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/application.go:363 +0xff
    github.com/rivo/tview.(*Application).QueueUpdateDraw.func1()
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/application.go:494 +0x3d
    github.com/rivo/tview.(*Application).Run(0xc00016eb80, 0x0, 0x0)
            /home/jenkins/workspace/dmctop_master/go/pkg/mod/github.com/rivo/tview@v0.0.0-20191018125527-685bf6da76c2/application.go:253 +0x615
    dmctop/src/view.(*LayoutElements).Run(0xc000186640)
            /home/jenkins/workspace/dmctop_master/go/src/dmctop/src/view/layout_object_init.go:159 +0x86
    dmctop/src/view.Init(0x5)
            /home/jenkins/workspace/dmctop_master/go/src/dmctop/src/view/view_init.go:28 +0xa3
    main.main()
            /home/jenkins/workspace/dmctop_master/go/src/dmctop/src/cmd/dmctop/main.go:50 +0x665

    This was running on Red Hat Enterprise Linux Server release 7.4

    Best regards
    Sven

    ------------------------------
    Sven Heidorn
    ------------------------------

    #Db2


  • 2.  RE: dmctop segmentation violation

    Posted Wed September 02, 2020 06:03 PM
    Hi Sven,

    Thank you for the feedback. May I ask on which view you hit this error?  It looks like a synchronous issue to me. If you could provide the view which you hit this error, it would be very helpful.

    Thank you.

    Regards,
    Yao Wu


    ------------------------------
    Yao Wu
    Software Engineer
    IBM
    San Jose CA
    ------------------------------



  • 3.  RE: dmctop segmentation violation

    IBM Champion
    Posted Thu September 03, 2020 05:31 AM

    Hi Yao,

    I'm not 100% sure but I think it was the Statements - Executed SQL page.
    I put it on that page now and will let it run to see what happens.

    Best regards
    Sven



    ------------------------------
    Sven Heidorn
    ------------------------------



  • 4.  RE: dmctop segmentation violation

    Posted Thu September 03, 2020 08:06 PM
    Hi Sven,

    Thanks for the information. We will try reproducing this issue as well. I appreciate your help on it.

    Regards,
    Yao Wu


    ------------------------------
    Yao Wu
    Software Engineer
    IBM
    San Jose CA
    ------------------------------