Bug#551342: erlang: when running erl, segmentation fault occured.

2009-10-17 Thread Kouhei Maeda
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

Bug#551342: erlang: when running erl, segmentation fault occured.

2009-10-17 Thread Sergei Golovan
On Sat, Oct 17, 2009 at 6:29 PM, Kouhei Maeda mkou...@palmtb.net wrote:

 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

So, the problem may be in your kernel, and not in erlang? Have you
tried an older kernel?

Cheers!
-- 
Sergei Golovan



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#551342: erlang: when running erl, segmentation fault occured.

2009-10-17 Thread Kouhei Maeda
Hi,

2009/10/18 Sergei Golovan sgolo...@gmail.com:
 On Sat, Oct 17, 2009 at 6:29 PM, Kouhei Maeda mkou...@palmtb.net wrote:

 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

 So, the problem may be in your kernel, and not in erlang? Have you
 tried an older kernel?

 Cheers!
 --
 Sergei Golovan


I miss that little has been heard from you,
when I installed Debian Sid (amd64) at 15th May 2009,
at that time I certainly was 2.6.27 or 2.6.28.
But Debian can't boot, then I rebuild vanilla kernel 2.6.29,
and setted grub option 'acpi=off'.

Now my debian's kernel 2.6.31.3, that is also from vanilla kernel.

regard,
-
Kouhei Maeda mkouhei at {palmtb.net,debian.or.jp}
 B8F2 86F6 2206 360F 7D41  0817 2E81 6254 7E37 CE41



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org