Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using tcpproxy-2.0.0-beta15 tool to proxy/PAT some remote connections and I use the config file for the tool. Everything was fine until it crashed and when I tried to start, I get this,

[root@test ~]# tcpproxy 
*** glibc detected *** tcpproxy: malloc(): memory corruption: 0x08326d50 ***
======= Backtrace: =========
======= Memory map: ========
001d7000-001f2000 r-xp 00000000 ca:03 61258      /lib/ld-2.5.so
001f2000-001f3000 r-xp 0001a000 ca:03 61258      /lib/ld-2.5.so
001f3000-001f4000 rwxp 0001b000 ca:03 61258      /lib/ld-2.5.so
001f6000-0034c000 r-xp 00000000 ca:03 63891      /lib/i686/nosegneg/libc-2.5.so
0034c000-0034e000 r-xp 00156000 ca:03 63891      /lib/i686/nosegneg/libc-2.5.so
0034e000-0034f000 rwxp 00158000 ca:03 63891      /lib/i686/nosegneg/libc-2.5.so
0034f000-00352000 rwxp 0034f000 00:00 0 
00424000-0042f000 r-xp 00000000 ca:03 66188      /lib/libgcc_s-4.1.2-20080825.so.1
0042f000-00430000 rwxp 0000a000 ca:03 66188      /lib/libgcc_s-4.1.2-20080825.so.1
009f2000-009fc000 r-xp 00000000 ca:03 61330      /lib/libnss_files-2.5.so
009fc000-009fd000 r-xp 00009000 ca:03 61330      /lib/libnss_files-2.5.so
009fd000-009fe000 rwxp 0000a000 ca:03 61330      /lib/libnss_files-2.5.so
00d8d000-00d8e000 r-xp 00d8d000 00:00 0          [vdso]
08048000-08051000 r-xp 00000000 ca:03 280639     /usr/local/sbin/tcpproxy
08051000-08052000 rw-p 00009000 ca:03 280639     /usr/local/sbin/tcpproxy
08052000-08053000 rw-p 08052000 00:00 0 
08324000-08366000 rw-p 08324000 00:00 0 
b7e00000-b7e21000 rw-p b7e00000 00:00 0 
b7e21000-b7f00000 ---p b7e21000 00:00 0 
b7f4f000-b7f50000 rw-p b7f4f000 00:00 0 
b7f56000-b7f57000 rw-p b7f56000 00:00 0 
bfb0f000-bfb24000 rw-p bffea000 00:00 0          [stack]

anybody using this tool and ran into this ?

share|improve this question
Okay, playing around with it a bit and located that tcpproxy crashes if I have more than 80 entries in the config file and work if its one less. No clue on how to fix it yet and nothing on the manual. –  dheena Apr 25 '11 at 18:17
ah, just coming back after a long time just as i forgot to fill the answer and here it is. turns out there was #MAX_PORTS defined in the header and set to 80, i just increased it and recompiled the source.. –  dheena Dec 1 '11 at 23:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.