Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Why does gdb core-dump in scratchbox?

    Reply
    Ken-Young | # 1 | 2010-06-30, 04:12 | Report

    I work on a Maemo 5 application (orrery) using the scratchbox environment on a 32-bit x86 box running Ubuntu. Occasionally my code will core-dump, and naturally I'd like to be able to use gdb to examine the core-dump file. However, it never works. gdb itself core-dumps whenever I try to do this. I've used gdb a lot in other situations, so I'm pretty sure I'm invoking the program properly.

    Has anyone else seen (and hopefully solved) this problem?
    Any ideas?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    vivainio | # 2 | 2010-06-30, 06:39 | Report

    [QUOTE=Ken-Young;734908]I work on a Maemo 5 application (orrery) using the scratchbox environment on a 32-bit x86 box running Ubuntu. Occasionally my code will core-dump, and naturally I'd like to be able to use gdb to examine the core-dump file. However, it never works. gdb itself core-dumps whenever I try to do this. I've used gdb a lot in other situations, so I'm pretty sure I'm invoking the program properly./QUOTE]

    Have you tried gdb7?

    http://chaos.troll.no/~harald/gdb7/

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to vivainio For This Useful Post:
    Ken-Young, matthew_exon

     
    matthew_exon | # 3 | 2010-07-01, 17:37 | Report

    This is currently driving me insane. My experiences with Maemo so far have been mixed: as a user, Maemo is appalling. As a developer, it's so, so much worse. Distributing a non-functional debugger with your development environment, and then leaving the bug to fester for half a year without comment... how much more insulting can you get?

    I can't install gdb7 because networking in scratchbox doesn't work. I can't debug my networking problems because scratchbox doesn't have ping. At this stage, I'm missing the slick development experience provided by the "peek" and "poke" commands on my Commodore 64...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    vivainio | # 4 | 2010-07-01, 17:56 | Report

    Originally Posted by matthew_exon View Post
    I can't install gdb7 because networking in scratchbox doesn't work. I can't debug my networking problems because scratchbox doesn't have ping. At this stage, I'm missing the slick development experience provided by the "peek" and "poke" commands on my Commodore 64...
    You can fix your networking problems by

    cp /etc/resolv.conf /scratchbox/etc

    (at host).

    That being said, you can use host side to fetch the gdb7 debian package, copy it over to scratchbox side and "dpkg -i foo.deb" it.

    The old debugger turned out to be broken only "recently" (during Qt 4.6 development IIRC). It worked just fine before it ;-).

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout