segmentation fault

Help
Anonymous
2011-06-05
2012-12-07

  • Anonymous
    2011-06-05

    Getting segmentation fault with both 1.1.4 and 1.2.0 (ubuntu 11.04 natty, amd64, WxWidgets 2.8.12):

    INF: Nr. of Adapters: 12
    INF: Adapter index: 0, active, ID:25928128, ATI Radeon HD 5800 Series
    INF: Adapter index: 1, inact., ID:25928128, ATI Radeon HD 5800 Series
    INF: Adapter index: 2, inact., ID:25928128, ATI Radeon HD 5800 Series
    INF: Adapter index: 3, active, ID:26685152, ATI Radeon HD 5800 Series
    INF: Adapter index: 4, inact., ID:26685152, ATI Radeon HD 5800 Series
    INF: Adapter index: 5, inact., ID:26685152, ATI Radeon HD 5800 Series
    INF: Adapter index: 6, active, ID:27372608, ATI Radeon HD 5800 Series
    INF: Adapter index: 7, inact., ID:27372608, ATI Radeon HD 5800 Series
    INF: Adapter index: 8, inact., ID:27372608, ATI Radeon HD 5800 Series
    INF: Adapter index: 9, active, ID:28060064, ATI Radeon HD 5800 Series
    INF: Adapter index: 10, inact., ID:28060064, ATI Radeon HD 5800 Series
    INF: Adapter index: 11, inact., ID:28060064, ATI Radeon HD 5800 Series
    INF: Adapter index 0 choosen.
    INF: Nr. of Performance Levels: 3
    Segmentation fault (core dumped)

    Core was generated by `./AMDOverdriveCtrl'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x00000000004185a9 in ?? ()
    (gdb) backtrace full
    #0  0x00000000004185a9 in ?? ()
    No symbol table info available.
    #1  0x000000000044ea44 in ?? ()
    No symbol table info available.
    #2  0x00007fe750a9c744 in wxEntry(int&, wchar_t**) () from /usr/lib/libwx_baseu-2.8.so.0
    No symbol table info available.
    #3  0x000000000044a242 in ?? ()
    No symbol table info available.
    #4  0x00007fe74fadceff in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
    No symbol table info available.
    #5  0x000000000040f849 in ?? ()
    No symbol table info available.
    #6  0x00007fff9cb0ba28 in ?? ()
    No symbol table info available.
    #7  0x000000000000001c in ?? ()
    No symbol table info available.
    #8  0x0000000000000001 in ?? ()
    No symbol table info available.
    #9  0x00007fff9cb0d871 in ?? ()
    No symbol table info available.
    #10 0x0000000000000000 in ?? ()
    No symbol table info available.

    Any ideas what the problem could be?

     
  • 4 cards in one system - not bad …

    There is a "debug" folder In the sourceforge files section. It contains a version of the program with debug info. Maybe the backtrace will give us a hint what's wrong.

     

  • Anonymous
    2011-06-08

    I switch to 32-bit to test and the debug is 64-bit… last time I did it I didn't get any different debug output.
    I will switch over to 64-bit and try again and at the same time generate a core file for you, if that might help.

     

  • Anonymous
    2011-06-08

    Program received signal SIGSEGV, Segmentation fault.
    0x000000000046237d in ADL::SetGPUIndex (this=0x746c90, index=0x6f0d20) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:811
    811    /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp: No such file or directory.
        in /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp

    (gdb) bt
    #0  0x000000000046237d in ADL::SetGPUIndex (this=0x746c90, index=0x6f0d20) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:811
    #1  0x000000000043abc8 in MainApp::OnInit (this=0x6f0c50) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:105
    #2  0x0000000000441819 in wxAppConsole::CallOnInit (this=0x6f0c50) at /usr/include/wx-2.8/wx/app.h:76
    #3  0x00007ffff5eb1e24 in wxEntry (argc=<value optimized out>, argv=<value optimized out>) at ../src/common/init.cpp:432
    #4  0x000000000043a821 in main (argc=1, argv=0x7fffffffe688) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:39
    (gdb) backtrace full
    #0  0x000000000046237d in ADL::SetGPUIndex (this=0x746c90, index=0x6f0d20) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:811
            i = 0
    #1  0x000000000043abc8 in MainApp::OnInit (this=0x6f0c50) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:105
            adl = 0x746c90
    #2  0x0000000000441819 in wxAppConsole::CallOnInit (this=0x6f0c50) at /usr/include/wx-2.8/wx/app.h:76
    No locals.
    #3  0x00007ffff5eb1e24 in wxEntry (argc=<value optimized out>, argv=<value optimized out>) at ../src/common/init.cpp:432
            initializer = {m_ok = true}
    #4  0x000000000043a821 in main (argc=1, argv=0x7fffffffe688) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:39
    No locals.
    (gdb)

     
  • Hi,

    the segfault should be fixed. Please try the new program version in the debug folder.

    The problem is, that your system claims to support 3 performance levels, but the actual readout fails. At the moment I have no idea why this is the case. Nevertheless you should be able to start the program now, but you probably won't have the overdrive tab…

     

  • Anonymous
    2011-06-09

    Slightly better, but still dumps.

    Core was generated by `./AMDOverdriveCtrl'.
    Program terminated with signal 11, Segmentation fault.
    #0  0x000000000046237d in ADL::SetGPUIndex (this=0xa1c770, index=0x96fc20) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:812
    812 /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp: No such file or directory.
    in /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp

    (gdb) bt full
    #0  0x000000000046237d in ADL::SetGPUIndex (this=0xa1c770, index=0x96fc20) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:812
            pDefaultLevels = 0xa2d9e0
            perf_level_size = 120000
    #1  0x000000000043abc8 in MainApp::OnInit (this=0x96fb50) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:105
            adl = 0xa1c770
    #2  0x0000000000441819 in wxAppConsole::CallOnInit (this=0x96fb50) at /usr/include/wx-2.8/wx/app.h:76
    No locals.
    #3  0x00007f4fb50eee24 in wxEntry (argc=<value optimized out>, argv=<value optimized out>) at ../src/common/init.cpp:432
            initializer = {m_ok = true}
    #4  0x000000000043a821 in main (argc=1, argv=0x7fff50c99d38) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:39
    No locals.

    (gdb) info frame
    Stack level 0, frame at 0x7fff50c998f0:
    rip = 0x46237d in ADL::SetGPUIndex (/home/thorsten/Projekte/AMDOverdriveCtrl/src/adl.cpp:812); saved rip 0x43abc8
    called by frame at 0x7fff50c99bf0
    source language c++.
    Arglist at 0x7fff50c998e0, args: this=0xa1c770, index=0x96fc20
    Locals at 0x7fff50c998e0, Previous frame's sp is 0x7fff50c998f0
    Saved registers:
      rbx at 0x7fff50c998d0, rbp at 0x7fff50c998e0, r12 at 0x7fff50c998d8, rip at 0x7fff50c998e8

    (gdb) info frame 1
    Stack frame at 0x7fff50c99bf0:
    rip = 0x43abc8 in MainApp::OnInit (/home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:105); saved rip 0x441819
    called by frame at 0x7fff50c99c10, caller of frame at 0x7fff50c998f0
    source language c++.
    Arglist at 0x7fff50c99be0, args: this=0x96fb50
    Locals at 0x7fff50c99be0, Previous frame's sp is 0x7fff50c99bf0
    Saved registers:
      rbx at 0x7fff50c99bd0, rbp at 0x7fff50c99be0, r12 at 0x7fff50c99bd8, rip at 0x7fff50c99be8

    (gdb) info args
    this = 0xa1c770
    index = 0x96fc20

     

  • Anonymous
    2011-06-09

    Ran the binary directly in gdb and got a bit better output than previous… maybe more useful for you:

    INF: Adapter index 0 choosen.
    INF: Nr. of Performance Levels: 3
    WRN: failed to get Overdrive parameters.
    ACT: Set fan speed to default
    INF: Nr. of Displays to check 6
    INF: Color temp disp(3) :
    INF: current 6500K default 6500K
    INF: min 4000K max 10000K step 100K
    WRN: color temperature setting not supported.

    Program received signal SIGSEGV, Segmentation fault.
    0x000000000043f02d in MainDialog::SaveXML (this=0x81b540, filename=…) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:632
    632 /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp: No such file or directory.
    in /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp

    (gdb) bt full
    #0  0x000000000043f02d in MainDialog::SaveXML (this=0x81b540, filename=…) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:632
            i = 2
            adl = 0x748f20
            root = 0x907440
            ctrl_points = {{x = 2.0792811993106362e-317, y = 2.1219957909652723e-314}, {x = 2.1220014267720944e-314, y = 0}, {x = 0,
                y = 6.9533491762724695e-310}, {x = 6.9533558074199892e-310, y = 6.9533491659409639e-310}, {x = 6.9533558074215702e-310,
                y = 6.9533491762301775e-310}}
            color_temp_night = 140737488347088
            percentage = -7392
            node = 0xaa7f60
            enable = false
            latitude = 6.9533558074389613e-310
            color_temp_day = 140737318685960
            doc = warning: can't find linker symbol for virtual table for `wxXmlDocument' value
    {<wxObject> = {_vptr.wxObject = 0x68b570, static ms_classInfo = {m_className = 0x7ffff5f3d3b0 L"wxObject", m_objectSize = 16,
                  m_objectConstructor = 0, m_baseInfo1 = 0x0, m_baseInfo2 = 0x0, static sm_first = 0x7ffff7bd4cc0, m_next = 0x7ffff6198d20,
                  static sm_classTable = 0x691010}, m_refData = 0x0}, m_version = {<wxStringBase> = {static npos = 18446744073709551615,
                  m_pchData = 0x907678 L"1.0"}, <No data fields>}, m_fileEncoding = {<wxStringBase> = {static npos = 18446744073709551615,
                  m_pchData = 0x9080d8 L"utf-8"}, <No data fields>}, m_root = 0x907440, static ms_classInfo = {
                m_className = 0x7ffff63d3ee0 L"wxXmlDocument", m_objectSize = 40, m_objectConstructor = 0, m_baseInfo1 = 0x7ffff6198c20,
                m_baseInfo2 = 0x0, static sm_first = 0x7ffff7bd4cc0, m_next = 0x7ffff63ca5c0, static sm_classTable = 0x691010}}
            longitude = 0
            transition = 140737318641632
    #1  0x000000000043b433 in MainApp::OnInit (this=0x6f0a90) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:202
            file_path = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0x70d068 L"/home/ubuntu/.AMDOverdriveCtrl"}, <No data fields>}
            filename = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0x907328 L"/home/ubuntu/.AMDOverdriveCtrl/Current_Startup.ovdr"}, <No data fields>}
            line = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0x75a018 L"failed to get Overdrive parameters."}, <No data fields>}
            problem = {<wxStringBase> = {static npos = 18446744073709551615,
                m_pchData = 0x75db08 L"Some functions are not supported by either\nyour hardware, the Catalyst driver or the ADL.\n\nHere is a list of problems:\n\n - failed to get Overdrive parameters.\n\nSome parts of the program will be disabl"…}, <No data fields>}
            main_dialog = 0x81b540
            adl = 0x748f20
    #2  0x0000000000441819 in wxAppConsole::CallOnInit (this=0x6f0a90) at /usr/include/wx-2.8/wx/app.h:76
    No locals.
    #3  0x00007ffff5eb1e24 in wxEntry (argc=<value optimized out>, argv=<value optimized out>) at ../src/common/init.cpp:432
            initializer = {m_ok = true}
    #4  0x000000000043a821 in main (argc=1, argv=0x7fffffffe638) at /home/thorsten/Projekte/AMDOverdriveCtrl/src/main.cpp:39
    No locals.
    (gdb)

     
  • Hi,

    please try new version in debug folder. Hopefully now it will work.

     

  • Anonymous
    2011-06-11

    Now it worked much better. Thanks!