Segmentation fault on Linux

Edmund Dengler edmundd@REDACTED
Mon Sep 26 21:51:16 CEST 2005


Howdy!

I did the run, but probably not what was expected. Is there a "compile so
the binary is debuggable" option for configuration?

# export ROOTDIR=/opt/pkgs/erlang/10b-7/lib/erlang
BINDIR=$ROOTDIR/erts-5.4.9/bin EMU=beam PROGNAME=erl

# gdb
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
(gdb) file lib/erlang/erts-5.4.9/bin/erlexec
Reading symbols from lib/erlang/erts-5.4.9/bin/erlexec...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r -- -root /opt/pkgs/erlang/10b-7/bin
Starting program: /opt/pkgs/erlang/10b-7/lib/erlang/erts-5.4.9/bin/erlexec
-- -root /opt/pkgs/erlang/10b-7/bin
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Detaching after fork from child process 835.
Detaching after fork from child process 839.

Program received signal SIGSEGV, Segmentation fault.
0x401ac16e in ?? ()
(gdb) bt
#0  0x401ac16e in ?? ()
(gdb)

Regards!
Ed

On Fri, 23 Sep 2005, Bjorn Gustavsson wrote:

> Could you please run gdb on the core dump and print the stack backtrace
> so that we can see where it crashed?
>
> /Bjorn
>
> Edmund Dengler <edmundd@REDACTED> writes:
>
> > Howdy folks!
> >
> > I am getting segmentation errors when trying to run <erl> using OTP 10B-6
> > and 10B-7 on Linux. I can compile 10B-5 with no problems. Anybody have any
> > ideas on what may be causing this?
> >
> > Details:
> > - Gentoo Linux (2.6.8-gentoo-r3)
> > - gcc version 3.3.5
> > - compile flags:
> >   ./configure  --prefix=/opt/pkgs/erlang/10b-6
> >
> > I did notice a previous message on this
> > (http://www.erlang.org/ml-archive/erlang-questions/200410/msg00057.html)
> > but no solution seemd to be posted.
> >
> > Regards!
> > Ed
> >
>
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB
>



More information about the erlang-questions mailing list