aMule Forum
English => en_Bugs => Topic started by: jimbo on January 02, 2009, 01:20:48 PM
-
Hello,
I don't know if this issue is a bug, may be it can help some users :
I have compiled amule 2.2.3 under Debian Lenny 64 bit, amule required libupnp and if you compile amule with libupnp4 and libupnp4-dev amule crash when you try yo start him (no error message : fatal error ...). So I have unstalled libupnp4 and recompiled it with libupnp3 now amule works fine (2 days uptime). They are not error message when you compile amule with libupnp4 ! Under Lenny aptitude search libupnp return : ptitude search libupnp
p libupnp-dev - Portable SDK for UPnP Devices (development
i A libupnp3 - Portable SDK for UPnP Devices (shared libr
p libupnp3-dbg - debugging symbols for libupnp3
i libupnp3-dev - Portable SDK for UPnP Devices (development
c libupnp4 - Portable SDK for UPnP Devices (shared libr
p libupnp4-dbg - debugging symbols for libupnp4
p libupnp4-dev - Portable SDK for UPnP Devices (development
So I don't know how long and wich version will be keep.
-
amule required libupnp
You can configure it with --disable-upnp if you don't need UPnP.
-
Yes of course and when you compile : a message about libupnp and " with --disable-upnp" option appear if libupnp packet is mising. But I think is not a real issue with libupnp 3 or 4 :)
-
What message? With --disable-upnp it should build fine without libupnp, that's the idea.
-
yes, you obtain this message in the Terminal when "THE" ./configure is finished.
-
What message?
-
message return by "the ./configure"
-
The problem here is that aMule crashes with libupnp4, as far as I can see, not any message.
-
The problem here is that aMule crashes with libupnp4, as far as I can see, not any message.
Yes !!! please investigate ;D I don't want a solution just report a bug ;) no other error messages, only like this error : ----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMule 2.2.3 using wxGTK2 v2.8.8
Running on: Linux 2.6.27-9-generic x86_64
[2] wxString::~wxString() in amule [0x44a0ef]
[3] wxFatalSignalHandler in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da84822c]
[4] ?? in /lib/libpthread.so.0 [0x7fd6dbed40f0]
[5] wxColour::wxColour(unsigned char, unsigned char, unsigned char, unsigned char) in amule [0x55cc00]
[6] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x507fe8]
[7] wxDataObjectSimple::~wxDataObjectSimple() in amule [0x5086be]
[8] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da843ca9]
[9] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da844e84]
[10] wxEvtHandler::ProcessEvent(wxEvent&) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da844f77]
[11] wxTimerBase::Notify() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6dafc71d6]
[12] ?? in /usr/lib/libwx_gtk2u_core-2.8.so.0 [0x7fd6daece3cb]
[13] ?? in /usr/lib/libglib-2.0.so.0 [0x7fd6d74c44fb]
[14] g_main_context_dispatch in /usr/lib/libglib-2.0.so.0[0x7fd6d74c3d3b]
[15] ?? in /usr/lib/libglib-2.0.so.0 [0x7fd6d74c750d]
[16] g_main_loop_run in /usr/lib/libglib-2.0.so.0[0x7fd6d74c7a3d]
[17] gtk_main in /usr/lib/libgtk-x11-2.0.so.0[0x7fd6d93547a7]
[18] wxEventLoop::Run() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6daec5d18]
[19] wxAppBase::MainLoop() in /usr/lib/libwx_gtk2u_core-2.8.so.0[0x7fd6daf4ef4b]
[20] wxEntry(int&, wchar_t**) in /usr/lib/libwx_baseu-2.8.so.0[0x7fd6da7e973d]
[21] CryptoPP::IteratedHash<unsigned int, CryptoPP::EnumToType<CryptoPP::ByteOrder, 0>, 64u, CryptoPP::HashTransformation>::~IteratedHash() in amule [0x5032b2]
[22] __libc_start_main in /lib/libc.so.6[0x7fd6d9a31466]
[23] ?? in amule [0x4490f9]
-
Seems to me that it has nothing to do with libupnp. This crash is about cryptoPP.
Also, those debian names (libupnp3, libupnp4) tell us nothing about the real version of libupnp that you are using.
-
message return by "the ./configure"
Would you be so kind to tell me the CONTENT of that message ? ::)
-
Seems to me that it has nothing to do with libupnp. This crash is about cryptoPP.
Also, those debian names (libupnp3, libupnp4) tell us nothing about the real version of libupnp that you are using.
if libupnp4 is installed on my system, aMule cannot start after a compilation !
-
if libupnp4 is installed on my system, aMule cannot start after a compilation !
Reasoning like that, you might as well check the phase of the moon at the time of the crash.
- The evidence you provide is not related to UPnP. Search the forum and you will find that there have been lots of crashes like this one and they were related to a bogus CryptoPP.
- Even if your evidence was related to UPnP, I don't know what version of libupnp you are using. If UPnP were the guilty one, you wouldn't go far without this information.
-
ok some details for you:
aptitude search libupnp
p libupnp-dev - Portable SDK for UPnP Devices (development
i A libupnp3 - Portable SDK for UPnP Devices (shared libr
p libupnp3-dbg - debugging symbols for libupnp3
i libupnp3-dev - Portable SDK for UPnP Devices (development
c libupnp4 - Portable SDK for UPnP Devices (shared libr
p libupnp4-dbg - debugging symbols for libupnp4
p libupnp4-dev - Portable SDK for UPnP Devices (developmen
now libupnp3 is installed on my system
I remove this version
aptitude remove libupnp3
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Lecture des descriptions de tâches... Fait
Les paquets suivants sont CASSÉS :
libupnp3-dev
Les paquets suivants seront ENLEVÉS :
libupnp3
0 paquets mis à jour, 0 nouvellement installés, 1 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 262ko seront libérés.
Les paquets suivants ont des dépendances non satisfaites :
libupnp3-dev: Dépend: libupnp3 (= 1:1.6.6-3) mais il n'est pas installable
Les actions suivantes permettront de résoudre ces dépendances :
Supprimer les paquets suivants :
libupnp3-dev
Le score est de 121
Accepter cette solution ? [Y/n/q/?]
Les paquets suivants seront ENLEVÉS :
libupnp3 libupnp3-dev{a}
0 paquets mis à jour, 0 nouvellement installés, 2 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 0o d'archives. Après dépaquetage, 3666ko seront libérés.
Voulez-vous continuer ? [Y/n/?]
Écriture de l'information d'état étendu... Fait
(Lecture de la base de données... 94730 fichiers et répertoires déjà installés.)
Suppression de libupnp3-dev ...
Suppression de libupnp3 ...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Écriture de l'information d'état étendu... Fait
Lecture des descriptions de tâches... Fait
Now there is no libupnp. I try a ./configure :
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.8.9 (gtk2,shared)
crypto++ 5.5.2 (installed, in /usr)
libintl system
zlib 1.2.3.3
WARNING! UPnP code has been disabled because libupnp >= 1.6.6 not found (try to use --with-libupnp-prefix=PREFIX).
ohohoh message retur by ./configure
Ok now I installed libupnp4
aptitude install libupnp4 libupnp4-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Lecture des descriptions de tâches... Fait
Les NOUVEAUX paquets suivants vont être installés :
libupnp4 libupnp4-dev
0 paquets mis à jour, 2 nouvellement installés, 0 à enlever et 1 non mis à jour.
Il est nécessaire de télécharger 1276ko d'archives. Après dépaquetage, 4006ko seront utilisés.
Écriture de l'information d'état étendu... Fait
Prendre : 1 http://ftp.fr.debian.org testing/main libupnp4 1.8.0~cvs20080628-2 [121kB]
Prendre : 2 http://ftp.fr.debian.org testing/main libupnp4-dev 1.8.0~cvs20080628-2 [1154kB]
1276ko téléchargés en 2s (480ko/s)
Sélection du paquet libupnp4 précédemment désélectionné.
(Lecture de la base de données... 94431 fichiers et répertoires déjà installés.)
Dépaquetage de libupnp4 (à partir de .../libupnp4_1.8.0~cvs20080628-2_amd64.deb) ...
Sélection du paquet libupnp4-dev précédemment désélectionné.
Dépaquetage de libupnp4-dev (à partir de .../libupnp4-dev_1.8.0~cvs20080628-2_amd64.deb) ...
Paramétrage de libupnp4 (1.8.0~cvs20080628-2) ...
Paramétrage de libupnp4-dev (1.8.0~cvs20080628-2) ...
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Lecture de l'information d'état étendu
Initialisation de l'état des paquets... Fait
Écriture de l'information d'état étendu... Fait
Lecture des descriptions de tâches... Fait
./configure --disable-debug --enable-optimize
and make :
Compiling UPnPBase.cpp
UPnPBase.cpp: In static member function ‘static int CUPnPControlPoint::Callback(Upnp_EventType, void*, void*)’:
UPnPBase.cpp:1183: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1184: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1188: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1191: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1196: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1229: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1229: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1180: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1251: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1253: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1257: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1261: error: invalid use of incomplete type ‘struct Upnp_Discovery’
UPnPBase.cpp:1250: error: forward declaration of ‘struct Upnp_Discovery’
UPnPBase.cpp:1269: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1271: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1271: error: invalid use of incomplete type ‘struct Upnp_Event’
UPnPBase.cpp:1268: error: forward declaration of ‘struct Upnp_Event’
UPnPBase.cpp:1288: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1286: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1291: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1286: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1320: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1326: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1329: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1335: error: invalid use of incomplete type ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1314: error: forward declaration of ‘struct Upnp_Event_Subscribe’
UPnPBase.cpp:1356: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1359: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1360: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1364: error: invalid use of incomplete type ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1354: error: forward declaration of ‘struct Upnp_Action_Complete’
UPnPBase.cpp:1377: error: invalid use of incomplete type ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1375: error: forward declaration of ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1380: error: invalid use of incomplete type ‘struct Upnp_State_Var_Complete’
UPnPBase.cpp:1375: error: forward declaration of ‘struct Upnp_State_Var_Complete’
make[3]: *** [amule-UPnPBase.o] Erreur 1
make[2]: *** [all-recursive] Erreur 1
make[1]: *** [all-recursive] Erreur 1
make: *** [all] Erreur 2
ohohhohoho amule is aroun the moon
now :
aptitude remove libupnp4 libupnp4-dev
aptitude install libupnp3 libupnp3-dev
./configure etc.....
make
Compiling GetTickCount.cpp
Compiling GuiEvents.cpp
Compiling Logger.cpp
Compiling PartFile.cpp
Compiling Preferences.cpp
Compiling Proxy.cpp
Compiling Server.cpp
Compiling Statistics.cpp
Compiling StatTree.cpp
Compiling SHAHashSet.cpp
Compiling TerminationProcess.cpp
Compiling TerminationProcessAmuleweb.cpp
Compiling UserEvents.cpp
Compiling OtherFunctions.cpp
Compiling NetworkFunctions.cpp
Linking amule
Compiling ED2KLinkParser.cpp
Compiling MagnetURI.cpp
Compiling MuleCollection.cpp
Linking ed2k
jim@pceau:~/aMule-2.2.3$
oh hohohoh amule is alive
so my problem is because of libupnp4 and not crypto truck bidul ;D
-
Oh, now you made things very much clearer. Now I know what it means libupnp3 and libupnp4.
You have to use libupnp3, which is in fact libupnp-1.6.6 and is the latest stable released version of the library.
libupnp4, which is in fact libupnp-1.8.0, is an unstable SVN version. It is not enough tested and was never released. If you insist in using an unreleased version of the library, I am sorry but you are on your own.
so my problem is because of libupnp4 and not crypto truck bidul
Also, make sure you have full moon when starting aMule. The backtrace you have provided, which was the evidence you originally provided in this case, has absolutely no indications of a problem with libupnp, on the other hand, it shows a known problem (TM) with CryptoPP. Of course, the problem can be related to libupnp, as well as due to any other library in the system, but this conclusion is not easily drawn from your supplied evidence.
-
Oh, now you made things very much clearer. Now I know what it means libupnp3 and libupnp4.
You have to use libupnp3, which is in fact libupnp-1.6.6 and is the latest stable released version of the library.
libupnp4, which is in fact libupnp-1.8.0, is an unstable SVN version. It is not enough tested and was never released. If you insist in using an unreleased version of the library, I am sorry but you are on your own.
Yes cool but I don't know which version Debian will be keep ... and when this package was missing I didn't know which version installed... so I have choose the last.
so my problem is because of libupnp4 and not crypto truck bidul
Also, make sure you have full moon when starting aMule. The backtrace you have provided, which was the evidence you originally provided in this case, has absolutely no indications of a problem with libupnp, on the other hand, it shows a known problem (TM) with CryptoPP. Of course, the problem can be related to libupnp, as well as due to any other library in the system, but this conclusion is not easily drawn from your supplied evidence.
sorry for backtrace I have quickly answer and post a wrong error message by copy / past in fact aMule cannot be start because it is not compiled ;D
thanks far explications about libupnp version !
-
You are welcome.
About Debian, there are people that are better suited than me (I don't use Debian) to explain you that in details, but if you are not a "power user", you should not be using the cutting edge unstable packages unless you know exactly what you are doing. If you stick to the stable Debian (I don't know the name of the "Toy Story" character for the current release), things should be fine.
Cheers!
-
Downgrading to libupnp3 from libupnp4 fixed the compilation error (after running make) on aMule 2.3.1 (Ubuntu 11.10 x64).
-
The issue here is that aMule failures with libupnp4, as far as I can see, not any concept.