[oi-dev] DKIM violationRe: Gimp and G++10 issue

Carsten Grzemba grzemba at contac-dt.de
Fri Jan 20 12:38:35 UTC 2023



Am 20.01.23 13:30 schrieb Klaus Ziegler  <klausz at haus-gisela.de>: 
> 
> 
>   
> 
> 
> 
>  
>  
>  
> 
> On 1/20/23 13:27, Carsten Grzemba via oi-dev wrote:
>  
>  
> >   
> > The current Gimp can't load image files format which support EXIF data.
> >  
> > 
> >  
> >  
> > eg the file-jpeg or file-png command crashs on current Gimp if it attempts to open a image file.
> >  
> > 
> >  
> >  
> > The crashing function is Exiv2::XmpProperties::nsInfoUnsafe
> >  
> > 
> >  
> >  
> > There is an old closed BUG 
> >  
> >  
> > ttps://github.com/Exiv2/exiv2/pull/959
> >  
> > 
> >  
> >  
> > The bug is related the Error class in throwing an exception.
> >  
> >  
> > The simple test source shows our problem:
> >  
> > 
> >  
> >  
> >  
> > // file: jens.cpp
> > // https://github.com/Exiv2/exiv2/issues/644#issuecomment-452472029 /*
> > Linux:
> > $ c++ -std=c++98 jens.cpp -I/usr/local/include -L/usr/local/lib -lexiv2 -o jens
> > $ ./jens
> > Caught error No namespace info available for XMP prefix `gnome'
> > http://www.gnome.org/xmp/
> > $
> > */ #include <exiv2/exiv2.hpp>
> > #include <iostream> int main(int argc, char *argv[])
> > { try { Exiv2::XmpProperties::ns("gnome"); } catch (Exiv2::Error &error) { std::cerr << "Caught error " << error.what() << "\n"; Exiv2::XmpProperties::registerNs("http://www.gnome.org/xmp"(http://www.gnome.org/xmp ), "gnome"); } std::cout << Exiv2::XmpProperties::ns("gnome") << std::endl;
> > }
> >  
> >  
> > If I test with exiv2
> >  
> > 
> >  
> >  
> > pkg://openindiana.org/image/library/exiv2@0.27.5-2020.0.1.0:20211030T093809Z
> >  
> > 
> >  
> >  
> > and compile the test source with g++ 7 it works:
> >  
> >  ./jens 
> >  Caught error No namespace info available for XMP prefix `gnome'
> >  http://www.gnome.org/xmp/
> >  
> >  
> >  
> > and if I compile the test source with g++ 10 it crashes:
> >  
> > 
> >  
> >  
> >  ./jens 
> >  terminate called after throwing an instance of 'Exiv2::BasicError<char>'
> >  what(): No namespace info available for XMP prefix `gnome'
> >  Abort (core dumped)
> >  
> >  
> > 
> >  
> >  
> > Anyone how have an idea what the problem here? 
> >  
> >  
> > 
> >  
> >  -- 
> >  
> > Carsten
> >  
> > <signatureafterquotedtext>
> >  </signatureafterquotedtext>
> >  
> >   
> > _______________________________________________
> > oi-dev mailing list
> > oi-dev at openindiana.org
> > https://openindiana.org/mailman/listinfo/oi-dev 
> >  
>  Hi Carsten,
>  try setting CFLAGS including -fcommon
>  Rgds
>  Klaus
> 
>    
> 

Hi Klaus, 

 
no difference 

 
$ /usr/gcc/10/bin/g++ -fcommon -g -o jens -l exiv2 jens.cpp 
grzemba at oi-sr ~/Tests $ ./jens 
terminate called after throwing an instance of 'Exiv2::BasicError<char>'
 what(): No namespace info available for XMP prefix `gnome'
Abort (core dumped)
  
For completeness the stack 

 
$ mdb ./jens core
Loading modules: [ libc.so.1 ld.so.1 ]
> $G
C++ symbol demangling enabled
> ::stack
libc.so.1`_lwp_kill+0xa()
libc.so.1`raise+0x1e(6)
libc.so.1`abort+0x58()
libstdc++.so.6.0.28`__gnu_cxx::__verbose_terminate_handler+0x65()
libstdc++.so.6.0.28`__cxxabiv1::__terminate+9()
0x7fffad7071d1()
0x7fffaec8155c()
libexiv2.so.0.27.5`Exiv2::XmpProperties::nsInfoUnsafe+0x15a()
libexiv2.so.0.27.5`Exiv2::XmpProperties::ns+0xf8()
main+0xbf()
_start_crt+0x87()
_start+0x18()

 

 
Carsten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/oi-dev/attachments/20230120/c30f35b5/attachment-0001.html>


More information about the oi-dev mailing list