[Digikam-devel] Crash when using CIMG image resizing in Digikam SVN

Thorsten Schnebeck thorsten.schnebeck at gmx.net
Fri Mar 30 20:10:53 BST 2007


Am Freitag 30 März 2007 schrieb Gilles Caulier:
> Ok,
>
> Try again. Checkout all, and important, cleanup all before to recompile
> digiKam.
>
> Gilles


Hmm, I'm on SVN Revision  648163
Before compliling I made a make distclean. Crash stays:

digikam: Final inpainting started...
[New Thread -1361941616 (LWP 9884)]
digikam: GreycstorationIface::Initialization...
digikam: GreycstorationIface::Process Computation...
[New Thread -1248048240 (LWP 9885)]
[New Thread -1421657200 (LWP 9886)]
[Thread -1421657200 (LWP 9886) exited]
[Thread -1248048240 (LWP 9885) exited]
[New Thread -1430049904 (LWP 9891)]
[New Thread -1438442608 (LWP 9892)]
[Thread -1438442608 (LWP 9892) exited]
[Thread -1430049904 (LWP 9891) exited]
[New Thread -1446835312 (LWP 9897)]
[New Thread -1455228016 (LWP 9898)]
[Thread -1455228016 (LWP 9898) exited]
[Thread -1446835312 (LWP 9897) exited]
[New Thread -1463620720 (LWP 9907)]
[New Thread -1472013424 (LWP 9908)]
[Thread -1472013424 (LWP 9908) exited]
[Thread -1463620720 (LWP 9907) exited]
[New Thread -1480406128 (LWP 9913)]
[New Thread -1488798832 (LWP 9914)]
[Thread -1488798832 (LWP 9914) exited]
[Thread -1480406128 (LWP 9913) exited]
[New Thread -1497191536 (LWP 9917)]
[New Thread -1505584240 (LWP 9918)]
[Thread -1505584240 (LWP 9918) exited]
[Thread -1497191536 (LWP 9917) exited]
[New Thread -1513976944 (LWP 9923)]
[New Thread -1522369648 (LWP 9924)]
[Thread -1522369648 (LWP 9924) exited]
[Thread -1513976944 (LWP 9923) exited]
[New Thread -1530762352 (LWP 9927)]
[New Thread -1539155056 (LWP 9928)]
[Thread -1539155056 (LWP 9928) exited]
[Thread -1530762352 (LWP 9927) exited]
[New Thread -1547547760 (LWP 9931)]
[New Thread -1555940464 (LWP 9932)]
[Thread -1555940464 (LWP 9932) exited]
[Thread -1547547760 (LWP 9931) exited]
[New Thread -1564333168 (LWP 9937)]
[New Thread -1572725872 (LWP 9938)]
[Thread -1572725872 (LWP 9938) exited]
[Thread -1564333168 (LWP 9937) exited]
[New Thread -1581118576 (LWP 9941)]
[New Thread -1589511280 (LWP 9942)]
[Thread -1589511280 (LWP 9942) exited]
[Thread -1581118576 (LWP 9941) exited]
[New Thread -1597903984 (LWP 10010)]
[New Thread -1606296688 (LWP 10011)]
[Thread -1606296688 (LWP 10011) exited]
[Thread -1597903984 (LWP 10010) exited]
[New Thread -1614689392 (LWP 10016)]
[New Thread -1623082096 (LWP 10017)]
[Thread -1623082096 (LWP 10017) exited]
[Thread -1614689392 (LWP 10016) exited]
[New Thread -1631474800 (LWP 10020)]
[New Thread -1639867504 (LWP 10021)]
[Thread -1639867504 (LWP 10021) exited]
[Thread -1631474800 (LWP 10020) exited]
[New Thread -1648260208 (LWP 10024)]
[New Thread -1656652912 (LWP 10025)]
[Thread -1656652912 (LWP 10025) exited]
[Thread -1648260208 (LWP 10024) exited]
[New Thread -1665045616 (LWP 10047)]
[New Thread -1673438320 (LWP 10048)]
[Thread -1673438320 (LWP 10048) exited]
[Thread -1665045616 (LWP 10047) exited]
[New Thread -1681831024 (LWP 10051)]
[New Thread -1690223728 (LWP 10052)]
[Thread -1690223728 (LWP 10052) exited]
[Thread -1681831024 (LWP 10051) exited]
[New Thread -1698616432 (LWP 10081)]
[New Thread -1707009136 (LWP 10082)]
[Thread -1707009136 (LWP 10082) exited]
[New Thread -1715401840 (LWP 10093)]
[New Thread -1723794544 (LWP 10094)]
[Thread -1698616432 (LWP 10081) exited]
[Thread -1723794544 (LWP 10094) exited]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1715401840 (LWP 10093)]
0xb7dfad00 in cimg_library::CImg<float>::greycstoration_thread (arg=0x8de50b8) 
at greycstoration.h:145
145               for (unsigned int x=0; x<source.width && !*(p.stop_request); 
x+=p.tile)
(gdb) bt
#0  0xb7dfad00 in cimg_library::CImg<float>::greycstoration_thread 
(arg=0x8de50b8) at greycstoration.h:145
#1  0xb5ea54bb in start_thread () from /lib/libpthread.so.0
#2  0xb5c6276e in clone () from /lib/libc.so.6

It crashed valgrind, too:

digikam: Final inpainting started...
digikam: GreycstorationIface::Initialization...
digikam: GreycstorationIface::Process Computation...
==10297==
==10297== Thread 5:
==10297== Invalid read of size 4
==10297==    at 0x1BBF3044: cimg_library::CImg<float>::is_empty() const 
(CImg.h:6840)
==10297==  Address 0x2718103C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF304B: cimg_library::CImg<float>::is_empty() const 
(CImg.h:6840)
==10297==  Address 0x27181028 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF3051: cimg_library::CImg<float>::is_empty() const 
(CImg.h:6840)
==10297==  Address 0x2718102C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF3058: cimg_library::CImg<float>::is_empty() const 
(CImg.h:6840)
==10297==  Address 0x27181030 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF3066: cimg_library::CImg<float>::is_empty() const 
(CImg.h:6840)
==10297==  Address 0x27181034 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF29C4: cimg_library::CImg<float>::dimx() const 
(CImg.h:6755)
==10297==  Address 0x27181028 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF29D4: cimg_library::CImg<float>::dimy() const 
(CImg.h:6763)
==10297==  Address 0x2718102C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF33B4: cimg_library::CImg<float>::dimz() const 
(CImg.h:6771)
==10297==  Address 0x27181030 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF33C4: cimg_library::CImg<float>::dimv() const 
(CImg.h:6779)
==10297==  Address 0x27181034 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBFF111: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11287)
==10297==  Address 0x27181028 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBFF144: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11288)
==10297==  Address 0x2718102C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBFF181: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11289)
==10297==  Address 0x27181030 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF2C12: cimg_library::CImg<float>::offset(int, int, int, 
int) const (CImg.h:6861)
==10297==  Address 0x27181028 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF2C14: cimg_library::CImg<float>::offset(int, int, int, 
int) const (CImg.h:6861)
==10297==  Address 0x2718102C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF2C2E: cimg_library::CImg<float>::offset(int, int, int, 
int) const (CImg.h:6861)
==10297==  Address 0x27181030 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBF31E2: cimg_library::CImg<float>::ptr(unsigned, unsigned, 
unsigned, unsigned) (CImg.h:6884)
==10297==  Address 0x2718103C is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid write of size 1
==10297==    at 0x1B90A7DD: memcpy (mac_replace_strmem.c:285)
==10297==    by 0x1BBFF397: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11296)
==10297==  Address 0x2A65444B is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid write of size 1
==10297==    at 0x1B90A7E4: memcpy (mac_replace_strmem.c:286)
==10297==    by 0x1BBFF397: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11296)
==10297==  Address 0x2A65444A is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid write of size 1
==10297==    at 0x1B90A7EB: memcpy (mac_replace_strmem.c:287)
==10297==    by 0x1BBFF397: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11296)
==10297==  Address 0x2A654449 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid write of size 1
==10297==    at 0x1B90A7F2: memcpy (mac_replace_strmem.c:288)
==10297==    by 0x1BBFF397: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11296)
==10297==  Address 0x2A654448 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 4
==10297==    at 0x1BBFF3AD: 
cimg_library::CImg<float>::draw_image(cimg_library::CImg<float> const&, int, 
int, int, int, float) (CImg.h:11296)
==10297==  Address 0x27181028 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Thread 6:
==10297== Invalid read of size 1
==10297==    at 0x1BC0C31C: cimg_library::CImg<float>& 
cimg_library::CImg<float>::blur_anisotropic<unsigned 
char>(cimg_library::CImg<unsigned char> const&, float, float, float, float, 
float, float, float, float, unsigned, bool, float) (CImg.h:14606)
==10297==  Address 0x1DD59170 is not stack'd, malloc'd or (recently) free'd
==10297==
==10297== Invalid read of size 1
==10297==    at 0x1BC0A557: cimg_library::CImg<float>& 
cimg_library::CImg<float>::blur_anisotropic<float>(cimg_library::CImg<float> 
const&, float, float, float, float, unsigned, bool) (CImg.h:14518)
==10297==  Address 0x1DD59170 is not stack'd, malloc'd or (recently) free'd
==10297== Stack overflow in thread 5: can't grow stack to 0x41F00004
--10297-- INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
--10297-- si_code=1 Fault EIP: 0xB0030A00; Faulting address: 0x41F00004
--10297--   esp=0xBAACADF0


valgrind: the `impossible' happened:
   Killed by fatal signal
Basic block ctr is approximately 4113339384
==10297==    at 0xB0030A00: swizzle (vg_malloc2.c:254)
==10297==    by 0xB0031720: unlinkBlock (vg_malloc2.c:938)
==10297==    by 0xB0031DEB: vgPlain_arena_free (vg_malloc2.c:1100)
==10297==    by 0xB0032949: vgPlain_cli_free (vg_malloc2.c:1400)
==10297==    by 0xB7C1B5B3: die_and_free_mem (mac_malloc_wrappers.c:113)
==10297==    by 0xB7C1B90A: vgSkin___builtin_vec_delete 
(mac_malloc_wrappers.c:320)
==10297==    by 0xB007C4F0: vgSkinInternal___builtin_vec_delete 
(vg_toolint.c:547)
==10297==    by 0xB00181EF: do_client_request (vg_scheduler.c:862)
==10297==    by 0xB0017D96: vgPlain_scheduler (vg_scheduler.c:746)
==10297==    by 0xB0095339: vgArch_thread_wrapper (core_os.c:69)
==10297==    by 0xB009296E: start_thread (syscalls.c:240)
==10297==    by 0xB0092450: ??? (syscall.S:104)

sched status:
  running_tid=5



More information about the Digikam-devel mailing list