Can't get the debug info of erlang package

Bug #671286 reported by Eric Liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
erlang (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: erlang

To use the dialyzer, I need to install the debug info of erlang package.

As there is no package suffixed -dbgsym or -dbg about the erlang ( https://wiki.ubuntu.com/DebuggingProgramCrash#Hardy%208.04%20and%20Newer ),
and no package for lucid in PPA ( https://edge.launchpad.net/~erlang-dev/+archive/ppa ) ,
I followed the instructions in page:( https://wiki.ubuntu.com/DebuggingProgramCrash#Prior%20Ubuntu%20versions ), but got the error message:

----QUOTE BEGIN----

make[1]: Leaving directory `/home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/lib/snmp/doc/src'
make[1]: Entering directory `/home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/lib/eunit/doc/src'
docb_gen -def vsn 2.1.4 -includes /home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/lib/eunit/include /home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/lib/eunit/src/eunit.erl
erlexec: Error 2 executing '/home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/bin/x86_64-pc-linux-gnu/beam.smp'.
make[1]: *** [eunit.xml] Error 1
make[1]: Leaving directory `/home/sunny/commands/erlang.dbg/erlang-13.b.3-dfsg/lib/eunit/doc/src'
make: *** [manpages-stamp] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build command 'cd erlang-13.b.3-dfsg && dpkg-buildpackage -b -uc' failed.
E: NOTICE: 'erlang' packaging is maintained in the 'Svn' version control system at:
svn://svn.debian.org//svn/pkg-erlang/erlang/trunk/
Skipping already downloaded file 'erlang_13.b.3-dfsg-2ubuntu2.1.dsc'
Skipping already downloaded file 'erlang_13.b.3-dfsg.orig.tar.gz'
Skipping already downloaded file 'erlang_13.b.3-dfsg-2ubuntu2.1.diff.gz'
Need to get 0B of source archives.
Child process failed
debi: can't read *.changes!

----QUOTE END----

The script used and command are as following:

----QUOTE BEGIN----

sunny@coolrat:~/commands$ cat install_debug_info
#!/bin/sh

################################################################
#NOTE: Dependency packages which should be pre-installed:
#
# devscripts fakeroot
#
################################################################

PKG=$1
test -z $PKG && echo "you should specify the package" && exit 1

apt-get build-dep $PKG

test $? -ne 0 && echo "Invalid package name: $PKG, you can use command: dpkg --search <program> to get the package" && exit 1

mkdir -p $PKG.dbg

cd $PKG.dbg

echo "Install debug info for package: $PKG" | tee -a $PKG.log

export DEB_BUILD_OPTIONS="debug nostrip noopt"
fakeroot apt-get source -b $PKG | tee -a $PKG.log

debi --upgrade *.changes | tee -a $PKG.log

cd -

sunny@coolrat:~/commands$ sudo ./install_debug_info erlang

----QUOTE END----

It looks like that the erlexec was using the beam.smp which not exists in the debug package but the beam.debug.smp.

----QUOTE BEGIN----

sunny@coolrat:~/commands/erlang.dbg$ ls erlang-13.b.3-dfsg/bin/x86_64-pc-linux-gnu/
beam.debug dialyzer erlc heart to_erl
beam.debug.smp dyn_erl erlexec inet_gethost typer
child_setup.debug epmd escript run_erl

----QUOTE END----

The debug tag is due to the setting in Makefile.in, and I guess there is a related variable is not set in eunit. Does anyone know what it is? TIA.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: erlang 1:13.b.3-dfsg-2ubuntu2.1
ProcVersionSignature: Ubuntu 2.6.32-25.45-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Nov 5 11:34:19 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: erlang

Revision history for this message
Eric Liang (eric-l-2046) wrote :
Eric Liang (eric-l-2046)
description: updated
Revision history for this message
Claudio Amaral (coa) wrote :

every Erlang application depending on debug information is broken if debug info is striped out the beam files

Revision history for this message
Eric Liang (eric-l-2046) wrote :

Thanks Amaral for your reply.

Does it mean I can not use the apt-get facilities to get the debug symbols? Or would you mind to give some suggestions on that? TIA.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.