Actions:
|
2010-06-06 11:28 AEST by Arthur Barrett - home/tmh/cvsnt$ pwd
/home/tmh/cvsnt
abarrett@obrien:/home/tmh/cvsnt$ cat CVS/Root
/usr/local/cvs
abarrett@obrien:/home/tmh/cvsnt$ cat CVS/Tag
TCVSNT_BRANCH_2_8_01_3761:1.1.4.1
abarrett@obrien:/home/tmh/cvsnt$ cvs up
*** glibc detected *** cvs: double free or corruption (!prev):
0x000000000250b8f0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f92ac91bd16]
/lib/libc.so.6(cfree+0x6c)[0x7f92ac9209bc]
/usr/local/lib/libcvsapi-2.8.01.3813.so(_ZNSt11_Deque_baseISsSaISsEED2Ev+0x34)
[0x7f92ae251ed4]
/usr/local/lib/libcvsapi-2.8.01.3813.so
(_ZNSt5queueISsSt5dequeISsSaISsEEED1Ev+0xfc)[0x7f92ae25569c]
/lib/libc.so.6(__cxa_finalize+0xa5)[0x7f92ac8e1795]
/usr/local/lib/libcvsapi-2.8.01.3813.so[0x7f92ae24f766]
======= Memory map: ========
00400000-00506000 r-xp 00000000 fe:01
33557040 /usr/local/bin/cvsnt
00705000-00709000 rw-p 00105000 fe:01
33557040 /usr/local/bin/cvsnt
00709000-00714000 rw-p 00000000 00:00 0
024f9000-02b48000 rw-p 00000000 00:00 0 [heap]
7f92a4000000-7f92a4021000 rw-p 00000000 00:00 0
7f92a4021000-7f92a8000000 ---p 00000000 00:00 0
7f92aa809000-7f92aa8a5000 rw-p 00000000 00:00 0
7f92aa8e6000-7f92aa95b000 rw-p 00000000 00:00 0
7f92aab64000-7f92aab69000 r-xp 00000000 fe:01
92284962 /lib/libnss_dns-2.10.2.so
7f92aab69000-7f92aad68000 ---p 00005000 fe:01
92284962 /lib/libnss_dns-2.10.2.so
7f92aad68000-7f92aad69000 r--p 00004000 fe:01
92284962 /lib/libnss_dns-2.10.2.so
7f92aad69000-7f92aad6a000 rw-p 00005000 fe:01
92284962 /lib/libnss_dns-2.10.2.so
7f92aba16000-7f92aba21000 r-xp 00000000 fe:01
92284968 /lib/libnss_files-2.10.2.so
7f92aba21000-7f92abc20000 ---p 0000b000 fe:01
92284968 /lib/libnss_files-2.10.2.so
7f92abc20000-7f92abc21000 r--p 0000a000 fe:01
92284968 /lib/libnss_files-2.10.2.so
7f92abc21000-7f92abc22000 rw-p 0000b000 fe:01
92284968 /lib/libnss_files-2.10.2.so
7f92abc22000-7f92abc2c000 r-xp 00000000 fe:01
92292336 /lib/libnss_nis-2.10.2.so
7f92abc2c000-7f92abe2b000 ---p 0000a000 fe:01
92292336 /lib/libnss_nis-2.10.2.so
7f92abe2b000-7f92abe2c000 r--p 00009000 fe:01
92292336 /lib/libnss_nis-2.10.2.so
7f92abe2c000-7f92abe2d000 rw-p 0000a000 fe:01
92292336 /lib/libnss_nis-2.10.2.so
7f92abe2d000-7f92abe42000 r-xp 00000000 fe:01
92292346 /lib/libnsl-2.10.2.so
7f92abe42000-7f92ac041000 ---p 00015000 fe:01
92292346 /lib/libnsl-2.10.2.so
7f92ac041000-7f92ac042000 r--p 00014000 fe:01
92292346 /lib/libnsl-2.10.2.so
7f92ac042000-7f92ac043000 rw-p 00015000 fe:01
92292346 /lib/libnsl-2.10.2.so
7f92ac043000-7f92ac045000 rw-p 00000000 00:00 0
7f92ac045000-7f92ac04c000 r-xp 00000000 fe:01
92292340 /lib/libnss_compat-2.10.2.so
7f92ac04c000-7f92ac24b000 ---p 00007000 fe:01
92292340 /lib/libnss_compat-2.10.2.so
7f92ac24b000-7f92ac24c000 r--p 00006000 fe:01
92292340 /lib/libnss_compat-2.10.2.so
7f92ac24c000-7f92ac24d000 rw-p 00007000 fe:01
92292340 /lib/libnss_compat-2.10.2.so
7f92ac24d000-7f92ac27c000 r-xp 00000000 fe:01
92274846 /lib/libpcre.so.3.12.1
7f92ac27c000-7f92ac47b000 ---p 0002f000 fe:01
92274846 /lib/libpcre.so.3.12.1
7f92ac47b000-7f92ac47c000 rw-p 0002e000 fe:01
92274846 /lib/libpcre.so.3.12.1
7f92ac47c000-7f92ac482000 r-xp 00000000 fe:01
50521317 /usr/local/lib/libmdnsclient-2.8.01.3813.so
7f92ac482000-7f92ac682000 ---p 00006000 fe:01
50521317 /usr/local/lib/libmdnsclient-2.8.01.3813.so
7f92ac682000-7f92ac683000 rw-p 00006000 fe:01
50521317 /usr/local/lib/libmdnsclient-2.8.01.3813.so
7f92ac683000-7f92ac6a9000 r-xp 00000000 fe:01
117440682 /usr/lib/libexpat.so.1.5.2
7f92ac6a9000-7f92ac8a9000 ---p 00026000 fe:01
117440682 /usr/lib/libexpat.so.1.5.2
7f92ac8a9000-7f92ac8ab000 rw-p 00026000 fe:01
117440682 /usr/lib/libexpat.so.1.5.2
7f92ac8ab000-7f92ac9f5000 r-xp 00000000 fe:01
92292339 /lib/libc-2.10.2.so
7f92ac9f5000-7f92acbf5000 ---p 0014a000 fe:01
92292339 /lib/libc-2.10.2.so
7f92acbf5000-7f92acbf9000 r--p 0014a000 fe:01
92292339 /lib/libc-2.10.2.so
7f92acbf9000-7f92acbfa000 rw-p 0014e000 fe:01
92292339 /lib/libc-2.10.2.so
7f92acbfa000-7f92acbff000 rw-p 00000000 00:00 0
7f92acbff000-7f92acc15000 r-xp 00000000 fe:01
92274921 /lib/libgcc_s.so.1
7f92acc15000-7f92ace14000 ---p 00016000 fe:01
92274921 /lib/libgcc_s.so.1
7f92ace14000-7f92ace15000 rw-p 00015000 fe:01
92274921 /lib/libgcc_s.so.1
7f92ace15000-7f92ace96000 r-xp 00000000 fe:01
92292343 /lib/libm-2.10.2.so
7f92ace96000-7f92ad095000 ---p 00081000 fe:01
92292343 /lib/libm-2.10.2.so
7f92ad095000-7f92ad096000 r--p 00080000 fe:01
92292343 /lib/libm-2.10.2.so
7f92ad096000-7f92ad097000 rw-p 00081000 fe:01
92292343 /lib/libm-2.10.2.so
7f92ad097000-7f92ad189000 r-xp 00000000 fe:01
117454066 /usr/lib/libstdc++.so.6.0.13
7f92ad189000-7f92ad389000 ---p 000f2000 fe:01
117454066 /usr/lib/libstdc++.so.6.0.13
7f92ad389000-7f92ad390000 r--p 000f2000 fe:01
117454066 /usr/lib/libstdc++.so.6.0.13
7f92ad390000-7f92ad392000 rw-p 000f9000 fe:01
117454066 /usr/lib/libstdc++.so.6.0.13
7f92ad392000-7f92ad3a7000 rw-p 00000000 00:00 0
7f92ad3a7000-7f92ad3ba000 r-xp 00000000 fe:01
92292341 /lib/libresolv-2.10.2.so
7f92ad3ba000-7f92ad5b9000 ---p 00013000 fe:01
92292341 /lib/libresolv-2.10.2.so
7f92ad5b9000-7f92ad5ba000 r--p 00012000 fe:01
92292341 /lib/libresolv-2.10.2.so
7f92ad5ba000-7f92ad5bb000 rw-p 00013000 fe:01
92292341 /lib/libresolv-2.10.2.so
7f92ad5bb000-7f92ad5bd000 rw-p 00000000 00:00 0
7f92ad5bd000-7f92ad5c5000 r-xp 00000000 fe:01
92284964 /lib/libcrypt-2.10.2.so
7f92ad5c5000-7f92ad7c4000 ---p 00008000 fe:01
92284964 /lib/libcrypt-2.10.2.so
7f92ad7c4000-7f92ad7c5000 r--p 00007000 fe:01
92284964 /lib/libcrypt-2.10.2.so
7f92ad7c5000-7f92ad7c6000 rw-p 00008000 fe:01
92284964 /lib/libcrypt-2.10.2.so
7f92ad7c6000-7f92ad7f4000 rw-p 00000000 00:00 0
7f92ad7f4000-7f92ad800000 r-xp 00000000 fe:01
92310752 /lib/libpam.so.0.82.2 |
|
2010-06-06 11:34 AEST by Arthur Barrett - Ran with trace:
01:31:14: -> Call pre-loaded 'email.la' returned 0, total ret 0
01:31:14: -> Call pre-loaded 'info.la'
01:31:14: -> postcommand_proc()
01:31:14: -> default_trigger: parse_info(CVSROOT/postcommand,%r/%p %
c,,cvsnt/zlib/win32)
01:31:14: -> Call pre-loaded 'info.la' returned 0, total ret 0
01:31:14: -> run_trigger returning 0
01:31:14: -> Unloading checkout.la
01:31:14: -> Unloading - about to destroy
01:31:14: -> Unloading - destroyed
01:31:14: -> Unloading - about to get lib
01:31:14: -> Unloading - about to unload
01:31:14: -> Unloading - unloaded
01:31:14: -> Unloading - about to free
01:31:14: -> Unloading - about to delete trigg
01:31:14: -> Unloading - about to delete inf
01:31:14: -> Unloading - complete
01:31:14: -> Unloading email.la
01:31:14: -> Unloading - about to close
01:31:14: -> Unloading - closed
01:31:14: -> Unloading - about to destroy
01:31:14: -> Unloading - destroyed
01:31:14: -> Unloading - about to get lib
01:31:14: -> Unloading - about to unload
01:31:14: -> Unloading - unloaded
01:31:14: -> Unloading - about to free
01:31:14: -> Unloading - about to delete trigg
01:31:14: -> Unloading - about to delete inf
01:31:14: -> Unloading - complete
01:31:14: -> Unloading info.la
01:31:14: -> Unloading - about to close
01:31:14: -> Unloading - closed
01:31:14: -> Unloading - about to destroy
01:31:14: -> Unloading - destroyed
01:31:14: -> Unloading - about to get lib
01:31:14: -> Unloading - about to unload
01:31:14: -> Unloading - unloaded
01:31:14: -> Unloading - about to free
01:31:14: -> Unloading - about to delete trigg
01:31:14: -> Unloading - about to delete inf
01:31:14: -> Unloading - complete
01:31:14: -> Unloading make.la
01:31:14: -> Unloading - about to destroy
01:31:14: -> Unloading - destroyed
01:31:14: -> Unloading - about to get lib
01:31:14: -> Unloading - about to unload
01:31:14: -> Unloading - unloaded
01:31:14: -> Unloading - about to free
01:31:14: -> Unloading - about to delete trigg
01:31:14: -> Unloading - about to delete inf
01:31:14: -> Unloading - complete
01:31:14: -> Unloading - about to clear list
01:31:14: -> Unloading - cleared list
01:31:14: -> Lock server command sent: Close
01:31:14: -> Lock server command received: 000 OK
01:31:14: -> Process 4957 exiting
01:31:14: -> free_directory()
01:31:14: -> free_modules2() directory_stack_size and rubbish set to zero
*** glibc detected *** cvs: double free or corruption (!prev):
0x000000000109fad0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f12e6954d16]
/lib/libc.so.6(cfree+0x6c)[0x7f12e69599bc]
/usr/local/lib/libcvsapi-2.8.01.3813.so(_ZNSt11_Deque_baseISsSaISsEED2Ev+0x34)
[0x7f12e828aed4]
/usr/local/lib/libcvsapi-2.8.01.3813.so
(_ZNSt5queueISsSt5dequeISsSaISsEEED1Ev+0xfc)[0x7f12e828e69c]
/lib/libc.so.6(__cxa_finalize+0xa5)[0x7f12e691a795]
/usr/local/lib/libcvsapi-2.8.01.3813.so[0x7f12e8288766]
|
|
2010-06-06 12:03 AEST by Arthur Barrett - Created an attachment (id=1858)
trace place of crash
cvs commit: Examining .
Checking in main.cpp;
/usr/local/cvs/cvsnt/src/main.c,v <-- main.cpp
new revision: 1.71.2.151.6.54.2.7; previous revision: 1.71.2.151.6.54.2.6
done
|
|
2010-06-06 20:37 AEST by Arthur Barrett - New trace confirms that the 'double free' is automatic. Something not zeroed
after being free'd?
10:36:18: -> Process 9228 exiting
10:36:18: -> free_directory()
10:36:18: -> free_modules2() directory_stack_size and rubbish set to zero
10:36:18: -> Free CVS_Username and cvs_locale
10:36:18: -> Free global_session_time and global_real_session_time
10:36:18: -> Free trace_file
10:36:18: -> CCvsgui::Close
10:36:18: -> main return OK
*** glibc detected *** cvs: double free or corruption (!prev):
0x00000000019f3ae0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f49aa4bbd16]
/lib/libc.so.6(cfree+0x6c)[0x7f49aa4c09bc]
/usr/local/lib/libcvsapi-2.8.01.3813.so(_ZNSt11_Deque_baseISsSaISsEED2Ev+0x34)
[0x7f49abdf1ed4]
/usr/local/lib/libcvsapi-2.8.01.3813.so
(_ZNSt5queueISsSt5dequeISsSaISsEEED1Ev+0xfc)[0x7f49abdf569c]
/lib/libc.so.6(__cxa_finalize+0xa5)[0x7f49aa481795]
/usr/local/lib/libcvsapi-2.8.01.3813.so[0x7f49abdef766]
======= Memory map: ========
|
|
2010-06-08 11:57 AEST by Arthur Barrett - Created an attachment (id=1861)
patch - clean up putenv/getenv stuff
patch - clean up putenv/getenv stuff:
cvs commit: Examining src
Checking in src/main.cpp;
/cvs/cvsnt/src/main.c,v <-- main.cpp
new revision: 1.71.2.151.6.54.2.8; previous revision: 1.71.2.151.6.54.2.7
done
Checking in src/subr.cpp;
/cvs/cvsnt/src/subr.c,v <-- subr.cpp
new revision: 1.62.2.81.6.19.2.1; previous revision: 1.62.2.81.6.19
done
|