Segfault with lastest master

Rick Walsh rickmwalsh at gmail.com
Sat Jul 11 02:16:32 PDT 2015


On 11 July 2015 at 16:44, Rick Walsh <rickmwalsh at gmail.com> wrote:

> Hi Dirk,
>
> On 11 July 2015 at 15:05, Dirk Hohndel <dirk at hohndel.org> wrote:
>
>> On Sat, Jul 11, 2015 at 02:59:17PM +1000, Rick Walsh wrote:
>> > On 11 July 2015 at 12:48, Dirk Hohndel <dirk at hohndel.org> wrote:
>> >
>> > >
>> > >
>> > > Nope. MarbleDirs.cpp
>> > >
>> > > And actually why don't you use this patch...
>> > >
>> > > diff --git a/src/lib/marble/MarbleDirs.cpp
>> b/src/lib/marble/MarbleDirs.cpp
>> > > index 014ab0582d0b..734107f6536e 100644
>> > > --- a/src/lib/marble/MarbleDirs.cpp
>> > > +++ b/src/lib/marble/MarbleDirs.cpp
>> > > @@ -68,6 +68,7 @@ QString MarbleDirs::path( const QString&
>> relativePath )
>> > >      }
>> > >      QString result = QDir( fullpath ).canonicalPath();
>> > >      if (result.isEmpty()) {
>> > > +           qDebug() << fullpath << "result" << result;
>> > >             if (relativePath.contains("bitmaps") && relativePath !=
>> > > "bitmaps/empty.png")
>> > >                     return path("bitmaps/empty.png");
>> > >  #if defined(DEBUG)
>> > >
>> >
>> > I've just tried that but I'm not sure it's doing much.
>> >
>> >  (gdb) run
>> > Starting program: /home/rick/build/subsurface/build/subsurface
>> > [Thread debugging using libthread_db enabled]
>> > Using host libthread_db library "/lib64/libthread_db.so.1".
>> > Map theme file does not exist: ""
>> > QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
>> > such file or directory
>> > [New Thread 0x7fff81bf9700 (LWP 20213)]
>> > [Thread 0x7fff81bf9700 (LWP 20213) exited]
>> >
>>
>> Umm. Err. What? If the startup used to get you into the infinite recursion
>> (that's what happens in the "return path("bimaps/empty.png");"...)
>>
>> Oh, never mind. I bet your libssrfmarble isn't compiled with debugging
>> enabled, so the qDebug never gets printed for you.
>>
>> Can you replace the qDebug with
>>
>> fprintf(stderr, "fullpath %s results in %s\n", qPrintable(fullpath),
>> qPrintable(result));
>>
>> (completely untested, typos and thinkos included free of charge... but
>> something along those lines should work...)
>>
>
> Now I need a beer and/or coffee.
>
> So after I actually built Subsurface against the Marble libs modified with
> the fprintf(stderr... line., this does do something.
>
> (gdb) run
> Starting program: /home/rick/build/subsurface/build/subsurface
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> fullpath /bitmaps/empty.png results in
> tried to open nonexistent file bitmaps/empty.png
> fullpath /maps/earth/srtm2/srtm2.dgml results in
> tried to open nonexistent file maps/earth/srtm2/srtm2.dgml
> Map theme file does not exist: ""
> fullpath
> /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.kml
> results in
> tried to open nonexistent file placemarks/cityplacemarks.kml
> fullpath
> /home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.cache
> results in
> tried to open nonexistent file placemarks/cityplacemarks.cache
>
> etc.
>
> It is looking for the files in the wrong place.  marbledata is a symbolic
> link to:
> /home/rick/build/subsurface/marbledata, when it needs to point to
> /home/rick/build/marble-source/data.
>
> I recreated the link to point where it should, and the error messages go
> away.
>

Can I recall that email?  The link points where it should.

I can see a few problems in the output.  First is that rather than trying
to open /home/rick/build/subsurface/build/marbledata/bitmaps/xxx it's
trying to open /bitmaps/xxx

Next, it's trying to open kml files in the placemarks directory, which
doesn't exist.

And thirdly, it's trying to open bitmap files that don't exist.

Full output is:

fullpath /bitmaps/default_location.png results in
fullpath /bitmaps/empty.png results in
fullpath /maps/earth/srtm2/srtm2.dgml results in
Map theme file does not exist: ""
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No
such file or directory
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.kml
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/cityplacemarks.cache
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/boundaryplacemarks.kml
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/boundaryplacemarks.cache
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/otherplacemarks.kml
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/otherplacemarks.cache
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/elevplacemarks.kml
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/elevplacemarks.cache
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/baseplacemarks.kml
results in
fullpath
/home/rick/build/subsurface/build/marbledata/placemarks/baseplacemarks.cache
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/other.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/observatory.png
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/wikipedia.png
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/osm.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/coordinate.png results
in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/manned_landing.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/robotic_rover.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/unmanned_soft_landing.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/unmanned_hard_landing.png
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/folder.png
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/bookmark.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_camping.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_hostel.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_hotel2.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_motel.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/accommodation_youth_hostel.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/amenity_library.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_college.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_school.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/education_university.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_bar.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_biergarten.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_cafe.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_fastfood2.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_pub.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/food_restaurant.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_doctors2.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_hospital.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/health_pharmacy.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/money_bank2.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_alcohol.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_hifi.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/shopping_supermarket.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_attraction.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_castle2.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_cinema.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_monument.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_museum.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_ruin.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_theatre.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_theme_park.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_view_point.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/tourist_zoo.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_aerodrome.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_airport_terminal.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_bus_station.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_bus_stop.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_car_share.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_fuel.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_parking.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_train_station.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_tram_stop.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_rental_bicycle.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_rental_car.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/transport_taxi_rank.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_unknown3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_bahai3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_buddhist3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_christian3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_hindu3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_jain3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_jewish3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_shinto3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/poi/place_of_worship_sikh3.p.16.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_path.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_track.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_footway.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_unclassified.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_tertiary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_secondary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_primary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_trunk.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_motorway.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_tertiary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_secondary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_primary.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_trunk.png
results in
fullpath
/home/rick/build/subsurface/build/marbledata/bitmaps/highway_motorway.png
results in
fullpath /home/rick/build/subsurface/build/marbledata/bitmaps/satellite.png
results in

Cheers,

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150711/4fb1b1f2/attachment-0001.html>


More information about the subsurface mailing list