Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  R11B-2 SMP core dump - how to proceed?

lindau
Posted: Thu Jan 04, 2007 12:14 pm Reply with quote
Joined: 20 Jul 2006 Posts: 4
We have a situation where the erlang smp emulator core dumps. We run on a Solaris 10 intel platform.

But how can we investigate further ?

I'm not that familiar with gdb, and should I compile a special version of erlang with extra debug settings ?

Simon

Code:
$ gdb /usr/local/lib/erlang-5.5.2/erts-5.5.2/bin/beam.smp core
GNU gdb 6.2.1
Copyright 2004 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 "i386-pc-solaris2.10"...
Core was generated by `/usr/local/lib/erlang/erts-5.5.2/bin/beam.smp -W w -A 30 -- -root /usr/local/li'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.1...done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libpthread.so.1...
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
done.
Loaded symbols for /lib/libpthread.so.1
Reading symbols from /lib/libcurses.so.1...done.
Loaded symbols for /lib/libcurses.so.1
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
#0  0xd011120a in ?? ()
(gdb)
View user's profile Send private message
lindau
Posted: Thu Jan 04, 2007 2:02 pm Reply with quote
Joined: 20 Jul 2006 Posts: 4
OK - I managed to get some more meaningful info from gdb.

I hope this is of any use.

Simon

Code:

GNU gdb 6.2.1
Copyright 2004 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 "i386-pc-solaris2.10"...
Core was generated by `/usr/local/lib/erlang/erts-5.5.2/bin/beam.smp -W w -A 30 -- -root /usr/local/li'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdl.so.1...done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /lib/libm.so.2...done.
Loaded symbols for /lib/libm.so.2
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libpthread.so.1...
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
done.
Loaded symbols for /lib/libpthread.so.1
Reading symbols from /lib/libcurses.so.1...done.
Loaded symbols for /lib/libcurses.so.1
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
#0  gensweep_nstack (p=0x8d2fae4, ptr_old_htop=0xd03fdcbc, ptr_n_htop=0xd03fdcc0, objv=0x0, nobj=0) at hipe/hipe_gc.c:191
191                         Eterm val = *ptr;
(gdb) bt
#0  gensweep_nstack (p=0x8d2fae4, ptr_old_htop=0xd03fdcbc, ptr_n_htop=0xd03fdcc0, objv=0x0, nobj=0) at hipe/hipe_gc.c:191
#1  0x080f232b in erts_garbage_collect (p=0x8d2fae4, need=4, objv=0x0, nobj=0) at beam/ggc.c:1775
#2  0x0812d9c8 in hipe_gc (p=0x8d2fae4, need=149270032) at hipe/hipe_native_bif.c:69
#3  0x0812ee19 in nbif_gc_1 () at /var/tmp//cc01gL6f.s:417
#4  0x08d2fae4 in ?? ()
#5  0x0000004f in ?? ()
#6  0x000000af in ?? ()
#7  0x00000000 in ?? ()
#8  0x00000002 in ?? ()
#9  0xd00fa000 in ?? ()
#10 0x0400449b in ?? ()
#11 0x08484f4d in ?? ()
#12 0x0833ff50 in ?? ()
#13 0x08d2fae4 in ?? ()
#14 0xd03fdec8 in ?? ()
#15 0x0812cdad in hipe_mode_switch (p=0x8e5ad20, cmd=149270032, reg=0x84851dc) at hipe_x86_glue.h:196
Previous frame inner to this frame (corrupt stack?)
(gdb)
View user's profile Send private message
lindau
Posted: Thu Jan 04, 2007 2:49 pm Reply with quote
Joined: 20 Jul 2006 Posts: 4
And some more data from gdb.

Code:

(gdb) print ptr
$5 = (Eterm *) 0xfffffffe
(gdb) print *ptr
Cannot access memory at address 0xfffffffe
(gdb) print gval
$6 = 0
(gdb) print i
$7 = 1
(gdb) print *nsp_i
No symbol "nsp_i" in current context.
(gdb) print nsp
$8 = (Eterm *) 0x8e5ae10
(gdb) print *nsp
$9 = 139000369
(gdb)
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum