Bug 118190 - /usr/ports/graphics/hugin core dumps on start
Summary: /usr/ports/graphics/hugin core dumps on start
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Vasil Dimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-21 20:40 UTC by Warren Block
Modified: 2007-12-12 15:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Warren Block 2007-11-21 20:40:01 UTC
paddy% hugin
Panorama obj created
/usr/local/share/locale
hugin in free(): error: modified (page-) pointer
Abort
paddy%

Same results on both 6.2-STABLE as of Sep 9 and 6.3-PRERELEASE as of Nov 11.

How-To-Repeat: Attempt to run hugin.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-11-21 20:40:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vd

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Vasil Dimov freebsd_committer freebsd_triage 2007-11-22 15:46:09 UTC
State Changed
From-To: open->feedback

Warren, I cannot repeat your crash - hugin works here on my 
6-STABLE machine. 

Can you run via gdb and obtain backtrace? 
Or update your ports tree and do portupgrade -Rf hugin
Comment 3 Vasil Dimov freebsd_committer freebsd_triage 2007-11-22 18:59:45 UTC
On Thu, Nov 22, 2007 at 09:53:10 -0700, Warren Block wrote:
> On Thu, 22 Nov 2007, vd@FreeBSD.org wrote:
> 
>> Synopsis: /usr/ports/graphics/hugin core dumps on start
>> 
>> State-Changed-From-To: open->feedback
>> State-Changed-By: vd
>> State-Changed-When: Thu Nov 22 15:46:09 UTC 2007
>> State-Changed-Why:
>> Warren, I cannot repeat your crash - hugin works here on my
>> 6-STABLE machine.
>> 
>> Can you run via gdb and obtain backtrace?
> 
> I don't really know if this is the right way to do that, but I added 
> CFLAGS+= -g3 to the port Makefile, rebuilt, then ran the unstripped binary 
> from the work directory.  (Suggestions on the right/easy way to do that 
> would be welcome.  Port debugging is something that ought to be in the 
> Porter's Handbook, but isn't.)

Yes, this is it. You could have skipped editing the Makefile if you set
CFLAGS in the environment or execute "make CFLAGS=...". Also -g3 is
usually not necessary, -g should be enough.

> (gdb) bt
> #1  0x2975b236 in raise () from /lib/libpthread.so.2
> #2  0x29836130 in abort () from /lib/libc.so.6
> #3  0x297d2e2b in _UTF8_init () from /lib/libc.so.6
> #4  0xbfbfec60 in ?? ()
> #5  0x2983d40f in sys_nsig () from /lib/libc.so.6
> #6  0x2983d30f in sys_nsig () from /lib/libc.so.6
> #7  0x2983d383 in sys_nsig () from /lib/libc.so.6
> #8  0x00000000 in ?? ()
> #9  0x29849720 in ?? () from /lib/libc.so.6
> #10 0xbfbfd8c8 in ?? ()
> #11 0x297d2e59 in _UTF8_init () from /lib/libc.so.6
> #12 0x29849720 in ?? () from /lib/libc.so.6
> #13 0x2985ec84 in _nsyyin () from /lib/libc.so.6
> #14 0xbfbfd978 in ?? ()
> #15 0x297d3bb9 in _UTF8_init () from /lib/libc.so.6
> #16 0x08a90ef4 in ?? ()
> #17 0x00000002 in ?? ()
> #18 0x00000002 in ?? ()
> #19 0x08831a80 in ?? ()
> #20 0x08a90ef4 in ?? ()
> #21 0x29008904 in ?? () from /usr/local/lib/libgtk-x11-2.0.so.0
> #22 0x00000000 in ?? ()
[...]

Looks a little bit weird but I would first try

portupgrade -f /var/db/pkg/gtk-2.WHATEVERVERSION

>> Or update your ports tree and do portupgrade -Rf hugin
> 
> Started just now, but it'll take a while.

Good luck! :)

-- 
Vasil Dimov
moc.elcaro@vomid.lisav        Software Developer @ Oracle/Innobase Oy
gro.DSBeerF@dv                Committer @ FreeBSD.org
gro.d5v@dv                    Home @ Sofia, Bulgaria
Comment 4 Vasil Dimov freebsd_committer freebsd_triage 2007-11-22 19:05:47 UTC
On Thu, Nov 22, 2007 at 18:32:03 +0100, Henrik Gulbrandsen wrote:
> For what it's worth, a quick look at the graphics/hugin Makefile
> revealed what I suspected. There is a USE_WX=2.6 definition there, so
> given that your ports tree is reasonably up-to-date, my guess would be
> that you're experiencing the same problem I had with audio/audacity:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=118202
> 
> Try applying the patches to x11-toolkits/wxgtk26 and see if it helps!
> At the very least, it's worth a try! :-)

Here is what I have installed (and hugin does not crash at startup):

/var/db/pkg# ls -d1 wx* gtk*
gtk-1.2.10_18
gtk-2.12.1_1
gtk-engines2-2.12.2
wxgtk2-2.6.3_4
wxgtk2-common-2.6.3_3

/var/db/pkg# pkg_info -r hugin-0.6.1_2/
Information for hugin-0.6.1_2:

Depends on:
Dependency: xineramaproto-1.1.2
Dependency: xf86vidmodeproto-2.2.2
Dependency: xf86miscproto-0.9.2
Dependency: xf86dgaproto-2.0.3
Dependency: xextproto-7.0.2
Dependency: xbitmaps-1.0.1
Dependency: videoproto-2.2.2
Dependency: scrnsaverproto-1.1.0
Dependency: renderproto-0.9.3
Dependency: recordproto-1.13.2
Dependency: randrproto-1.2.1
Dependency: printproto-1.0.3
Dependency: kbproto-1.0.3
Dependency: inputproto-1.4.2.1
Dependency: fixesproto-4.0
Dependency: damageproto-1.1.0_2
Dependency: compositeproto-0.4
Dependency: fontsproto-2.0.2
Dependency: fontcacheproto-0.1.2
Dependency: font-util-1.0.1
Dependency: expat-2.0.0_1
Dependency: hicolor-icon-theme-0.10_2
Dependency: fftw-2.1.5_4
Dependency: perl-5.8.8_1
Dependency: javavmwrapper-2.3
Dependency: png-1.2.22
Dependency: libdrm-2.3.0
Dependency: jpeg-6b_4
Dependency: tiff-3.8.2_1
Dependency: pkg-config-0.22_1
Dependency: xtrans-1.0.4
Dependency: xproto-7.0.10_1
Dependency: diablo-jdk-1.5.0.07.01_8
Dependency: pixman-0.9.6
Dependency: mkfontdir-1.0.3
Dependency: libfontenc-1.0.4
Dependency: libXdmcp-1.0.2
Dependency: libXau-1.0.3_2
Dependency: libX11-1.1.3,1
Dependency: libxkbfile-1.0.4
Dependency: liboldX-1.0.1
Dependency: libXrender-0.9.4
Dependency: libXfixes-4.0.3
Dependency: libXext-1.0.3,1
Dependency: libdmx-1.0.2
Dependency: libXxf86vm-1.0.1
Dependency: libXxf86misc-1.0.1
Dependency: libXxf86dga-1.0.2
Dependency: libXv-1.0.3,1
Dependency: libXvMC-1.0.4
Dependency: libXtst-1.0.3
Dependency: libXres-1.0.3_2
Dependency: libXrandr-1.2.2
Dependency: libXp-1.0.0,1
Dependency: libXinerama-1.0.2,1
Dependency: libXi-1.1.3,1
Dependency: libXfontcache-1.0.4
Dependency: libXevie-1.0.2
Dependency: libXdamage-1.1.1
Dependency: libXcursor-1.1.9
Dependency: libXcomposite-0.4.0,1
Dependency: libXScrnSaver-1.1.2
Dependency: libICE-1.0.4,1
Dependency: libSM-1.0.3,1
Dependency: libXt-1.0.5
Dependency: trapproto-3.4.3
Dependency: libxkbui-1.0.2
Dependency: libXprintUtil-1.0.1
Dependency: libXprintAppUtil-1.0.1
Dependency: libXpm-3.5.7
Dependency: libXmu-1.0.3,1
Dependency: libXaw-1.0.4,1
Dependency: libXTrap-1.0.0
Dependency: libGL-7.0.1
Dependency: libFS-1.0.0
Dependency: freetype2-2.3.5
Dependency: mkfontscale-1.0.3
Dependency: libXfont-1.3.1_1,1
Dependency: fontconfig-2.4.2_2,1
Dependency: libXft-2.1.12
Dependency: xorg-libraries-7.3_1
Dependency: libGLU-7.0.1
Dependency: font-misc-meltho-1.0.0_1
Dependency: font-misc-ethiopic-1.0.0
Dependency: font-bh-ttf-1.0.0
Dependency: encodings-1.0.2,1
Dependency: cairo-1.4.10_1
Dependency: bitstream-vera-1.10_4
Dependency: xorg-fonts-truetype-7.3
Dependency: pcre-7.4
Dependency: icu-3.6
Dependency: boost-1.34.1
Dependency: libiconv-1.11_1
Dependency: libxml2-2.6.30
Dependency: gettext-0.16.1_3
Dependency: glib-2.14.2
Dependency: shared-mime-info-0.22_1
Dependency: pango-1.18.3
Dependency: libmspack-0.0.20040308_3
Dependency: atk-1.20.0
Dependency: gtk-2.12.1_1
Dependency: wxgtk2-common-2.6.3_3
Dependency: wxgtk2-2.6.3_4
Dependency: libpano12-2.8.6_1

/var/db/pkg# 

FreeBSD 6.2-STABLE #3: Mon Sep 24 18:48:50 EEST 2007 i386

-- 
Vasil Dimov
moc.elcaro@vomid.lisav        Software Developer @ Oracle/Innobase Oy
gro.DSBeerF@dv                Committer @ FreeBSD.org
gro.d5v@dv                    Home @ Sofia, Bulgaria
Comment 5 Warren Block 2007-11-22 21:37:11 UTC
On Thu, 22 Nov 2007, Henrik Gulbrandsen wrote:

> For what it's worth, a quick look at the graphics/hugin Makefile
> revealed what I suspected. There is a USE_WX=2.6 definition there, so
> given that your ports tree is reasonably up-to-date, my guess would be
> that you're experiencing the same problem I had with audio/audacity:
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=118202
>
> Try applying the patches to x11-toolkits/wxgtk26 and see if it helps!
> At the very least, it's worth a try! :-)

portupgrade -Rf hugin does not solve the problem, although it depends on 
so many things that it refreshes a lot of ports.

Rebuilding just x11-toolkits/wxgtk26 with those two patches lets hugin 
run on both systems.  Nice catch!

-Warren Block * Rapid City, South Dakota USA
Comment 6 Vasil Dimov freebsd_committer freebsd_triage 2007-12-12 15:18:44 UTC
State Changed
From-To: feedback->closed

This must have been fixed with ports/118202. 
It turned out not to be hugin specific problem.