Re: [kde-freebsd] marble

2013-10-25 Thread Schaich Alonso
On Thu, 24 Oct 2013 19:19:21 -0400
Ajtim lum...@gmail.com wrote:

 Hi!
 
 I built marble with clang on FreeBSD 10.0-BETA1 and when I start it
 it crashed:
 
 Application: Marble Virtual Globe (marble), signal: Segmentation fault
 [...]
 
 Do I need to use gcc instead, please?
 
 Thank you.
 
 
 Mitja

If it's built with gcc it segfaults nevertheless. Over here I get

 Null pointer in call to GeoDataTreeModel::addFeature (parent  0x810288d38  -
 feature 0x0 ) 
 KCrash: Application 'marble' crashing...

printed on the terminal before the application crashes though. It's probably
the lack of some optional dependencies which aren't in ports yet. I'll try
to investigate this.

Alonso
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


Re: [kde-freebsd] marble

2013-10-25 Thread Ajtim
On Fri, 25 Oct 2013 12:53:49 +
Schaich Alonso alonsoscha...@fastmail.fm wrote:

 On Thu, 24 Oct 2013 19:19:21 -0400
 Ajtim lum...@gmail.com wrote:
 
  Hi!
  
  I built marble with clang on FreeBSD 10.0-BETA1 and when I start
  it it crashed:
  
  Application: Marble Virtual Globe (marble), signal: Segmentation
  fault [...]
  
  Do I need to use gcc instead, please?
  
  Thank you.
  
  
  Mitja
 
 If it's built with gcc it segfaults nevertheless. Over here I get
 
  Null pointer in call to GeoDataTreeModel::addFeature (parent
  0x810288d38  - feature 0x0 ) 
  KCrash: Application 'marble' crashing...
 
 printed on the terminal before the application crashes though. It's
 probably the lack of some optional dependencies which aren't in
 ports yet. I'll try to investigate this.
 
 Alonso

I did disable option for GPS and rebuilt but it crashed again:
 
Do you thing that is related because I cannot build telepathy-qt4,
please?

 Application: Marble Virtual Globe (marble), signal: Segmentation
fault [Current thread is 1 (Thread 810014800 (LWP 101086/marble))]

Thread 5 (Thread 810006400 (LWP 101622/marble)):
#0  0x0008079aac9a in nanosleep () from /lib/libc.so.7
#1  0x0008078f2eca in sleep () from /lib/libc.so.7
#2  0x00080767cc33 in sleep () from /lib/libthr.so.3
#3  0x00080234928a in KCrash::crashHandler () from 
/usr/local/kde4/lib/libkdeui.so.7
#4  0x000802348492 in KCrash::defaultCrashHandler () from 
/usr/local/kde4/lib/libkdeui.so.7
#5  0x00080767f3db in swapcontext () from /lib/libthr.so.3
#6  0x00080767efc9 in sigaction () from /lib/libthr.so.3
#7  0x7003 in ?? ()
#8  0x00080767eeb0 in sigaction () from /lib/libthr.so.3
#9  0x000800e7988d in Marble::GeoWriter::write () from 
/usr/local/kde4/lib/libmarblewidget.so.16
#10 0x00080105dc4c in Marble::BookmarkManager::updateBookmarkFile () from 
/usr/local/kde4/lib/libmarblewidget.so.16
#11 0x00080105d7a7 in Marble::BookmarkManager::loadFile () from 
/usr/local/kde4/lib/libmarblewidget.so.16
#12 0x00427203 in ?? ()
#13 0x004254f4 in ?? ()
#14 0x00424680 in ?? ()
#15 0x0041948f in ?? ()
#16 0x00080066b000 in ?? ()
#17 0x in ?? ()

Thread 4 (Thread 810008800 (LWP 100520/marble)):
#0  0x0008079abbea in kevent () from /lib/libc.so.7
#1  0x000802d1857a in QKqueueFileSystemWatcherEngine::run () from 
/usr/local/lib/qt4/libQtCore.so.4
#2  0x000802c3cddc in QThreadPrivate::start () from 
/usr/local/lib/qt4/libQtCore.so.4
#3  0x00080767a4a4 in pthread_create () from /lib/libthr.so.3
#4  0x in ?? ()

Thread 3 (Thread 810009800 (LWP 100575/marble)):
#0  0x0008079abbea in kevent () from /lib/libc.so.7
#1  0x000802d1857a in QKqueueFileSystemWatcherEngine::run () from 
/usr/local/lib/qt4/libQtCore.so.4
#2  0x000802c3cddc in QThreadPrivate::start () from 
/usr/local/lib/qt4/libQtCore.so.4
#3  0x00080767a4a4 in pthread_create () from /lib/libthr.so.3
#4  0x in ?? ()

Thread 2 (Thread 810014400 (LWP 101085/marble)):
#0  0x00080768586c in __error () from /lib/libthr.so.3
#1  0x000807683d2c in _pthread_cond_wait () from /lib/libthr.so.3
#2  0x000805d6b3f2 in WTF::TCMalloc_PageHeap::scavengerThread () from 
/usr/local/lib/qt4/libQtWebKit.so.4
#3  0x000805d6b389 in WTF::TCMalloc_PageHeap::runScavengerThread () from 
/usr/local/lib/qt4/libQtWebKit.so.4
#4  0x00080767a4a4 in pthread_create () from /lib/libthr.so.3
#5  0x in ?? ()

Thread 1 (Thread 810014800 (LWP 101086/marble)):
#0  0x00080796303a in poll () from /lib/libc.so.7
#1  0x00080767c873 in poll () from /lib/libthr.so.3
#2  0x00080b91aa0c in g_main_context_iterate () from 
/usr/local/lib/libglib-2.0.so.0
#3  0x00080b91aaf4 in g_main_context_iteration () from 
/usr/local/lib/libglib-2.0.so.0
#4  0x000802d62a0f in QEventDispatcherGlib::processEvents () from 
/usr/local/lib/qt4/libQtCore.so.4
#5  0x000802d33ab7 in QEventLoop::exec () from 
/usr/local/lib/qt4/libQtCore.so.4
#6  0x000802c3ad05 in QThread::exec () from 
/usr/local/lib/qt4/libQtCore.so.4
#7  0x000802c3cddc in QThreadPrivate::start () from 
/usr/local/lib/qt4/libQtCore.so.4
#8  0x00080767a4a4 in pthread_create () from /lib/libthr.so.3
#9  0x in ?? ()
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


Re: [kde-freebsd] marble

2013-10-25 Thread Schaich Alonso
On Fri, 25 Oct 2013 07:55:19 -0400
Ajtim lum...@gmail.com wrote:

 On Fri, 25 Oct 2013 12:53:49 +
 Schaich Alonso alonsoscha...@fastmail.fm wrote:
 
  On Thu, 24 Oct 2013 19:19:21 -0400
  Ajtim lum...@gmail.com wrote:
  
   Hi!
   
   I built marble with clang on FreeBSD 10.0-BETA1 and when I start
   it it crashed:
   
   Application: Marble Virtual Globe (marble), signal: Segmentation
   fault [...]
   
   Do I need to use gcc instead, please?
   
   Thank you.
   
   
   Mitja
  
  If it's built with gcc it segfaults nevertheless. Over here I get
  
   Null pointer in call to GeoDataTreeModel::addFeature (parent
   0x810288d38  - feature 0x0 ) 
   KCrash: Application 'marble' crashing...
  
  printed on the terminal before the application crashes though. It's
  probably the lack of some optional dependencies which aren't in
  ports yet. I'll try to investigate this.
  
  Alonso
 
 I did disable option for GPS and rebuilt but it crashed again:
  
 Do you thing that is related because I cannot build telepathy-qt4,
 please?
 

No, it's unrelated. This crash is caused by insufficient runtime validation.
I strongly suspect it's the Bookmark Manager (from src/lib/BookmarkManager.h)
that gets corrupted at some point, or is corrupt to begin with.

This:

 Thread 5 (Thread 810006400 (LWP 101622/marble)):
 [...]
 10 0x00080105dc4c in Marble::BookmarkManager::updateBookmarkFile ()
   from /usr/local/kde4/lib/libmarblewidget.so.16
 11 0x00080105d7a7 in Marble::BookmarkManager::loadFile ()
   from /usr/local/kde4/lib/libmarblewidget.so.16
 12 0x00427203 in ?? ()
 [...]

With more symbols (WITH_DEBUG) on the broken frame:

#0  Marble::GeoWriter::writeElement (this=0x7fffc508, object=0x0)
at

/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/lib/geodata/writer/GeoWriter.cpp:62
#1  0x000800e801d5 in Marble::GeoWriter::write (this=0x7fffc508,
device=value optimized out, feature=0x0) at

/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/lib/geodata/writer/GeoWriter.cpp:49
#2  0x0008010793ec in Marble::BookmarkManager::updateBookmarkFile
(this=0x8100902f8) at

/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/lib/BookmarkManager.cpp:235
#3  0x000801078f47 in Marble::BookmarkManager::loadFile
(this=0x8100902f8, relativeFilePath=value optimized out) at

/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/lib/BookmarkManager.cpp:117
#4  0x004276fe in MarblePart (this=0x81008ffc0, parentWidget=value
optimized out, parent=value optimized out, arguments=value optimized
out) at
/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/marble_part.cpp:171
#5  0x00425894 in MainWindow (this=0x810268980, marbleDataPath=value
optimized out, parent=value optimized out) at
/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/KdeMainWindow.cpp:41
#6  0x00424a20 in main (argc=value optimized out, argv=value
optimized out) at
/usr/obj/usr/ports/astro/marble/work/marble-4.11.2/src/kdemain.cpp:352

The attached patch fixes that segfault, but it just keeps crashing elsewhere
then. After applying the patch and rebuilding it will crash having
BookmarkManager's helper struct's address within an invalid memory range.

Alonso
--- src/lib/geodata/writer/GeoWriter.cpp.orig	2013-08-28 17:03:55.0 +
+++ src/lib/geodata/writer/GeoWriter.cpp	2013-10-25 13:17:55.766813347 +
@@ -8,6 +8,8 @@
 // Copyright 2009  Andrew Manson g.real@gmail.com
 //
 
+#include stddef.h
+
 #include GeoWriter.h
 
 #include GeoTagWriter.h
@@ -59,6 +61,11 @@
 {
 // Add checks to see that everything is ok here
 
+if (object == NULL) {
+mDebug()  Null Pointer access prevented at GeoWriter::writeElement.;
+return false;
+}
+  
 GeoTagWriter::QualifiedName name( object-nodeType(), m_documentType );
 const GeoTagWriter* writer = GeoTagWriter::recognizes( name );
 
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


Re: [kde-freebsd] Will there be a Qt5-Port?

2013-10-25 Thread Max Brazhnikov
On Wed, 23 Oct 2013 20:47:20 +0200 Alberto Villa wrote:
 On Tue, Oct 22, 2013 at 1:05 AM, Schaich Alonso
 alonsoscha...@fastmail.fm wrote:
  Replying to this because I asked about qt5 three weeks ago and got no reply.
 
 Sorry, I missed your email (as well as many others).
 
  Some ports for it have been made and can be accessed
  via /area51/branches/qt-5.0 in the area51 svn repository. The most recent
  commit for it is 6 months old though, so they might need some overhaul.
 
 I stopped working on it because I had problems with kde.ix, and I see
 that the situation has not improved. Also, I've been busy on personal
 side.
 
 I'm now installing poudriere, and I'll try to produce a buildable
 version to allow people test it.

swills@ runs automated builds for several repo, including area51:

http://jenkins.mouf.net/job/area51/
http://meatwad.mouf.net/rubick/poudriere/logs/bulk/

I'm citing his words:

It's just running off my cable modem but it should be usable
for most folks most of the time.

I'm a little uncertain if it's building the right things but that's not a huge
issue and maybe someone can help me with that at some point.

Max
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


Re: [kde-freebsd] marble

2013-10-25 Thread Adriaan de Groot
On Friday 25 October 2013 07:55:19 Ajtim wrote:
 I did disable option for GPS and rebuilt but it crashed again:

If there's gpsd still installed on the system, then Marble still picks up that 
feature (and attendant crashes). You may need to deinstall gpsd before 
rebuilding Marble.

[ade] (who has non-stop krunner crashes with marble+gpsd)
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information


[kde-freebsd] Fix 4.10 ports?

2013-10-25 Thread Tijl Coosemans
Hi,

Is it worth spending time fixing KDE 4.10 ports for FreeBSD 10.0 or will
KDE 4.11 hit the tree soon?
___
kde-freebsd mailing list
kde-freebsd@kde.org
https://mail.kde.org/mailman/listinfo/kde-freebsd
See also http://freebsd.kde.org/ for latest information