Analysing core dump in linux sytem : error

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52.



Using this module we are getting a core of unlimited size. We use ARM gdb version "GNU gdb (Marvell GCC development 20170123-) 7.10.0.20150918-cvs" to debug a core file.



Using this tool, while opening core file we get the following error:



BFD: Warning: /tmp/filewXU3ip is truncated: expected core file size >= 1684632832, found: 102373296.
warning: Couldn't find general-purpose registers in core file.
warning: Couldn't find general-purpose registers in core file.
PC not available


Could someone please help us to get through this error? Do we need to do some other implementation for this in kernel apart from exporting necessary symbols?







share|improve this question






















  • would you include the output of df -h?
    – Rui F Ribeiro
    Mar 6 at 8:14






  • 1




    don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
    – tonioc
    Mar 6 at 8:16










  • Are you opening it as soon you generate core?
    – Rui F Ribeiro
    Mar 6 at 8:22











  • @tonioc ulimit -f also seems to affect core size.
    – Rui F Ribeiro
    Mar 6 at 8:23










  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Mar 6 at 8:55














up vote
0
down vote

favorite












We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52.



Using this module we are getting a core of unlimited size. We use ARM gdb version "GNU gdb (Marvell GCC development 20170123-) 7.10.0.20150918-cvs" to debug a core file.



Using this tool, while opening core file we get the following error:



BFD: Warning: /tmp/filewXU3ip is truncated: expected core file size >= 1684632832, found: 102373296.
warning: Couldn't find general-purpose registers in core file.
warning: Couldn't find general-purpose registers in core file.
PC not available


Could someone please help us to get through this error? Do we need to do some other implementation for this in kernel apart from exporting necessary symbols?







share|improve this question






















  • would you include the output of df -h?
    – Rui F Ribeiro
    Mar 6 at 8:14






  • 1




    don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
    – tonioc
    Mar 6 at 8:16










  • Are you opening it as soon you generate core?
    – Rui F Ribeiro
    Mar 6 at 8:22











  • @tonioc ulimit -f also seems to affect core size.
    – Rui F Ribeiro
    Mar 6 at 8:23










  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Mar 6 at 8:55












up vote
0
down vote

favorite









up vote
0
down vote

favorite











We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52.



Using this module we are getting a core of unlimited size. We use ARM gdb version "GNU gdb (Marvell GCC development 20170123-) 7.10.0.20150918-cvs" to debug a core file.



Using this tool, while opening core file we get the following error:



BFD: Warning: /tmp/filewXU3ip is truncated: expected core file size >= 1684632832, found: 102373296.
warning: Couldn't find general-purpose registers in core file.
warning: Couldn't find general-purpose registers in core file.
PC not available


Could someone please help us to get through this error? Do we need to do some other implementation for this in kernel apart from exporting necessary symbols?







share|improve this question














We are using a private module to dump a corefile which uses the kernel utility elf_core_dump in source/fs/binfmt_elf.c file in kernel source 4.4.52.



Using this module we are getting a core of unlimited size. We use ARM gdb version "GNU gdb (Marvell GCC development 20170123-) 7.10.0.20150918-cvs" to debug a core file.



Using this tool, while opening core file we get the following error:



BFD: Warning: /tmp/filewXU3ip is truncated: expected core file size >= 1684632832, found: 102373296.
warning: Couldn't find general-purpose registers in core file.
warning: Couldn't find general-purpose registers in core file.
PC not available


Could someone please help us to get through this error? Do we need to do some other implementation for this in kernel apart from exporting necessary symbols?









share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 8:58









Stephen Kitt

141k22307367




141k22307367










asked Mar 6 at 8:02









oxoinfra

1




1











  • would you include the output of df -h?
    – Rui F Ribeiro
    Mar 6 at 8:14






  • 1




    don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
    – tonioc
    Mar 6 at 8:16










  • Are you opening it as soon you generate core?
    – Rui F Ribeiro
    Mar 6 at 8:22











  • @tonioc ulimit -f also seems to affect core size.
    – Rui F Ribeiro
    Mar 6 at 8:23










  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Mar 6 at 8:55
















  • would you include the output of df -h?
    – Rui F Ribeiro
    Mar 6 at 8:14






  • 1




    don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
    – tonioc
    Mar 6 at 8:16










  • Are you opening it as soon you generate core?
    – Rui F Ribeiro
    Mar 6 at 8:22











  • @tonioc ulimit -f also seems to affect core size.
    – Rui F Ribeiro
    Mar 6 at 8:23










  • yes the climit is set to unlimited using the option ulimit -c unlimited.
    – oxoinfra
    Mar 6 at 8:55















would you include the output of df -h?
– Rui F Ribeiro
Mar 6 at 8:14




would you include the output of df -h?
– Rui F Ribeiro
Mar 6 at 8:14




1




1




don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
– tonioc
Mar 6 at 8:16




don't you have a ulimit set on core size? (ulimit -c ), maybe try with ulimit -c unlimited ?
– tonioc
Mar 6 at 8:16












Are you opening it as soon you generate core?
– Rui F Ribeiro
Mar 6 at 8:22





Are you opening it as soon you generate core?
– Rui F Ribeiro
Mar 6 at 8:22













@tonioc ulimit -f also seems to affect core size.
– Rui F Ribeiro
Mar 6 at 8:23




@tonioc ulimit -f also seems to affect core size.
– Rui F Ribeiro
Mar 6 at 8:23












yes the climit is set to unlimited using the option ulimit -c unlimited.
– oxoinfra
Mar 6 at 8:55




yes the climit is set to unlimited using the option ulimit -c unlimited.
– oxoinfra
Mar 6 at 8:55










1 Answer
1






active

oldest

votes

















up vote
0
down vote













At a guess you need to write it to filesystem with more space available.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428436%2fanalysing-core-dump-in-linux-sytem-error%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    At a guess you need to write it to filesystem with more space available.






    share|improve this answer
























      up vote
      0
      down vote













      At a guess you need to write it to filesystem with more space available.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        At a guess you need to write it to filesystem with more space available.






        share|improve this answer












        At a guess you need to write it to filesystem with more space available.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 6 at 8:17









        Timothy Baldwin

        1653




        1653






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428436%2fanalysing-core-dump-in-linux-sytem-error%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay