maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] Columbus Navigation Toolkit (https://talk.maemo.org/showthread.php?t=67276)

avidscavenger 2013-04-20 12:53

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by freemangordon (Post 1337544)
@avidscavenger - install qt -dbg packages and get some useful backtrace :).

Thanks.

Unfortunately doesn't really tell me what I didn't already know. Two valid stack frames then nothing but question marks. Some buffer over- or under-run has destroyed the stack? Any suggestions?

Note that turning off compiler optimisation makes the problem go away. And valgrind didn't find anything.

Not too sure where to go from here.

freemangordon 2013-04-20 14:06

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by avidscavenger (Post 1337547)
Thanks.

Unfortunately doesn't really tell me what I didn't already know. Two valid stack frames then nothing but question marks. Some buffer over- or under-run has destroyed the stack? Any suggestions?

Note that turning off compiler optimisation makes the problem go away. And valgrind didn't find anything.

Not too sure where to go from here.

You are missing debug symbols for /usr/lib/libQtCore.so.4, that is why gdb says "Backtrace stopped: previous frame identical to this frame (corrupt stack?)". Just install libqt4-core-dbg and you'll see. I can't say it clearer than that :)

avidscavenger 2013-04-20 23:08

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by freemangordon (Post 1337563)
You are missing debug symbols for /usr/lib/libQtCore.so.4, that is why gdb says "Backtrace stopped: previous frame identical to this frame (corrupt stack?)". Just install libqt4-core-dbg and you'll see. I can't say it clearer than that :)

That is what I did. :)

Here is some output:

Code:

user@Nokia-N900:~/MyDocs/core-dumps/columbus-3E77-11-2005$ dpkg -l libqt4-core-dbg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                  Version              Description
+++-=====================-=====================-==========================================================
ii  libqt4-core-dbg      1:4.7.4~git20110505+c Qt 4 library debugging symbols
user@Nokia-N900:~/MyDocs/core-dumps/columbus-3E77-11-2005$ gdb /opt/usr/bin/columbus ./coredump
GNU gdb (GDB) 6.8.50.20090417-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(no debugging symbols found)
Reading symbols from /opt/usr/lib/librxsupport.so.1...(no debugging symbols found)...done.
Loaded symbols for /opt/usr/lib/librxsupport.so.1
Reading symbols from /opt/usr/lib/libcolumbus.so.1...(no debugging symbols found)...done.

<snip>

Code:

Reading symbols from /usr/lib/libQtCore.so.4...Reading symbols from /opt/usr/lib/debug/usr/lib/libQtCore.so.4.7.4...done.
done.
Loaded symbols for /usr/lib/libQtCore.so.4

<snip>

Code:

Core was generated by `/opt/usr/bin/columbus'.
Program terminated with signal 11, Segmentation fault.
#0  QString::fromLatin1_helper (str=0x73 <Address 0x73 out of bounds>, size=-1) at tools/qstring.cpp:3743
3743    tools/qstring.cpp: No such file or directory.
        in tools/qstring.cpp
(gdb) bt
#0  QString::fromLatin1_helper (str=0x73 <Address 0x73 out of bounds>, size=-1) at tools/qstring.cpp:3743
#1  0x40e7910c in QString::fromAscii_helper (str=0x73 <Address 0x73 out of bounds>, size=1088917772)
    at tools/qstring.cpp:3809
#2  0x00015ad0 in ?? ()
#3  0x00015ad0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Current language:  auto; currently c++
(gdb)

As you can see, we get a bit more information about the line numbers and variable names, but nothing more on the stack.

handaxe 2013-04-20 23:17

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
[OT] @avidscavenger: southern hemisphere + good command of English: OZ, NZ, SA?

HA (ex SA)

avidscavenger 2013-04-20 23:26

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by handaxe (Post 1337641)
[OT] @avidscavenger: southern hemisphere + good command of English: OZ, NZ, SA?

HA (ex SA)

If you consider Australian English to be good English ;)

handaxe 2013-04-20 23:30

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by avidscavenger (Post 1337642)
If you consider Australian English to be good English ;)

Honest mistake! :)

avidscavenger 2013-04-21 01:26

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
@handaxe - also OT but I can't find any threads that mention this. Since I included community-testing among my repos and did an upgrade, my hald_addon_bme has stopped working. That is, when I plug my phone into a USB source it doesn't give a pop-up message and start charging at 500mA/1000mA depending on the source. Instead it just charges at 100mA and I have to manually tweak the charge rate. Any clues?

freemangordon 2013-04-21 09:08

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by avidscavenger (Post 1337640)
That is what I did. :)

Here is some output:

Code:

user@Nokia-N900:~/MyDocs/core-dumps/columbus-3E77-11-2005$ dpkg -l libqt4-core-dbg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                  Version              Description
+++-=====================-=====================-==========================================================
ii  libqt4-core-dbg      1:4.7.4~git20110505+c Qt 4 library debugging symbols
user@Nokia-N900:~/MyDocs/core-dumps/columbus-3E77-11-2005$ gdb /opt/usr/bin/columbus ./coredump
GNU gdb (GDB) 6.8.50.20090417-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(no debugging symbols found)
Reading symbols from /opt/usr/lib/librxsupport.so.1...(no debugging symbols found)...done.
Loaded symbols for /opt/usr/lib/librxsupport.so.1
Reading symbols from /opt/usr/lib/libcolumbus.so.1...(no debugging symbols found)...done.

<snip>

Code:

Reading symbols from /usr/lib/libQtCore.so.4...Reading symbols from /opt/usr/lib/debug/usr/lib/libQtCore.so.4.7.4...done.
done.
Loaded symbols for /usr/lib/libQtCore.so.4

<snip>

Code:

Core was generated by `/opt/usr/bin/columbus'.
Program terminated with signal 11, Segmentation fault.
#0  QString::fromLatin1_helper (str=0x73 <Address 0x73 out of bounds>, size=-1) at tools/qstring.cpp:3743
3743    tools/qstring.cpp: No such file or directory.
        in tools/qstring.cpp
(gdb) bt
#0  QString::fromLatin1_helper (str=0x73 <Address 0x73 out of bounds>, size=-1) at tools/qstring.cpp:3743
#1  0x40e7910c in QString::fromAscii_helper (str=0x73 <Address 0x73 out of bounds>, size=1088917772)
    at tools/qstring.cpp:3809
#2  0x00015ad0 in ?? ()
#3  0x00015ad0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Current language:  auto; currently c++
(gdb)

As you can see, we get a bit more information about the line numbers and variable names, but nothing more on the stack.

Phew, finally :P.

Now, you have 2 options from here:

1. Start application, attach gdb and wait it to SEGFAULT.
2. Start application, start gdb, load the coredump and attach to the application

Either will work and will give you the real backtrace.

BTW I am on #maemo IRC @ freenode.net, better join there to speedup the communication.

Estel 2013-04-21 12:00

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
Quote:

Originally Posted by freemangordon (Post 1337695)
BTW I am on #maemo IRC @ freenode.net, better join there to speedup the communication.

[OT]I would rather suggest #maemo-alternatives - this was the channel, where I managed to get freemangordon's attention to this thread, and, in particular, to coredump interpretation problems.

Official #maemo channels got one pesky, ego-problems focused admin, who lately feels very trigger-happy to ban people (probably, due to feeling like owning Maemo Community and being irreplaceable, thanks to some politic twists).

#maemo-alternatives sounds like better place for friendly, uncensored discussion - channel is managed by normal, responsible people. While originally meant to discuss alternative (to #maemo) operating systems on N900, lately it started to become alternative to "official" maemo channels (that were hostily taken over, long time ago) as a whole, and #maemo-alternatives staff doesn't have anything against it (AIUI).

Just suggestin' [/OT]

/Estel

handaxe 2013-04-21 12:18

Re: [ANNOUNCE] Columbus Navigation Toolkit
 
@estel: can you help avidscavenger with his question about charging? I admit I get confused as to the bme replacement status.

EDIT: bme replacement is not yet distributed but available for testing on Pali's site.

AFAIK, that is a kernel-power issue, and charging works for me with kp52. Unclear whether avidscavenger has kp installed. Could CSSU-T interfere with charging? Bad install?

Stay cool on the comments :)

PS looking at his post, he may have installed via apt.


All times are GMT. The time now is 12:09.

vBulletin® Version 3.8.8