logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
[bug/crash] glibc free() segfault on playerenter, 2.7b2+chat

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Sun Apr 29, 2007 10:18    Post subject: [bug/crash] glibc free() segfault on playerenter, 2.7b2+chat Reply with quote

Code:

*** glibc detected *** ./nwserver: free(): invalid pointer: 0xb7cee580 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7e4c873]
/lib/i686/cmov/libc.so.6(__libc_free+0x90)[0xb7e4fd30]
./nwnx2.so(_Z7PayLoadPPKcS1_+0x56a)[0xb7f78f5c]
./nwnx2.so(_Z12my_SetStringPPKcS1_S1_+0x1a)[0xb7f78f98]
./nwserver[0x820149c]
./nwserver[0x822d5de]
./nwserver[0x825b826]
./nwserver[0x825d9f3]
./nwserver[0x825d46c]
./nwserver[0x81b1fce]
./nwserver[0x809587c]
./nwserver[0x809feb4]
./nwserver(strftime+0x1063)[0x804bbe7]
b5200000-b5221000 rwxp b5200000 00:00 0
b5221000-b5300000 ---p b5221000 00:00 0
b5335000-b5337000 rwxp b5335000 00:00 0
b5337000-b5338000 ---p b5337000 00:00 0
b5338000-b5fb9000 rwxp b5338000 00:00 0
b63f5000-b64b6000 rwxp b63f5000 00:00 0
b64c9000-b661a000 rwxp b64c9000 00:00 0
b661a000-b6629000 r-xp 00000000 08:03 1525942213  /lib/i686/cmov/libresolv-2.5.so
b6629000-b662b000 rwxp 0000f000 08:03 1525942213  /lib/i686/cmov/libresolv-2.5.so
b662b000-b662d000 rwxp b662b000 00:00 0
b662d000-b6631000 r-xp 00000000 08:03 1506339656  /lib/i686/cmov/libnss_dns-2.5.so
b6631000-b6633000 rwxp 00003000 08:03 1506339656  /lib/i686/cmov/libnss_dns-2.5.so
b663b000-b663c000 ---p b663b000 00:00 0
b663c000-b71ac000 rwxp b663c000 00:00 0
b71ac000-b71ad000 ---p b71ac000 00:00 0
b71ad000-b79ad000 rwxp b71ad000 00:00 0
b79ad000-b79bd000 r-xp 00000000 07:00 808032124  /home/silm/nwserver/nwnx_events.so
b79bd000-b79be000 rwxp 0000f000 07:00 808032124  /home/silm/nwserver/nwnx_events.so
b79be000-b79cd000 r-xp 00000000 07:00 808032116  /home/silm/nwserver/nwnx_hashset.so
b79cd000-b79ce000 rwxp 0000e000 07:00 808032116  /home/silm/nwserver/nwnx_hashset.so
b79ce000-b79d8000 r-xp 00000000 07:00 808015903  /home/silm/nwserver/nwnx_mnx.so
b79d8000-b79d9000 rwxp 0000a000 07:00 808015903  /home/silm/nwserver/nwnx_mnx.so
b79d9000-b79e2000 r-xp 00000000 08:03 1514952046  /lib/i686/cmov/libnss_files-2.5.so
b79e2000-b79e4000 rwxp 00008000 08:03 1514952046  /lib/i686/cmov/libnss_files-2.5.so
b79e4000-b79f7000 r-xp 00000000 08:03 1744832093  /usr/lib/libz.so.1.2.3
b79f7000-b79f8000 rwxp 00012000 08:03 1744832093  /usr/lib/libz.so.1.2.3
b79f8000-b7a0b000 r-xp 00000000 08:03 1496686248  /lib/i686/cmov/libnsl-2.5.so
b7a0b000-b7a0d000 rwxp 00012000 08:03 1496686248  /lib/i686/cmov/libnsl-2.5.so
b7a0d000-b7a0f000 rwxp b7a0d000 00:00 0
b7a0d000-b7a0f000 rwxp b7a0d000 00:00 0
b7a0f000-b7a14000 r-xp 00000000 08:03 1496686235  /lib/i686/cmov/libcrypt-2.5.so
b7a14000-b7a16000 rwxp 00004000 08:03 1496686235  /lib/i686/cmov/libcrypt-2.5.so
b7a16000-b7a3d000 rwxp b7a16000 00:00 0
b7a3d000-b7bd2000 r-xp 00000000 08:03 1744836998  /usr/lib/libmysqlclient.so.15.0.0
b7bd2000-b7c16000 rwxp 00195000 08:03 1744836998  /usr/lib/libmysqlclient.so.15.0.0
b7c16000-b7c17000 rwxp b7c16000 00:00 0
b7c1c000-b7c1f000 rwxp b7c1c000 00:00 0
b7c1f000-b7ccf000 r-xp 00000000 08:03 1744832905  /usr/lib/libstdc++.so.5.0.7
b7ccf000-b7cd4000 rwxp 000af000 08:03 1744832905  /usr/lib/libstdc++.so.5.0.7
b7cd4000-b7cd9000 rwxp b7cd4000 00:00 0
b7cd9000-b7ce0000 r-xp 00000000 07:00 808015896  /home/silm/nwserver/nwnx_odbc.so
b7ce0000-b7ce1000 rwxp 00007000 07:00 808015896  /home/silm/nwserver/nwnx_odbc.so
b7ce1000-b7cee000 r-xp 00000000 07:00 808063542  /home/silm/nwserver/nwnx_chat.so
b7cee000-b7cef000 rwxp 0000d000 07:00 808063542  /home/silm/nwserver/nwnx_chat.so
b7cef000-b7cf1000 rwxp b7cef000 00:00 0
b7cf1000-b7cfb000 r-xp 00000000 08:03 1492216747  /lib/libgcc_s.so.1
b7cfb000-b7cfc000 rwxp 00009000 08:03 1492216747  /lib/libgcc_s.so.1
b7cfc000-b7dd6000 r-xp 00000000 08:03 1744832377  /usr/lib/libstdc++.so.6.0.8
b7dd6000-b7dd9000 r-xp 000d9000 08:03 1744832377  /usr/lib/libstdc++.so.6.0.8
b7dd9000-b7ddb000 rwxp 000dc000 08:03 1744832377  /usr/lib/libstdc++.so.6.0.8
b7ddb000-b7de1000 rwxp b7ddb000 00:00 0
b7de1000-b7de3000 r-xp 00000000 08:03 1496686242  /lib/i686/cmov/libdl-2.5.so
b7de3000-b7de5000 rwxp 00001000 08:03 1496686242  /lib/i686/cmov/libdl-2.5.so
b7de5000-b7f21000 r-xp 00000000 08:03 1496584350  /lib/i686/cmov/libc-2.5.so
b7f21000-b7f22000 r-xp 0013b000 08:03 1496584350  /lib/i686/cmov/libc-2.5.so
b7f22000-b7f24000 rwxp 0013c000 08:03 1496584350  /lib/i686/cmov/libc-2.5.so
b7f24000-b7f27000 rwxp b7f24000 00:00 0
b7f27000-b7f3a000 r-xp 00000000 08:03 1525202122  /lib/i686/cmov/libpthread-2.5.so
b7f3a000-b7f3c000 rwxp 00012000 08:03 1525202122  /lib/i686/cmov/libpthread-2.5.so
b7f3c000-b7f3f000 rwxp b7f3c000 00:00 0
b7f3f000-b7f63000 r-xp 00000000 08:03 1496686243  /lib/i686/cmov/libm-2.5.so
b7f63000-b7f65000 rwxp 00023000 08:03 1496686243  /lib/i686/cmov/libm-2.5.so
b7f65000-b7f68000 r-xp 00000000 07:00 808032103  /home/silm/nwserver/nwnx_functions.so
b7f68000-b7f69000 rwxp 00002000 07:00 808032103  /home/silm/nwserver/nwnx_functions.so
b7f69000-b7f6d000 rwxp b7f69000 00:00 0
b7f6d000-b7f81000 r-xp 00000000 07:00 808019586  /home/silm/nwserver/nwnx2.so
b7f81000-b7f82000 rwxp 00013000 07:00 808019586  /home/silm/nwserver/nwnx2.so
b7f82000-b7f85000 rwxp b7f82000 00:00 0
b7f85000-b7f86000 r-xp b7f85000 00:00 0          [vdso]
b7f86000-b7fa2000 r-xp 00000000 08:03 1496686249  /lib/ld-2.5.so
b7fa2000-b7fa4000 rwxp 0001b000 08:03 1496686249  /lib/ld-2.5.so
bfc1d000-bfc32000 rwxp bfc1d000 00:00 0          [stack]
./Run: line 76:  4965 Aborted                 LD_PRELOAD=./nwnx2.so ./nwserver -gametype "$GAMETYPE" -publicserver 1 -servername "$NAME" -
dmpassword "$DMPASS" -oneparty 0 -pauseandplay 0 -pvp "$PVP" -difficulty 3 -elc 0 -ilr 0 -reloadwhenempty 0 -maxclients 42 -servervault $S
V -minlevel 1 -maxlevel 40 -autosaveinterval 0 -module $MOD -interactive "$@"


nwserver 1.69 unpatched
nwnx-2.7-beta2
functions 1.8.1
events 1.1.5
odbc waawaa
chat 0.3.2 <- culprit

Happens as soon as a player logs in, selects a character and clicks the Ok/Login-Button.

Remove the chat plugin, and the whole thing works again. The other plugins do not seem to affect this behaviour. Same reaction only running nwnx2 + chat.

Haven't had time to investigate if it is module-specific (im running a 60mb+ mod with a heapload of nwnx-centric self-developed scripts).
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Apr 29, 2007 12:32    Post subject: Re: [bug/crash] glibc free() segfault on playerenter, 2.7b2+ Reply with quote

elven wrote:
nwserver 1.69 unpatched
Hey! Where did you get a time machine? Laughing
Thanks for the bug report. Can you make a core dump and send it to my email?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Sun Apr 29, 2007 12:39    Post subject: Reply with quote

Sure. It'll take a day or two, though.
Back to top
View user's profile Send private message
Zaith



Joined: 05 Jun 2007
Posts: 21

PostPosted: Sun Jul 01, 2007 22:19    Post subject: Reply with quote

I seem to be having the same problem. Was a solution ever found for this?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Jul 01, 2007 22:35    Post subject: Reply with quote

Quote:
virusman_ru, 01.05.2007 11:20:32:
if you try to get the message text twice, it will probably crash

virusman_ru, 11:21:58:
and it crashes if you pass the wrong parameter to GetPlayerID

virusman_ru, 11:22:10:
0 or empty string
I made an 'unofficial' 0.3.3 version that doesn't crash in these cases, but it will cause memory leaks with older versions of NWNX Core.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
wannabeuk



Joined: 24 Nov 2007
Posts: 6

PostPosted: Sun Nov 25, 2007 19:53    Post subject: Reply with quote

Could i get a link to the beta that fixes this issue, as im having the same problem when trying to run simtools.
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Nov 26, 2007 1:23    Post subject: Reply with quote

http://data.virusman.ru/nwn/nwnx_chat-0.3.3-linux-bin-unofficial.rar
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
wannabeuk



Joined: 24 Nov 2007
Posts: 6

PostPosted: Mon Nov 26, 2007 2:28    Post subject: Reply with quote

Cheers, i eventually found your webfolder with alot in, unfortunalty its now back to the old problem with odbc not working Sad
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group