Re: Segmentation fault

From: Kenwey (yeskw_at_ms15.hinet.net)
Date: 03/08/04

  • Next message: Juergen Vigna: "Creating new Installer Disk with custom kernel HOWTO"
    To: fedora-list@redhat.com
    Date: Mon, 8 Mar 2004 16:47:13 +0800 (CST)
    
    

    >> yeskw ms15 hinet net schrieb:

    >> I've compiled openwebmail-2.30.tgz,
    >> but when I execut /var/www/cgi-bin/openwebmail/openwebmail-tool.pl
    >> --init,
    >> it causes a "Segmentation fault" messages, does anyone know how to
    >> solve this problem?
    >
    > try to execute it with "strace" and look on the last few lines strace
    > gives back - that should help to locate the error. Means:
    >
    > strace /var/www/cgi-bin/openwebmail/openwebmail-tool.pl --init
    >
    > results in a *lot* of messages but only the last few are interesting.
    >

    the last lines shows:

    readv(5, 0xbfeeb810, 1) = -1 EAGAIN (Resource temporarily
    unavailable)
    select(7, [0 3 5 6], [], NULL, {5, 0}) = 1 (in [5], left {5, 0})
    readv(5, [{"\ntmp/speedy.4.0.S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024}],
    1) = 1
    writev(1, [{"\n", 1}], 1
    ) = 1
    readv(5, 0xbfeeb810, 1) = -1 EAGAIN (Resource temporarily
    unavailable)
    select(7, [0 3 5 6], [], NULL, {5, 0}) = 1 (in [5], left {4, 480000})
    readv(5, [{"\ntmp/speedy.4.0.S\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024}],
    1) = 0
    close(5) = 0
    fcntl64(1, F_SETFL, O_WRONLY) = 0
    close(1) = 0
    select(7, [0 3 6], [], NULL, {5, 0}) = 1 (in [6], left {5, 0})
    readv(6, [{"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
    512}], 1) = 0
    close(6) = 0
    fcntl64(2, F_SETFL, O_WRONLY) = 0
    close(2) = 0
    select(7, [0 3], [], NULL, {5, 0}) = ? ERESTARTNOHAND (To be
    restarted)
    --- SIGUSR1 (User defined signal 1) @ 0 (0) ---
    write(8, "\0", 1) = 1
    sigreturn() = ? (mask now [])
    write(8, "\0", 1) = 1
    gettimeofday({1078733340, 695772}, NULL) = 0
    fcntl64(7, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0},
    0xbfeeb7c0) = 0
    fstat64(7, {st_mode=S_IFREG|0600, st_size=512, ...}) = 0
    rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0
    fcntl64(7, F_SETLK64, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0},
    0xbfeeb7d0) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    fcntl64(0, F_SETFL, O_RDONLY) = 0
    rt_sigaction(SIGSEGV, {SIG_DFL}, {SIG_DFL}, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
    kill(30753, SIGSEGV) = 0
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    +++ killed by SIGSEGV +++

    I fount out the following messages in a result of demsg:

    # dmesg|grep -i cpu

    Initializing CPU#0
    CPU: L1 I cache: 16K, L1 D cache: 16K
    CPU: L2 cache: 512K
    Intel machine check reporting enabled on CPU#0.
    CPU: After generic, caps: 0183f9ff 00000000 00000000 00000000
    CPU: Common caps: 0183f9ff 00000000 00000000 00000000
    CPU: Intel Pentium II (Deschutes) stepping 02
    microcode: CPU0 no microcode found! (sig=652, pflags=1)

    # dmesg|grep -i sig

    usb.c: new USB bus registered, assigned bus number 1
    microcode: CPU0 no microcode found! (sig=652, pflags=1)
    application bug: hcid(2143) has SIGCHLD set to SIG_IGN but calls wait().
    application bug: speedy_backend(3279) has SIGCHLD set to SIG_IGN but calls wait(). (there is 16 lines/times in totle)

    I also have SIG11 problem with start postfix or compile anything,
    when I executed /etc/rc.d/init.d/postfix restart, I get a "Segmention
    fault" messages:

    # strace postalias /etc/postfix/aliases

    open("/etc/postfix/aliases", O_RDONLY) = 3
    fstat64(3, {st_mode=S_IFREG|0644, st_size=2325, ...}) = 0
    umask(033) = 022
    getuid32() = 0
    geteuid32() = 0
    getegid32() = 0
    open("/etc/postfix/aliases.db", O_RDWR) = 4
    flock(4, LOCK_EX) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
    rt_sigprocmask(SIG_BLOCK, ~[RTMIN], [], 8) = 0
    stat64("/etc/postfix/aliases.db", {st_mode=S_IFREG|0644, st_size=12288,
    ...}) = 0
    open("/etc/postfix/aliases.db", O_RDWR|O_TRUNC|O_LARGEFILE) = 5
    fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
    fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
    stat64("/etc/postfix/aliases.db", {st_mode=S_IFREG|0644, st_size=0, ...})
    = 0
    getpid() = 30722
    time(NULL) = 1078733317
    _llseek(5, 0, [0], SEEK_SET) = 0
    write(5, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"...,
    4096) = 4096
    _llseek(5, 8192, [8192], SEEK_SET) = 0
    write(5, "\0\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\2\0"...,
    4096) = 4096
    fsync(5) = 0
    stat64("DB_CONFIG", 0xbfefc690) = -1 ENOENT (No such file or
    directory)
    open("DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
    directory)
    stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
    stat64("__db.002", 0xbfefc6e0) = -1 ENOENT (No such file or
    directory)
    mmap2(NULL, 20983808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
    0) = 0xbe1d4000
    open("/etc/postfix/aliases.db", O_RDWR|O_LARGEFILE) = 6
    fcntl64(6, F_SETFD, FD_CLOEXEC) = 0
    fstat64(6, {st_mode=S_IFREG|0644, st_size=12288, ...}) = 0
    pread(6, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10"...,
    4096, 0) = 4096
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    +++ killed by SIGSEGV +++

    when compile somethings, but it still cause segmentation fault,
    is it a cpu or kernel or hardware problem?

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Juergen Vigna: "Creating new Installer Disk with custom kernel HOWTO"

    Relevant Pages

    • Re: How does this make you feel?
      ... >>>primitives to implement, say, a memcpy just as efficiently as microcode ... > The work is offloaded from the programmer in any case - this type of code ... library macros need updating for new CPU products, ... And designing such instruction such that they don't ...
      (comp.arch)
    • Re: Perpetual re:booting
      ... Prescott processors on boards which do not fully support them. ... the processor microcode is not updating correctly. ... allow the machine to boot up with whatever microcode update the BIOS has ... The microcode version is identified by this utility as "CPU Revision" ...
      (microsoft.public.windowsxp.accessibility)
    • Re: [opensuse] swap not available
      ... The CPU was two 15 inch ... run the instruction set the applications would use. ... simulate several single-user IBM 360's and single-user IBM ... 704's by just switching microcode with each context switch. ...
      (SuSE)
    • Re: Linux Kernel Microcode Question
      ... microcode update on the fly, i.e. while the OS is running with no need ... rebooting or otherwise resetting the CPU causes the ... it does matter which Intel CPUs you have. ... The driver selects the ...
      (Linux-Kernel)
    • Possible Prescott Cpu temporary workaround
      ... The problem of SP2 not installing on Prescott and Extreme ... The microcode version is identified by this utility as "CPU Revision". ... Frequently check the website of your motherboard manufacturer for BIOS ...
      (microsoft.public.windowsxp.general)