Segfault Ubuntu 9.04

5 views
Skip to first unread message

Yuv

unread,
May 18, 2009, 5:20:53 PM5/18/09
to hugin and other free panoramic software
Hi all,

I just tried to build the latest SVN on Ubuntu 9.04. The build
completes (though with plenty of warnings about deprecated headers
that I do not recall seeing before) and when I run Hugin it segfaults
(see below). Any idea what I am doing wrong?
Yuv

yuv@nc6120ubu:~/src/hugin$ gdb hugin
GNU gdb 6.8-debian
Copyright (C) 2008 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 "i486-linux-gnu"...
(gdb) start
Breakpoint 1 at 0x80a8501: file /home/yuv/src/hugin/src/hugin1/hugin/
huginApp.cpp, line 87.
Starting program: /usr/local/bin/hugin
[Thread debugging using libthread_db enabled]
[New Thread 0xb5f0c760 (LWP 16003)]
[Switching to Thread 0xb5f0c760 (LWP 16003)]
main (argc=1, argv=0xbf9bcf84)
at /home/yuv/src/hugin/src/hugin1/hugin/huginApp.cpp:87
87 IMPLEMENT_APP(huginApp)
(gdb) continue
Continuing.
get fences failed: -1
param: 6, val: 0

Program received signal SIGSEGV, Segmentation fault.
0xb6d13276 in glGetString () from /usr/lib/libGL.so.1
(gdb) continue
Continuing.

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)

Bruno Postle

unread,
May 18, 2009, 5:53:50 PM5/18/09
to Hugin ptx
On Mon 18-May-2009 at 14:20 -0700, Yuv wrote:
>
>I just tried to build the latest SVN on Ubuntu 9.04. The build
>completes (though with plenty of warnings about deprecated headers
>that I do not recall seeing before) and when I run Hugin it segfaults
>(see below). Any idea what I am doing wrong?
>
>Program received signal SIGSEGV, Segmentation fault.
>0xb6d13276 in glGetString () from /usr/lib/libGL.so.1

This is a (recent) segfault on startup bug reported by several
people here:

http://groups.google.com/group/hugin-ptx/msg/0ae8cc3d73960a4b
https://sourceforge.net/tracker/?func=detail&atid=550441&aid=2793279&group_id=77506

..and possibly this one too:

http://groups.google.com/group/hugin-ptx/msg/9fee1b36f6800713

I can't reproduce this, but it is effectively blocking a release.

--
Bruno

Yuval Levy

unread,
May 18, 2009, 8:14:12 PM5/18/09
to hugi...@googlegroups.com
Bruno Postle wrote:
> I can't reproduce this, but it is effectively blocking a release.

some more information.

the previous report was from my notebook (32bit Ubuntu 9.04) for SVN3860.

I now built the same SVN3860 on my desktop (64bit Ubuntu 9.04) and
everything works fine.

I was lucky to have a working Hugin on the notebook for
<http://river-valley.tv/vedutismo-nuovo-new-tools-for-panoramic-perspective-control/>

Unfortunately I don't recall if it was built before or after the upgrade
to 9.04. When I get back to that same SVN number now, it segfaults.

My conclusion out of this observation is that something has changed in
the system / libraries - not in Hugin's codebase. But what is it and how
do we deal with this?

Another thing that I noticed, on both systems, there are many many more
warnings than a few weeks ago. Maybe somebody can make sense out of them:

yuv@yuv-desktop:~/src/hugin$ make > make.log
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from /home/yuv/src/hugin/src/hugin1/PT/PTOptimise.h:30,
from
/home/yuv/src/hugin/src/hugin1/base_wx/MyProgressDialog.cpp:33:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /home/yuv/src/hugin/src/foreign/levmar/misc.c:42:
/home/yuv/src/hugin/src/foreign/levmar/misc_core.c:566:2: warning:
#warning LAPACK not available, LU will be used for matrix inversion when
computing the covariance; this might be unstable at times
In file included from /home/yuv/src/hugin/src/foreign/levmar/misc.c:57:
/home/yuv/src/hugin/src/foreign/levmar/misc_core.c:566:2: warning:
#warning LAPACK not available, LU will be used for matrix inversion when
computing the covariance; this might be unstable at times
/home/yuv/src/hugin/src/foreign/levmar/lmlec.c:39:2: warning: #warning
Linearly constrained optimization requires LAPACK and was not compiled!
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.cpp:29:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.h:28,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.cpp:24:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.cpp:28:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
/home/yuv/src/hugin/src/hugin_base/panotools/PanoToolsInterface.cpp: In
function ‘void HuginBase::PTools::setDestImage(Image&, vigra::Diff2D,
unsigned char*, const HuginBase::PanoramaOptions::ProjectionFormat&,
const std::vector<double, std::allocator<double> >&, double)’:
/home/yuv/src/hugin/src/hugin_base/panotools/PanoToolsInterface.cpp:548:
warning: deprecated conversion from string constant to ‘char*’
/home/yuv/src/hugin/src/celeste/svm.cpp: In function ‘svm_model*
svm_load_model(const char*)’:
/home/yuv/src/hugin/src/celeste/svm.cpp:2759: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2763: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2785: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2806: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2808: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2810: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2812: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2814: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2820: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2827: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2834: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2841: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2848: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2852: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2915: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/svm.cpp:2924: warning: ignoring return
value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/Utilities.cpp: In function ‘void
FileCreateError(char*)’:
/home/yuv/src/hugin/src/celeste/Utilities.cpp:196: warning: ignoring
return value of ‘char* getcwd(char*, size_t)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/celeste/Utilities.cpp: In function ‘void
FileOpenError(char*)’:
/home/yuv/src/hugin/src/celeste/Utilities.cpp:205: warning: ignoring
return value of ‘char* getcwd(char*, size_t)’, declared with attribute
warn_unused_result
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx: In
constructor ‘vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)’:
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx:203: warning:
ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx: In
constructor ‘vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)’:
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx:203: warning:
ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx: In
constructor ‘vigra::PngDecoderImpl::PngDecoderImpl(const std::string&)’:
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx:203: warning:
ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx: In member
function ‘void vigra::PngEncoderImpl::finalize()’:
/home/yuv/src/hugin/src/foreign/vigra/vigra_impex/png.cxx:597: warning:
deprecated conversion from string constant to ‘char*’
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/tools/align_image_stack.cpp:44:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from /home/yuv/src/hugin/src/tools/autooptimiser.cpp:43:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from /home/yuv/src/hugin/src/tools/tca_correct.cpp:50:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.h:28,
from /home/yuv/src/hugin/src/tools/vig_optimize.cpp:40:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from
/home/yuv/src/hugin/src/deghosting/hugin_hdrmerge.cpp:45:
/home/yuv/src/hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h: In
function ‘bool readPGMHeader(FILE*, int&, int&, int&)’:
/home/yuv/src/hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:36:
warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:42:
warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:44:
warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/hugin_base/vigra_ext/ReduceOpenEXR.h:47:
warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’,
declared with attribute warn_unused_result
/home/yuv/src/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:50:1: warning:
"DEBUG_HEADER" redefined
In file included from /home/yuv/src/hugin/src/hugin1/common/utils.h:27,
from /home/yuv/src/hugin/src/hugin1/panoinc.h:70,
from
/home/yuv/src/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:39:
/home/yuv/src/hugin/src/hugin_base/hugin_utils/utils.h:62:1: warning:
this is the location of the previous definition
In file included from /home/yuv/src/hugin/src/hugin1/hugin/GLViewer.cpp:32:
/home/yuv/src/hugin/src/hugin1/hugin/GLRenderer.h:36:1: warning:
"DEBUG_HEADER" redefined
In file included from /home/yuv/src/hugin/src/hugin1/common/utils.h:27,
from /home/yuv/src/hugin/src/hugin1/panoinc.h:70,
from /home/yuv/src/hugin/src/hugin1/hugin/GLViewer.cpp:22:
/home/yuv/src/hugin/src/hugin_base/hugin_utils/utils.h:62:1: warning:
this is the location of the previous definition
In file included from
/home/yuv/src/hugin/src/hugin1/hugin/GLRenderer.cpp:41:
/home/yuv/src/hugin/src/hugin1/hugin/GLRenderer.h:36:1: warning:
"DEBUG_HEADER" redefined
In file included from /home/yuv/src/hugin/src/hugin1/common/utils.h:27,
from /home/yuv/src/hugin/src/hugin1/panoinc.h:70,
from
/home/yuv/src/hugin/src/hugin1/hugin/GLRenderer.cpp:36:
/home/yuv/src/hugin/src/hugin_base/hugin_utils/utils.h:62:1: warning:
this is the location of the previous definition
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.h:28,
from
/home/yuv/src/hugin/src/hugin1/PT/PhotometricOptimizer.h:27,
from
/home/yuv/src/hugin/src/hugin1/hugin/OptimizePhotometricPanel.cpp:34:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from /home/yuv/src/hugin/src/hugin1/PT/PTOptimise.h:30,
from
/home/yuv/src/hugin/src/hugin1/hugin/OptimizePanel.cpp:32:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOptimizer.h:180,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PhotometricOptimizer.h:28,
from
/home/yuv/src/hugin/src/hugin1/PT/PhotometricOptimizer.h:27,
from
/home/yuv/src/hugin/src/hugin1/hugin/AssistantPanel.cpp:41:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.3/ext/hash_set:64,
from /usr/include/boost/graph/adjacency_list.hpp:22,
from
/home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageGraph.h:34,
from /home/yuv/src/hugin/src/hugin1/PT/ImageGraph.h:27,
from
/home/yuv/src/hugin/src/hugin1/hugin/PreviewDragTool.cpp:29:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning
This file includes at least one deprecated or antiquated header which
may be removed without further notice at a future date. Please use a
non-deprecated interface with equivalent functionality instead. For a
listing of replacement headers and interfaces, consult the file
backward_warning.h. To disable this warning use -Wno-deprecated.
/home/yuv/src/hugin/src/hugin1/ptbatcher/PTBatcherGUI.cpp: In member
function ‘virtual wxChar* BatchIPCConnection::OnRequest(const wxString&,
const wxString&, int*, wxIPCFormat)’:
/home/yuv/src/hugin/src/hugin1/ptbatcher/PTBatcherGUI.cpp:407: warning:
deprecated conversion from string constant to ‘wxChar*’

Yuv

Lukáš Jirkovský

unread,
May 19, 2009, 4:40:59 AM5/19/09
to hugi...@googlegroups.com
2009/5/19 Yuval Levy <goo...@levy.ch>:
My idea is that it can be caused by some change in graphics drivers.
What graphics card do you use and which drivers? Maybe we will find
that it's caused by the specific driver.

Lukáš

Markku Kolkka

unread,
May 19, 2009, 5:55:20 AM5/19/09
to hugi...@googlegroups.com
Yuval Levy kirjoitti viestissään (lähetysaika tiistai, 19.
toukokuuta 2009):

> In file included from /usr/include/c++/4.3/ext/hash_set:64,
> from
> /usr/include/boost/graph/adjacency_list.hpp:22, from
> /home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/ImageG
>raph.h:34, from
> /home/yuv/src/hugin/src/hugin_base/algorithms/optimizer/PTOpti
>mizer.h:180, from
> /home/yuv/src/hugin/src/hugin1/PT/PTOptimise.h:30, from
> /home/yuv/src/hugin/src/hugin1/base_wx/MyProgressDialog.cpp:33
>: /usr/include/c++/4.3/backward/backward_warning.h:33:2:
> warning: #warning This file includes at least one deprecated
> or antiquated header which may be removed without further
> notice at a future date. Please use a non-deprecated interface
> with equivalent functionality instead. For a listing of
> replacement headers and interfaces, consult the file
> backward_warning.h. To disable this warning use
> -Wno-deprecated.

The Boost library installed in your system uses the deprecated
SGI hash_set container when it should use the TR1 unordered_set
container. A bug report has been filed:
https://bugs.launchpad.net/ubuntu/+source/boost/+bug/270873

> In file included from
> /home/yuv/src/hugin/src/foreign/levmar/misc.c:42:
> /home/yuv/src/hugin/src/foreign/levmar/misc_core.c:566:2:
> warning: #warning LAPACK not available, LU will be used for
> matrix inversion when computing the covariance; this might be
> unstable at times

Install the LAPACK development package (liblapack-dev in
Debian/Ubuntu) and edit the includes and Makefile to define
HAVE_LAPACK and the library paths. Or ignore if you don't want
to add another external library dependency.

> /home/yuv/src/hugin/src/hugin_base/panotools/PanoToolsInterfac


>e.cpp: In function ‘void
> HuginBase::PTools::setDestImage(Image&, vigra::Diff2D,
> unsigned char*, const
> HuginBase::PanoramaOptions::ProjectionFormat&, const
> std::vector<double, std::allocator<double> >&, double)’:
> /home/yuv/src/hugin/src/hugin_base/panotools/PanoToolsInterfac
>e.cpp:548: warning: deprecated conversion from string constant
> to ‘char*’

Probably PrintError() should take a const char* parameter instead
of a char *. I can't find it from the Doxygen documentation,
where is it declared/defined?

> /home/yuv/src/hugin/src/celeste/svm.cpp: In
> function ‘svm_model* svm_load_model(const char*)’:
> /home/yuv/src/hugin/src/celeste/svm.cpp:2759: warning:
> ignoring return value of ‘int fscanf(FILE*, const char*,
> ...)’, declared with attribute warn_unused_result

(repeated similar warnings omitted)

Missing error checks. Should be fixed to improve robustness of
the code.

> /home/yuv/src/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:50:1:
> warning: "DEBUG_HEADER" redefined
> In file included from
> /home/yuv/src/hugin/src/hugin1/common/utils.h:27, from
> /home/yuv/src/hugin/src/hugin1/panoinc.h:70, from
> /home/yuv/src/hugin/src/hugin1/hugin/GLPreviewFrame.cpp:39:
> /home/yuv/src/hugin/src/hugin_base/hugin_utils/utils.h:62:1:
> warning: this is the location of the previous definition

Add "#undef DEBUG_HEADER" before the redefinition.

> /home/yuv/src/hugin/src/hugin1/ptbatcher/PTBatcherGUI.cpp: In
> member function ‘virtual wxChar*
> BatchIPCConnection::OnRequest(const wxString&, const
> wxString&, int*, wxIPCFormat)’:
> /home/yuv/src/hugin/src/hugin1/ptbatcher/PTBatcherGUI.cpp:407:
> warning: deprecated conversion from string constant to
> ‘wxChar*’

Another case of passing a literal string (const char *) when a
non-const char pointer is expected.

--
Markku Kolkka
markku...@iki.fi

Yuval Levy

unread,
May 19, 2009, 8:04:50 AM5/19/09
to hugi...@googlegroups.com
Lukáš Jirkovský wrote:
> My idea is that it can be caused by some change in graphics drivers.
> What graphics card do you use and which drivers? Maybe we will find
> that it's caused by the specific driver.

I get the same warning on both machines. The notebook has Intel chipset
(GMA950) and the desktop has nVidia chipset (6150).

Yuv

Yuval Levy

unread,
May 19, 2009, 8:10:17 AM5/19/09
to hugi...@googlegroups.com
thanks. a lot of very valuable input to work on.
Yuv

Bruno Postle

unread,
May 19, 2009, 8:24:11 AM5/19/09
to Hugin ptx
On Mon 18-May-2009 at 20:14 -0400, Yuval Levy wrote:

>the previous report was from my notebook (32bit Ubuntu 9.04) for SVN3860.
>
>I now built the same SVN3860 on my desktop (64bit Ubuntu 9.04) and
>everything works fine.

This suggests it is either a 32/64bit problem or a difference in
OpenGL capabilities between the two machines. The current trunk is
ok for me on i386.

>My conclusion out of this observation is that something has changed in
>the system / libraries - not in Hugin's codebase. But what is it and how
>do we deal with this?

First you need to exclude one of the many recent OpenGL related
hugin changes. If you roll-back a couple of months (e.g to 3705)
does it still segfault?

>Another thing that I noticed, on both systems, there are many many more
>warnings than a few weeks ago. Maybe somebody can make sense out of them:

These warnings should be dealt with, but they are all problems that
have existed for a long time.

--
Bruno

Yuval Levy

unread,
May 19, 2009, 8:59:04 AM5/19/09
to hugi...@googlegroups.com
Bruno Postle wrote:
> First you need to exclude one of the many recent OpenGL related
> hugin changes. If you roll-back a couple of months (e.g to 3705)
> does it still segfault?

no. it built and started perfectly on the notebook where current trunk
segfaults.

I guess next step is to try and build multiple version in between 3705
and now until I find the commit that is segfaulting.

Got to run now, will take the notebook with me and try that sometimes later.

Yuv

Yuv

unread,
May 19, 2009, 10:38:31 AM5/19/09
to hugin and other free panoramic software
Yuval Levy wrote:
> I guess next step is to try and build multiple version in between 3705
> and now until I find the commit that is segfaulting.

http://hugin.svn.sourceforge.net/viewvc/hugin?view=rev&revision=3839

3838 works, 3839 segfaults

Yuv

Bruno Postle

unread,
May 20, 2009, 1:40:56 PM5/20/09
to Hugin ptx
On Tue 19-May-2009 at 07:38 -0700, Yuv wrote:
>> I guess next step is to try and build multiple version in between 3705
>> and now until I find the commit that is segfaulting.

>3838 works, 3839 segfaults

I know Guido says he needs to fix this code, but since you have the
hardware that fails, it would be very useful if you can figure-out
which bit of this commit causes the segfault.

--
Bruno

Yuval Levy

unread,
May 20, 2009, 2:48:31 PM5/20/09
to hugi...@googlegroups.com

I started to look into that commit and there is quite a bunch of "bits".
The bad news is that I'm unlikely to have time in the coming week. The
good news is that I intend to take that laptop with me on our four weeks
holiday. I'll have a look as soon as I can.

Yuv

Yuv

unread,
May 30, 2009, 5:56:14 PM5/30/09
to hugin and other free panoramic software
Yuval Levy wrote:
> Bruno Postle wrote:
> > On Tue 19-May-2009 at 07:38 -0700, Yuv wrote:
> >> 3838 works, 3839 segfaults
> >
> > I know Guido says he needs to fix this code, but since you have the
> > hardware that fails, it would be very useful if you can figure-out
> > which bit of this commit causes the segfault.
>
> holiday. I'll have a look as soon as I can.

good news

rainy day. I had a little time to test the latest trunk. SVN3899 no
longer segfaults

Yuv
Reply all
Reply to author
Forward
0 new messages