[oe-issues] [Bug 3294] New: BC segfault

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Tue Nov 13 18:01:56 UTC 2007


http://bugs.openembedded.org/show_bug.cgi?id=3294

           Summary: BC segfault
           Product: Openembedded
           Version: Angstrom
          Platform: ARM
        OS/Version: Linux
            Status: NEW
          Keywords: crash
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: openembedded-issues at lists.openembedded.org
        ReportedBy: pascal.jakobs at gmail.com


I'm not sure about the way you like this to be done. Forgive me if I'm wrong.
I noticed a problem when using bc with the math library ("bc -l"): any request
(ie "6/7" or "a(1)*4") ends with a segfault. I joint the output of some
commands I was asked to give on the Angstrom mailing list.

regards

strace bc -l then 6/7

execve("/usr/bin/bc", ["bc", "-l"], [/* 20 vars */]) = 0
brk(0)                                  = 0x1e000
uname({sys="Linux", node="akita", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4001a000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/var/run/ld.so.cache", O_RDONLY)  = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=11034, ...}) = 0
mmap2(NULL, 11034, PROT_READ, MAP_PRIVATE, 4, 0) = 0x4001b000
close(4)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0,K\1\000"..., 512) = 512
fstat64(4, {st_mode=S_IFREG|0755, st_size=1025556, ...}) = 0
mmap2(NULL, 1061364, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) =
0x40023000
mprotect(0x4011a000, 28672, PROT_NONE)  = 0
mmap2(0x40121000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0xf6) = 0x40121000
mmap2(0x40124000, 8692, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40124000
close(4)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4001e000
syscall_983045(0x4001e4a0, 0x4001e4a0, 0x6fc, 0x4001ebf8, 0x40022058, 0, 0x58,
0xf0005, 0x40022738, 0x8034, 0x40022000, 0xbebe4a6c, 0, 0xbebe47b0, 0x4000f638,
0x40001e90, 0x20000010, 0x4001e4a0, 0xc0a0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0) = 0
mprotect(0x40121000, 4096, PROT_READ)   = 0
munmap(0x4001b000, 11034)               = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =
0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =
0
brk(0)                                  = 0x1e000
brk(0x3f000)                            = 0x3f000
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0xc70c, [INT], SA_RESTART|0x4000000}, {0x8c08, [INT],
SA_RESTART|0x4000000}, 8) = 0
rt_sigaction(SIGINT, {0x8c08, [INT], SA_RESTART|0x4000000}, {0xc70c, [INT],
SA_RESTART|0x4000000}, 8) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4001b000
write(1, "bc 1.06\n", 8)                = 8
write(1, "Copyright 1991-1994, 1997, 1998,"..., 69) = 69
write(1, "This is free software with ABSOL"..., 51) = 51
write(1, "For details type `warranty\'. \n", 30) = 30
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) =
0
read(0, "6/7\n", 8192)                  = 4
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


uname -a:

Linux akita 2.6.23 #1 PREEMPT Tue Oct 30 12:53:40 CET 2007 armv5tel unknown


/proc/cpuinfo:

Processor    : XScale-PXA270 rev 7 (v5l)
BogoMIPS    : 415.33
Features    : swp half thumb fastmult edsp iwmmxt
CPU implementer    : 0x69
CPU architecture: 5TE
CPU variant    : 0x0
CPU part    : 0x411
CPU revision    : 7
Cache type    : undefined 5
Cache clean    : undefined 5
Cache lockdown    : undefined 5
Cache format    : Harvard
I size        : 32768
I assoc        : 32
I line length    : 32
I sets        : 32
D size        : 32768
D assoc        : 32
D line length    : 32
D sets        : 32

Hardware    : SHARP Akita
Revision    : 0000
Serial        : 0000000000000000


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Openembedded-issues mailing list