aMSN Forums
July 18, 2018, 09:28:25 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: [SOLVED] corrupted png -> crash with *glibc double free..  (Read 81682 times)
blommethomas
Newbie

Offline Offline

Posts: 7


View Profile
« on: June 15, 2006, 08:51:22 pm »

Every time I try to login on my thomas user on amsn with blommethomas@gmail.com it quits unexpected. I don't get the problem as root and neither do I have it with another account. accessing msn using meebo and blommethomas@gmail.co mworks fine also. I supposed the problem lied in 1 of the files fro mblommethomas@gmail.com, but I updated all files in thomas/.amsn/ using files fro manother account and I still get the same error.

When running in terminal I get the following message:
Code:

libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Ignoring bad adaptive filter type
libpng warning: Extra compressed data.
libpng warning: Extra compression data
*** glibc detected *** double free or corruption (!prev): 0x08ad9af8 ***
Aborted
 


I searched for the error in gentoo forums and seems like it mostly happens after an update, so it is maybe good to know that I did emerge world and emerge sync recently and that I also replaced all old config files with new ones
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: June 16, 2006, 06:15:06 am »

Hi,
You might want to try recompiling amsn from source. If this doesn't fix it, try deleting your profile, or completly deleting the ~/.amsn folder (moving it as a backup would be a better idea), try again with that and tell me if it fixes it.
Logged

KaKaRoTo
blommethomas
Newbie

Offline Offline

Posts: 7


View Profile
« Reply #2 on: June 17, 2006, 04:20:04 pm »

http://amsn.sourceforge.net/forums/viewtopic.php?t=693&highlight=crash
These people had the smae problem, they fixed it by deleting the profile, which I did.  Rarely enough it works normally again now after the next startup, perhaps amsn used files that we're copied to another directory if you have already started it up?
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #3 on: June 17, 2006, 04:39:44 pm »

Well, if amsn is running, it keeps accessing some files from the profile directory or remembering some settings. In order to fully reset its settings, you need to close amsn before deleting ~/.amsn
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #4 on: June 17, 2006, 10:15:44 pm »

WAIT!
can you make a copy of your profile so we can try to reproduce the error with it and see what causes this issue ?
thanks
Logged

KaKaRoTo
blommethomas
Newbie

Offline Offline

Posts: 7


View Profile
« Reply #5 on: June 19, 2006, 07:35:49 pm »

hmm the problem keeps on returning.
The problem is this: in the displaypic/cache directory some image files are somehow wrong and if I browse to them, I see no preview, after I deleted them it works fine again.  Should I mail a picture if a see a corrupt one again?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #6 on: June 19, 2006, 11:45:28 pm »

ok, thanks for letting us know the cause.
Yes please, if you could mail me the picture, that would be awesone.
Thanks.
Logged

KaKaRoTo
blommethomas
Newbie

Offline Offline

Posts: 7


View Profile
« Reply #7 on: June 24, 2006, 10:29:28 am »

can you give me your email I'm searching if I can find the picture back in trash now
Logged
blommethomas
Newbie

Offline Offline

Posts: 7


View Profile
« Reply #8 on: June 24, 2006, 12:40:51 pm »

I tried to put it on imageshack but I get an error:
http://img100.imageshack.us/img100/1881/2317d6b29336c4267715c417a49317.png[/url]
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #9 on: June 28, 2006, 02:53:05 am »

Hi blommethomas,
Try this file : http://cache.gmane.org//gmane/network/instant-messaging/amsn/devel/5774-001.bin
it's actually a patch, so rename it to .patch and patch your local copy of amsn, then delete the folders amsn/utils/TkCximage/src/zlib, amsn/utils/TkCximage/src/png and amsn/utils/TkCximage/src/jpeg
Then relaunch ./configure
make, then retry, you should make sure you have libpng installed on your system... the latest version is recommended..
look here for more info :
http://comments.gmane.org/gmane.network.instant-messaging.amsn.devel/5749
especially this post and subsequent ones :
http://permalink.gmane.org/gmane.network.instant-messaging.amsn.devel/5768

tell me if it fixes your issue.
Logged

KaKaRoTo
ChrisRX
Newbie

Offline Offline

Posts: 10


View Profile
« Reply #10 on: July 13, 2006, 07:34:31 pm »

I've also been getting the same problems and it's really annoying.  Every time it crashes I have to go into the displaypic cache directory and delete the broken displaypic.

I've uploaded the most recent corrupt display pic here, but as I've never seen in I'm not sure what the content is.
http://img161.imageshack.us/img161/6531/640344942493f6c4271484e6156463.png

I don't know how to apply patches to source code, so I don't know if the above patch would make any difference
Logged
ChrisRX
Newbie

Offline Offline

Posts: 10


View Profile
« Reply #11 on: July 14, 2006, 03:56:59 pm »

Hi, sorry to bump this thread but I realised that my lack of knowledge about patching is irelevant because I get a 404 while trying to download that patch anyway.  Is there any chance you could upload some pre-patched files.
This crash has happened 4 times since my last message so it is really starting to annoy me now.  I have some more corrupt display pics if you need me to upload them to diagnose the problem.
I'm running gentoo linux with libpng-1.2.12-r1
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #12 on: July 14, 2006, 10:24:08 pm »

Hi Chris, thanks for answering and providing the image.. it looks like the image is corrupted and has blanks in the *middle* of it...
what the patch does is simply make sure amsn uses your system's libpng instead of the one shipped with amsn... here is a paste of the patch (I also can't access anymore the link I gave) :
Code:

diff -ur amsn~/Makefile.in amsn/Makefile.in
--- amsn~/Makefile.in   2006-04-28 00:10:17.000000000 +0200
+++ amsn/Makefile.in    2006-05-20 10:37:16.000000000 +0200
@@ -50,7 +50,7 @@
 LFS_FLAGS      := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
 LIB_FLAGS      := -I. -I$(capture_dir) -I$(capture_dir)/libng -I$(capture_dir)/structs
 LIB_FLAGS      += -I$(webcamsn_dir)/src -I$(tkcximage_dir)/src -I$(tkcximage_dir)/src/CxImage
-LIB_FLAGS      += -I$(tkcximage_dir)/src/zlib -I$(tkcximage_dir)/src/png -I$(tkcximage_dir)/src/jpeg
+LIB_FLAGS      += -Ipng -Ijpeg
 LIBDIR         := @LIBDIR@
 
 
@@ -100,7 +100,7 @@
 CXXFLAGS += -fPIC
 
 # libraries
-LDLIBS  := @LDLIBS@
+LDLIBS  := @LDLIBS@ -lpng -ljpeg
 LDFLAGS := @LDFLAGS@
 ifeq (@DEBUG@,no)
 LDFLAGS += -s
@@ -224,9 +224,6 @@
 include $(tkcximage_dir)/Rules.mk
 include $(tkcximage_dir)/src/Rules.mk
 include $(tkcximage_dir)/src/CxImage/Rules.mk
-include $(tkcximage_dir)/src/zlib/Rules.mk
-include $(tkcximage_dir)/src/png/Rules.mk
-include $(tkcximage_dir)/src/jpeg/Rules.mk
 include $(tkcximage_dir)/src/Rules.mk
 
 include $(webcamsn_dir)/Rules.mk
diff -ur amsn~/utils/TkCximage/src/CxImage/ximajpg.cpp amsn/utils/TkCximage/src/CxImage/ximajpg.cpp
--- amsn~/utils/TkCximage/src/CxImage/ximajpg.cpp       2006-04-13 15:22:27.000000000 +0200
+++ amsn/utils/TkCximage/src/CxImage/ximajpg.cpp        2006-05-18 23:03:20.000000000 +0200
@@ -9,7 +9,7 @@
 
 #if CXIMAGE_SUPPORT_JPG
 
-#include "../jpeg/jmorecfg.h"
+#include <jmorecfg.h>
 
 #include "ximaiter.h"
                   
diff -ur amsn~/utils/TkCximage/src/CxImage/ximajpg.h amsn/utils/TkCximage/src/CxImage/ximajpg.h
--- amsn~/utils/TkCximage/src/CxImage/ximajpg.h 2006-04-13 15:22:27.000000000 +0200
+++ amsn/utils/TkCximage/src/CxImage/ximajpg.h  2006-05-19 10:12:38.000000000 +0200
@@ -29,8 +29,8 @@
 #define CXIMAGEJPG_SUPPORT_EXIF 1
 
 extern "C" {
- #include "../jpeg/jpeglib.h"
- #include "../jpeg/jerror.h"
+ #include <jpeglib.h>
+ #include <jerror.h>
 }
 
 class DLL_EXP CxImageJPG: public CxImage
diff -ur amsn~/utils/TkCximage/src/CxImage/ximapng.h amsn/utils/TkCximage/src/CxImage/ximapng.h
--- amsn~/utils/TkCximage/src/CxImage/ximapng.h 2006-04-13 15:22:27.000000000 +0200
+++ amsn/utils/TkCximage/src/CxImage/ximapng.h  2006-05-18 23:04:57.000000000 +0200
@@ -22,7 +22,7 @@
 #if CXIMAGE_SUPPORT_PNG
 
 extern "C" {
-#include "../png/png.h"
+#include <png.h>
 }
 
 long int inline btohl( long int dword ) {
diff -ur amsn~/utils/TkCximage/src/Rules.mk amsn/utils/TkCximage/src/Rules.mk
--- amsn~/utils/TkCximage/src/Rules.mk  2006-02-02 22:08:21.000000000 +0100
+++ amsn/utils/TkCximage/src/Rules.mk   2006-05-19 09:57:03.000000000 +0200
@@ -1,7 +1,5 @@
 OBJS-TkCximage := $(tkcximage_dir)/src/TkCximage.cpp.o $(tkcximage_dir)/src/PhotoFormat.cpp.o \
-                 $(tkcximage_dir)/src/procs.cpp.o $(tkcximage_dir)/src/CxImage/libCxImage.a \
-                $(tkcximage_dir)/src/jpeg/libjpeg.a $(tkcximage_dir)/src/png/libpng.a \
-                $(tkcximage_dir)/src/zlib/libzlib.a
+                 $(tkcximage_dir)/src/procs.cpp.o $(tkcximage_dir)/src/CxImage/libCxImage.a
 ifeq ($(STATIC),yes)
 OBJS-TkCximage += libstdc++.a
 endif

paste that into a file and use the 'patch' command to patch your files, it should be as simple as :
Code:
patch -p0 < the_diff_file

or maybe -p1...
don't forget you have to do it on the source package of amsn, and you need to recompile amsn after that with
Code:
./configure && make && make install
before you can see a change.

good luck, tell me the results.
Logged

KaKaRoTo
amsn_fan
Newbie

Offline Offline

Posts: 38


View Profile
« Reply #13 on: July 14, 2006, 10:40:52 pm »

Im trying to apply your patch but I get this problem:

Quote

george@linux:~/msn_cvs3/svn_140706_rev7053/amsn/amsn> patch -p1 < patch.patch
patching file Makefile.in
Hunk #1 FAILED at 50.
Hunk #2 FAILED at 100.
Hunk #3 FAILED at 224.
3 out of 3 hunks FAILED -- saving rejects to file Makefile.in.rej
patching file utils/TkCximage/src/CxImage/ximajpg.cpp
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n] y
Hunk #1 FAILED at 9.
1 out of 1 hunk FAILED -- saving rejects to file utils/TkCximage/src/CxImage/ximajpg.cpp.rej
patching file utils/TkCximage/src/CxImage/ximajpg.h
Reversed (or previously applied) patch detected!  Assume -R? [n]
Logged
ChrisRX
Newbie

Offline Offline

Posts: 10


View Profile
« Reply #14 on: July 15, 2006, 02:01:47 am »

I get an error while trying to patch too.  I'm patching against the 0.96-rc1 code, should I be patching against 0.95 stable?
Code:
patching file amsn/Makefile.in
Hunk #1 FAILED at 50.
1 out of 3 hunks FAILED -- saving rejects to file amsn/Makefile.in.rej
patching file amsn/utils/TkCximage/src/CxImage/ximajpg.cpp
Hunk #1 succeeded at 9 with fuzz 1.
patching file amsn/utils/TkCximage/src/CxImage/ximajpg.h
patching file amsn/utils/TkCximage/src/CxImage/ximapng.h
patching file amsn/utils/TkCximage/src/Rules.mk
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file amsn/utils/TkCximage/src/Rules.mk.rej
Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!