bug-httptunnel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug report "couldn't write GET header"


From: Kevin Levillain
Subject: Bug report "couldn't write GET header"
Date: Wed, 20 Feb 2013 17:17:40 +0100

Hello,

I'm having trouble with httptunnel and I hope you might help me because I haven't find anything conclusive on the Internet.
I'll try to be as precise as possible, but I'm quite new to these things so please feel free to ask for more information if needed !

I have installed httptunnel on my ubuntu server 12.04.2 LTS yesterday 
sudo apt-get install httptunnel

and launched hts with
sudo hts -F localhost:22 80

Then I have installed httptunnel on my Mac OS X 10.8.2 today thanks to httptunnel-3.0.5.tar.gz that I found on your website. (I had to install Xcode with the command line options to do that with your script configure. I must say it has not copied hts and htc in my /usr/local/bin folder, I have done that myself).

Then I launched htc on my client side (just testing before serious things begin, without proxy as I am able to connect to my ubuntu server with openssh directly, without httptunnel)
sudo htc -F 2222 SERVER.IP.ADDRESS:80

Then I try to connect with ssh on my mac :
ssh -l username -p 2222 localhost

and after a while I get the error ssh_exchange_identification connection closed by remote host

Knowing that the first step to debug is to know where the connection failed I looked in my logs and pasted it below.
As you will see, the connection itself doesn't seem to be the problem : I get the connection on the server side but I get the error "tunnel_accept: couldn't write GET header: Invalid argument".

I would be very grateful if you could help me (or tell me where to get help !)

Thank you very much,

Kevin Levillain 


-- CLIENT SIDE (system.log) -- 

Feb 20 16:29:38 Machine.local htc[7209]: htc (httptunnel) 3.0.5 started with arguments:
Feb 20 16:29:38 Machine.local htc[7209]:   me = htc
Feb 20 16:29:38 Machine.local htc[7209]:   device = (null)
Feb 20 16:29:38 Machine.local htc[7209]:   host_name = SERVER.IP.ADDRESS
Feb 20 16:29:38 Machine.local htc[7209]:   host_port = 80
Feb 20 16:29:38 Machine.local htc[7209]:   proxy_name = (null)
Feb 20 16:29:38 Machine.local htc[7209]:   proxy_port = 8080
Feb 20 16:29:38 Machine.local htc[7209]:   proxy_buffer_size = 0
Feb 20 16:29:38 Machine.local htc[7209]:   proxy_buffer_timeout = -1
Feb 20 16:29:38 Machine.local htc[7209]:   content_length = 102400
Feb 20 16:29:38 Machine.local htc[7209]:   forward_port = 2222
Feb 20 16:29:38 Machine.local htc[7209]:   max_connection_age = 300
Feb 20 16:29:38 Machine.local htc[7209]:   strict_content_length = 0
Feb 20 16:29:38 Machine.local htc[7209]:   keep_alive = 5
Feb 20 16:29:38 Machine.local htc[7209]:   proxy_authorization = (null)
Feb 20 16:29:38 Machine.local htc[7209]:   user_agent = (null)
Feb 20 16:29:38 Machine.local htc[7209]:   debug_level = 0
Feb 20 16:32:01 Machine.local htc[7209]: read_until: closed
Feb 20 16:32:01 Machine.local htc[7209]: tunnel_in_connect: no response; peer closed connection
Feb 20 16:32:02 Machine.local ReportCrash[7320]: Saved crash report for htc[7209] version 0 to /Library/Logs/DiagnosticReports/htc_2013-02-20-163202_Machine.crash

-- SERVER SIDE (/var/log/syslog) --
Feb 20 16:30:33 Server hts[22617]: connection from 82.229.146.198:41747
Feb 20 16:30:33 Server hts[22617]: connection from 82.229.146.198:41748
Feb 20 16:30:33 Server hts[22617]: tunnel_accept: couldn't write GET header: Invalid argument
Feb 20 16:30:43 Server hts[22617]: tunnel_accept: poll timed out
Feb 20 16:30:43 Server hts[22617]: tunnel_accept: in_fd = 5, out_fd = -1
Feb 20 16:30:43 Server hts[22617]: couldn't accept connection: Invalid argument

And this is the crash report on the CLIENT side
Process:         htc [7209]
Path:            /Users/*/htc
Identifier:      htc
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  launchd [1]
User ID:         0

Date/Time:       2013-02-20 16:32:01.414 +0100
OS Version:      Mac OS X 10.8.2 (12C60)
Report Version:  10

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010

VM Regions Near 0x10:
--> 
    __TEXT                 000000010c63c000-000000010c645000 [   36K] r-x/rwx SM=COW  /Users/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   htc                           0x000000010c64007a http_destroy_response + 10
1   htc                           0x000000010c63ed6e tunnel_in_connect + 350
2   htc                           0x000000010c63e2e7 tunnel_connect + 87
3   htc                           0x000000010c63d74d main + 3037
4   libdyld.dylib                 0x00007fff8fd2f7e1 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000000  rcx: 0x00000000000fc080  rdx: 0x00000000000f67b0
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x00007fff535c3ce0  rsp: 0x00007fff535c3af0
   r8: 0x0000000000000003   r9: 0x000000003bfc9995  r10: 0x0000000000000000  r11: 0x000000003bfc9995
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000007  r15: 0x00007fce7300d000
  rip: 0x000000010c64007a  rfl: 0x0000000000010206  cr2: 0x0000000000000010
Logical CPU: 0

Binary Images:
       0x10c63c000 -        0x10c644fff +htc (0) <3B67400A-68AB-3409-A695-3A792A534222> /Users/*/htc
    0x7fff6c23c000 -     0x7fff6c27093f  dyld (210.2.3) <36CAA36E-72BC-3E48-96D9-B96A2DF77730> /usr/lib/dyld
    0x7fff8c9e9000 -     0x7fff8c9eaff7  libSystem.B.dylib (169.3) <9089D72D-E714-31E1-80C8-698A8E8B05AD> /usr/lib/libSystem.B.dylib
    0x7fff8ca0b000 -     0x7fff8ca20ff7  libdispatch.dylib (228.23) <D26996BF-FC57-39EB-8829-F63585561E09> /usr/lib/system/libdispatch.dylib
    0x7fff8ca21000 -     0x7fff8ca89ff7  libc++.1.dylib (65.1) <20E31B90-19B9-3C2A-A9EB-474E08F9FE05> /usr/lib/libc++.1.dylib
    0x7fff8cb89000 -     0x7fff8cbaeff7  libc++abi.dylib (24.4) <E7BD9363-1D25-3551-A68A-2E2FF6ABECD7> /usr/lib/libc++abi.dylib
    0x7fff8d4a8000 -     0x7fff8d4b0ff7  libsystem_dnssd.dylib (379.32.1) <62AA0B84-188A-348B-8F9E-3E2DB08DB93C> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8ee8a000 -     0x7fff8ee8ffff  libcompiler_rt.dylib (30) <08F8731D-5961-39F1-AD00-4590321D24A9> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8f05b000 -     0x7fff8f05cfff  libsystem_blocks.dylib (59) <D92DCBC3-541C-37BD-AADE-ACC75A0C59C8> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8f05d000 -     0x7fff8f065fff  liblaunch.dylib (442.26.2) <2F71CAF8-6524-329E-AC56-C506658B4C0C> /usr/lib/system/liblaunch.dylib
    0x7fff8f81f000 -     0x7fff8f8ebfe7  libsystem_c.dylib (825.25) <8CBCF9B9-EBB7-365E-A3FF-2F3850763C6B> /usr/lib/system/libsystem_c.dylib
    0x7fff8fb36000 -     0x7fff8fb38ff7  libunc.dylib (25) <92805328-CD36-34FF-9436-571AB0485072> /usr/lib/system/libunc.dylib
    0x7fff8fbc4000 -     0x7fff8fcdc92f  libobjc.A.dylib (532.2) <90D31928-F48D-3E37-874F-220A51FD9E37> /usr/lib/libobjc.A.dylib
    0x7fff8fcdf000 -     0x7fff8fd01ff7  libxpc.dylib (140.41) <FAC04D8B-680E-325F-8F0C-DD69859D0E01> /usr/lib/system/libxpc.dylib
    0x7fff8fd2d000 -     0x7fff8fd30ff7  libdyld.dylib (210.2.3) <F59367C9-C110-382B-A695-9035A6DD387E> /usr/lib/system/libdyld.dylib
    0x7fff8fee1000 -     0x7fff8fee6fff  libcache.dylib (57) <65187C6E-3FBF-3EB8-A1AA-389445E2984D> /usr/lib/system/libcache.dylib
    0x7fff8fee7000 -     0x7fff8ff02ff7  libsystem_kernel.dylib (2050.18.24) <C0535565-35D1-31A7-A744-63D9F10F12A4> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8ff18000 -     0x7fff8ff19ff7  libdnsinfo.dylib (453.18) <E7595861-ECF9-336E-9901-BED2620FAA80> /usr/lib/system/libdnsinfo.dylib
    0x7fff90181000 -     0x7fff90187ff7  libunwind.dylib (35.1) <21703D36-2DAB-3D8B-8442-EAAB23C060D3> /usr/lib/system/libunwind.dylib
    0x7fff911c8000 -     0x7fff911f6ff7  libsystem_m.dylib (3022.6) <B434BE5C-25AB-3EBD-BAA7-5304B34E3441> /usr/lib/system/libsystem_m.dylib
    0x7fff9159e000 -     0x7fff915a9fff  libsystem_notify.dylib (98.5) <C49275CC-835A-3207-AFBA-8C01374927B6> /usr/lib/system/libsystem_notify.dylib
    0x7fff934ea000 -     0x7fff934f8ff7  libsystem_network.dylib (77.10) <0D99F24E-56FE-380F-B81B-4A4C630EE587> /usr/lib/system/libsystem_network.dylib
    0x7fff93649000 -     0x7fff9364ffff  libmacho.dylib (829) <BF332AD9-E89F-387E-92A4-6E1AB74BD4D9> /usr/lib/system/libmacho.dylib
    0x7fff936e0000 -     0x7fff936e1ff7  libremovefile.dylib (23.1) <DBBFAF35-AC78-3856-92F6-6E4FD9DF14A2> /usr/lib/system/libremovefile.dylib
    0x7fff93bb0000 -     0x7fff93bb1ff7  libsystem_sandbox.dylib (220) <3C3B03CF-C525-3CB3-8557-62E91B93AC95> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff946ae000 -     0x7fff946aefff  libkeymgr.dylib (25) <CC9E3394-BE16-397F-926B-E579B60EE429> /usr/lib/system/libkeymgr.dylib
    0x7fff9630a000 -     0x7fff9630cfff  libquarantine.dylib (52) <4BE2E642-A14F-340A-B482-5BD2AEFD9C24> /usr/lib/system/libquarantine.dylib
    0x7fff97a96000 -     0x7fff97accfff  libsystem_info.dylib (406.17) <4FFCA242-7F04-365F-87A6-D4EFB89503C1> /usr/lib/system/libsystem_info.dylib
    0x7fff97f76000 -     0x7fff97f7dfff  libcopyfile.dylib (89) <876573D0-E907-3566-A108-577EAD1B6182> /usr/lib/system/libcopyfile.dylib
    0x7fff985f3000 -     0x7fff98601fff  libcommonCrypto.dylib (60026) <2D6537F5-1B5E-305C-A1CF-D1FA80CA3939> /usr/lib/system/libcommonCrypto.dylib
    0x7fff98804000 -     0x7fff98853ff7  libcorecrypto.dylib (106.2) <CE0C29A3-C420-339B-ADAA-52F4683233CC> /usr/lib/system/libcorecrypto.dylib
    0x7fff98854000 -     0x7fff988a0ff7  libauto.dylib (185.1) <73CDC482-16E3-3FC7-9BB4-FBA2DA44DBC2> /usr/lib/libauto.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 6202
    thread_create: 2
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=57.6M resident=16.1M(28%) swapped_out_or_unallocated=41.5M(72%)
Writable regions: Total=17.5M written=144K(1%) resident=192K(1%) swapped_out=0K(0%) unallocated=17.3M(99%)
 
REGION TYPE                      VIRTUAL
===========                      =======
MALLOC                             9396K
MALLOC guard page                    16K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           4K
__DATA                              704K
__LINKEDIT                         53.1M
__TEXT                             4600K
shared memory                        12K
===========                      =======
TOTAL                             131.5M

reply via email to

[Prev in Thread] Current Thread [Next in Thread]