Package: erlang
Version: 1:13.b.2.1-dfsg-1
Severity: normal
*** Please type your report below this line ***
Hi,
When I runned erl, segmentation fault occured.
$ erl
Segmentation fault
$ echo $?
139
My PC is Sid on MacBook 5,2.
below Kernel Bug causes my pc not boot.
http://www.mail-archive.com/acpi-bugzi...@lists.sourceforge.net/msg26653.html
Now, I setted GRUB2 Option maxcpus=1.
But Erlang default setting -smp enable,
This problem occured.
$ strace erl
(snip)
lstat(/sys, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/node, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/node/node0, {st_mode=S_IFDIR|0755, st_size=0, ...})
= 0
lstat(/sys/devices/system/node/node0/cpu0, {st_mode=S_IFLNK|0777, st_size=0,
...}) = 0
readlink(/sys/devices/system/node/node0/cpu0, ../../cpu/cpu0, 4095) = 14
lstat(/sys/devices/system/cpu, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/cpu/cpu0, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/cpu/cpu0/topology, {st_mode=S_IFDIR|0755,
st_size=0, ...}) = 0
lstat(/sys/devices/system/cpu/cpu0/topology/core_id, {st_mode=S_IFREG|0444,
st_size=4096, ...}) = 0
open(/sys/devices/system/cpu/cpu0/topology/core_id, O_RDONLY) = 5
read(5, 0Â¥n, 50) = 2
read(5, , 48) = 0
close(5)= 0
lstat(/sys, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/node, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/node/node0, {st_mode=S_IFDIR|0755, st_size=0, ...})
= 0
lstat(/sys/devices/system/node/node0/cpu1, {st_mode=S_IFLNK|0777, st_size=0,
...}) = 0
readlink(/sys/devices/system/node/node0/cpu1, ../../cpu/cpu1, 4095) = 14
lstat(/sys/devices/system/cpu, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/cpu/cpu1, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
lstat(/sys/devices/system/cpu/cpu1/topology, 0x7fffbefe8e90) = -1 ENOENT (No
such file or directory)
getdents(4, /* 0 entries */, 4096) = 0
close(4)= 0
getdents(3, /* 0 entries */, 4096) = 0
close(3)= 0
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff5650ee000
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff5650cd000
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff5650ac000
brk(0xa6f000) = 0xa6f000
brk(0xa71000) = 0xa71000
brk(0xa81000) = 0xa81000
brk(0xa91000) = 0xa91000
mmap(NULL, 2101248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff563cc7000
brk(0xa93000) = 0xa93000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff56506b000
mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7ff56502a000
brk(0xa96000) = 0xa96000
brk(0xaa6000) = 0xaa6000
brk(0xab6000) = 0xab6000
brk(0xab8000) = 0xab8000
brk(0xac8000) = 0xac8000
brk(0xad8000) = 0xad8000
brk(0xada000) = 0xada000
brk(0xaea000) = 0xaea000
brk(0xafa000) = 0xafa000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Workarround pattern A,
I runned erl -smp disable.
$ erl -smp disable
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [rq:1] [async-threads:0]
[kernel-poll:false]
Eshell V5.7.3 (abort with ^G)
1
Workarround pattern B,
I changed grub option.
t a/default/grub b/default/grub
index ce041b5..28fe50e 100644
--- a/default/grub
+++ b/default/grub
@@ -4,7 +4,7 @@ GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2 /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=quiet
-GRUB_CMDLINE_LINUX=maxcpus=1
+GRUB_CMDLINE_LINUX=nosmp
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
$ erl
Erlang R13B02 (erts-5.7.3) [source] [64-bit] [rq:1] [async-threads:0]
[kernel-poll:false]
Eshell V5.7.3 (abort with ^G)
1
-l System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31.3 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages erlang depends on:
ii erlang-appmon 1:13.b.2.1-dfsg-1 Erlang/OTP application monitor
ii erlang-asn1