aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: SVN debs - how to start -dbg?  (Read 2580 times)

wild_oscar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
SVN debs - how to start -dbg?
« on: April 25, 2008, 07:06:31 PM »

My amuled is crashing daily. I want to help you out sorting the program, but I don't know how to.

I installed amuled building debs from daily SVN. For every program, I also have a -dbg deb package, but I can't figure out how to work with it.

1) Can I have both amuled and amule-dbg debs installed simultaneously?

2) How can I start amuled's -dbg version so I can then follow http://www.amule.org/wiki/index.php/Backtraces to log backtraces?

Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1550
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: SVN debs - how to start -dbg?
« Reply #1 on: April 26, 2008, 04:39:47 PM »

That's what the -dbg debs are for. If you need the debugging symbols, you install them with the -dbg wehich fits to your binary i.e. amule-dbg for amule, and then you can do the backtrace as usual.
Logged
Homefucking is killing prostitution

wild_oscar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
Re: SVN debs - how to start -dbg?
« Reply #2 on: April 26, 2008, 04:47:13 PM »

That's what the -dbg debs are for. If you need the debugging symbols, you install them with the -dbg wehich fits to your binary i.e. amule-dbg for amule, and then you can do the backtrace as usual.

So I basically just need to install the amuled-dbg in addition to amuled and then follow the wiki guide to run the backtrace?
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1550
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: SVN debs - how to start -dbg?
« Reply #3 on: April 26, 2008, 04:52:36 PM »

Basically yes, It would work like this, but I prefer to install the dbg's of the dependencies, too. In amuled-dbg are only the symbols for amuled. If the error occurs in wx and you don't have wx-dbg installed, you'll get at this point some question-marks which doesn't help much. But at least for a first test amuled-dbg should be enough.
Logged
Homefucking is killing prostitution

wild_oscar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
Re: SVN debs - how to start -dbg?
« Reply #4 on: April 27, 2008, 03:12:23 PM »

Reading the wiki:

To create a backtrace, open a console and do the following:

$ gdb /where/to/install/aMule/bin/amule
(gdb) run

Now use aMule normally until it crashes. If it crashes do the following:


How can I perform this with my amuled, where I usually run "amuled &" and then exit the remote server shell?
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1550
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: SVN debs - how to start -dbg?
« Reply #5 on: April 27, 2008, 04:10:52 PM »

Don't exit.

Do gdb `which amuled` -> run and wait till it crashes without closing the shell.
Logged
Homefucking is killing prostitution

wild_oscar

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 45
Re: SVN debs - how to start -dbg?
« Reply #6 on: April 27, 2008, 04:24:50 PM »

Don't exit.

Do gdb `which amuled` -> run and wait till it crashes without closing the shell.

iive advised me on using "screen". I need to exit, as I'm accessing amuled on a remote server and leave it on during the night. It is usually when I check the server in the following morning that I see the process no longer exists.
Logged