• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 40 41 42 43 44 ... 116 Next »

[Linux]Trouble running Dolphin with gdb
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
[Linux]Trouble running Dolphin with gdb
08-16-2014, 08:50 AM
#1
DarzgL Offline
Senior Member
****
Posts: 269
Threads: 3
Joined: Apr 2010
Hi,
I'm trying to run Dolphin under gdb to investigate some hangs and segfaults.
I've compiled it with the GDBSTUB cmake option, but still gdb tells the executable has no debug symbols. More importantly, it hangs when I load an ISO.
Am I missing something ?
Arch Linux
Core i5 2400
4 GB DDR3
ATi Radeon HD6870
Find
Reply
08-16-2014, 05:04 PM
#2
Shished Offline
Member
***
Posts: 88
Threads: 11
Joined: Dec 2012
For me it always hangs (crashes?) after loading game when launched in gdb. Here is BT:
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff99ac0700 (LWP 5914)]
0x000000004040be98 in ?? ()
(gdb) bt
#0  0x000000004040be98 in ?? ()
#1  0x0000000000000100 in ?? ()
#2  0x00007fff99ac0700 in ?? ()
#3  0x000000000161b340 in ?? ()
#4  0x00007ffff7ffd000 in _GLOBAL_OFFSET_TABLE_ ()
   from /lib64/ld-linux-x86-64.so.2
#5  0x0000000000000001 in ?? ()
#6  0x0000000000440b50 in __cxa_pure_virtual@plt ()
#7  0x0000000000000000 in ?? ()
CPU: Intel Core i5-3570k 
GPU: Nvidia GeForce GTX660 (proprietary nvidia driver v.358.16)
RAM: 2 x 4G DDR3 1333 MHz
OS: openSUSE Tumbleweed x86_64 (linux 4.3)
I'm using latest version of Dolphin-emu from git master branch.
Find
Reply
08-16-2014, 05:08 PM
#3
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,542
Threads: 29
Joined: Feb 2013
You have to turn off fastmem before running Dolphin in gdb.
Find
Reply
08-16-2014, 08:18 PM
#4
DarzgL Offline
Senior Member
****
Posts: 269
Threads: 3
Joined: Apr 2010
I get the same behaviour with fastmem off... It hangs at [New thread ...] when I launch an ISO, with no errors.
Arch Linux
Core i5 2400
4 GB DDR3
ATi Radeon HD6870
Find
Reply
08-16-2014, 10:18 PM
#5
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
Well... what do you expect it to do?
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
08-17-2014, 02:19 AM (This post was last modified: 08-17-2014, 04:37 AM by DarzgL.)
#6
DarzgL Offline
Senior Member
****
Posts: 269
Threads: 3
Joined: Apr 2010
I expect it to keep running as it does when I run it without gdb. I'm not used to running gdb with large programs like Dolphin though.
Arch Linux
Core i5 2400
4 GB DDR3
ATi Radeon HD6870
Find
Reply
08-17-2014, 07:00 PM
#7
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
If you compiled with GDBSTUB support it might be waiting for a PowerPC GDB to connect to it. I'm really not sure why you enabled this option.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
08-17-2014, 08:20 PM (This post was last modified: 08-17-2014, 08:32 PM by DarzgL.)
#8
DarzgL Offline
Senior Member
****
Posts: 269
Threads: 3
Joined: Apr 2010
I must have misunderstood what the option was for, I thought it simply was meant for a standard debug build (I tried simply adding -g to CXX flags but it seemed to have no effect).
Okay, my inexperience with CMake is to blame, I didn't know of the BUILD_TYPE variable. Sorry for wasting your time guys Sad
Arch Linux
Core i5 2400
4 GB DDR3
ATi Radeon HD6870
Find
Reply
08-18-2014, 01:06 AM
#9
DarzgL Offline
Senior Member
****
Posts: 269
Threads: 3
Joined: Apr 2010
This time I'm sure I have a proper debug build, but I still have the same problem, Dolphin will just hang when I load a game while runnning with gdb, whereas it runs just fine without gdb. Also, gdb still says it can't find debug symbols in the program.
Arch Linux
Core i5 2400
4 GB DDR3
ATi Radeon HD6870
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode