lkml.org 
[lkml]   [2004]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: 2.6.7-mm2, mmaps rework, buggy apps, setarch
    From
    On Fre, 25 Jun 2004, Andrew Morton wrote:
    > > But what to do with a commerical app where I
    > > cannot check a stack trace or whatever?
    >
    > Use strace -f, look at the last screenful of output. That usually works.

    open("/media4/scan/cam-2002.03/001-100/raw/scan0100.tif", O_RDONLY) = 6
    lseek(6, 0, SEEK_END) = 43426634
    lseek(6, 0, SEEK_CUR) = 43426634
    lseek(6, 0, SEEK_SET) = 0
    mmap2(NULL, 43426634, PROT_READ|PROT_WRITE, MAP_PRIVATE, 6, 0) = -1 ENOMEM (Cann
    ot allocate memory)
    lseek(6, 0, SEEK_END) = 43426634
    lseek(6, 0, SEEK_CUR) = 43426634
    fstat64(6, {st_mode=S_IFREG|0644, st_size=43426634, ...}) = 0
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    +++ killed by SIGSEGV +++

    I guess that you are right.

    > Ingo's setarch patch wasn't a lot of use because it seems to be against a
    > setarch which doesn't exist. I hacked one up. Try
    >
    > setarch i386 your-program

    This worked.

    So what is the intended path:
    - inform the author of the program
    - remove the patch (you from mm, I from my build?)
    - run setarch for all buggy programs

    Best wishes and thanks a lot!

    Norbert

    -------------------------------------------------------------------------------
    Norbert Preining <preining AT logic DOT at> Technische Universität Wien
    gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
    -------------------------------------------------------------------------------
    ELY (n.)
    The first, tiniest inkling you get that something, somewhere, has gone
    terribly wrong.
    --- Douglas Adams, The Meaning of Liff
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 14:04    [W:0.023 / U:37.708 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site