[Pkg-erlang-devel] Bug#551343: (no subject)

Kouhei Maeda mkouhei at palmtb.net
Sat Oct 17 14:24:17 UTC 2009


Subject: erlang: when running erl, segmentation fault occured.
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-bugzilla@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            1:13.b.2.1-dfsg-1 Erlang/OTP modules for ASN.1 suppo
ii  erlang-base            1:13.b.2.1-dfsg-1 Erlang/OTP virtual machine and bas
ii  erlang-common-test     1:13.b.2.1-dfsg-1 Erlang/OTP application for automat
ii  erlang-corba           1:13.b.2.1-dfsg-1 Erlang/OTP applications for CORBA 
ii  erlang-crypto          1:13.b.2.1-dfsg-1 Erlang/OTP cryprographic modules
ii  erlang-debugger        1:13.b.2.1-dfsg-1 Erlang/OTP application for debuggi
ii  erlang-dev             1:13.b.2.1-dfsg-1 Erlang/OTP development libraries a
ii  erlang-dialyzer        1:13.b.2.1-dfsg-1 Erlang/OTP discrepancy analyzer ap
ii  erlang-docbuilder      1:13.b.2.1-dfsg-1 Erlang/OTP application for buildin
ii  erlang-edoc            1:13.b.2.1-dfsg-1 Erlang/OTP module for generating d
ii  erlang-et              1:13.b.2.1-dfsg-1 Erlang/OTP event tracer applicatio
ii  erlang-eunit           1:13.b.2.1-dfsg-1 Erlang/OTP module for unit testing
ii  erlang-gs              1:13.b.2.1-dfsg-1 Erlang/OTP graphics system
ii  erlang-ic              1:13.b.2.1-dfsg-1 Erlang/OTP IDL compiler
ii  erlang-inets           1:13.b.2.1-dfsg-1 Erlang/OTP Internet clients and se
ii  erlang-inviso          1:13.b.2.1-dfsg-1 Erlang/OTP trace tool
ii  erlang-megaco          1:13.b.2.1-dfsg-1 Erlang/OTP implementation of Megac
ii  erlang-mnesia          1:13.b.2.1-dfsg-1 Erlang/OTP distributed relational/
ii  erlang-observer        1:13.b.2.1-dfsg-1 Erlang/OTP application for investi
ii  erlang-odbc            1:13.b.2.1-dfsg-1 Erlang/OTP interface to SQL databa
ii  erlang-os-mon          1:13.b.2.1-dfsg-1 Erlang/OTP operating system monito
ii  erlang-parsetools      1:13.b.2.1-dfsg-1 Erlang/OTP parsing tools
ii  erlang-percept         1:13.b.2.1-dfsg-1 Erlang/OTP concurrency profiling t
ii  erlang-pman            1:13.b.2.1-dfsg-1 Erlang/OTP process manager
ii  erlang-public-key      1:13.b.2.1-dfsg-1 Erlang/OTP public key infrastructu
ii  erlang-reltool         1:13.b.2.1-dfsg-1 Erlang/OTP release management tool
ii  erlang-runtime-tools   1:13.b.2.1-dfsg-1 Erlang/OTP runtime tracing/debuggi
ii  erlang-snmp            1:13.b.2.1-dfsg-1 Erlang/OTP SNMP applications
ii  erlang-ssh             1:13.b.2.1-dfsg-1 Erlang/OTP implementation of SSH p
ii  erlang-ssl             1:13.b.2.1-dfsg-1 Erlang/OTP implementation of SSL
ii  erlang-syntax-tools    1:13.b.2.1-dfsg-1 Erlang/OTP modules for handling ab
ii  erlang-test-server     1:13.b.2.1-dfsg-1 Erlang/OTP server for automated ap
ii  erlang-toolbar         1:13.b.2.1-dfsg-1 Erlang/OTP graphical toolbar
ii  erlang-tools           1:13.b.2.1-dfsg-1 Erlang/OTP various tools
ii  erlang-tv              1:13.b.2.1-dfsg-1 Erlang/OTP table viewer
ii  erlang-typer           1:13.b.2.1-dfsg-1 Erlang/OTP code type annotator
ii  erlang-webtool         1:13.b.2.1-dfsg-1 Erlang/OTP helper for web-based to
ii  erlang-wx              1:13.b.2.1-dfsg-1 Erlang/OTP bindings to wxWidgets
ii  erlang-xmerl           1:13.b.2.1-dfsg-1 Erlang/OTP XML tools

Versions of packages erlang recommends:
ii  erlang-examples        1:13.b.2.1-dfsg-1 Erlang/OTP application examples
ii  erlang-mode            1:13.b.2.1-dfsg-1 Erlang major editing mode for Emac
ii  erlang-src             1:13.b.2.1-dfsg-1 Erlang/OTP applications sources

Versions of packages erlang suggests:
pn  erlang-doc-html               <none>     (no description available)
pn  erlang-manpages               <none>     (no description available)

-- no debconf information





More information about the Pkg-erlang-devel mailing list