Bug #2602

headRequest: true in httpReq crashes Movian

Added by Leonid Protasov over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:04/29/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.10
Found in version:4.9.425 Platform:Linux

Description

The code:

        var doc = showtime.httpReq('http://yoooo.tv', {
            headRequest: true
        });

The result:

HTTP            [DEBUG]: Connected to yoooo.tv:80 (cid=10)
HTTP-15         [DEBUG]: Sending request for http://yoooo.tv (cid=10)
HTTP-15         [DEBUG]: > HEAD / HTTP/1.1
HTTP-15         [DEBUG]: > Cookie: yoooo=3F0B590FCE7B81B00DC64CD58A5CDE64
HTTP-15         [DEBUG]: > User-Agent: Movian Linux/x86_64 4.9.425.g67796
HTTP-15         [DEBUG]: > Connection: keep-alive
HTTP-15         [DEBUG]: > Accept: */*
HTTP-15         [DEBUG]: > Accept-Encoding: identity
HTTP-15         [DEBUG]: > Host: yoooo.tv
HTTP-15         [DEBUG]: http://yoooo.tv: Response:
HTTP-15         [DEBUG]: < HTTP/1.1 200 OK
HTTP-15         [DEBUG]: < Server: nginx admin
HTTP-15         [DEBUG]: < Date: Wed, 29 Apr 2015 00:40:38 GMT
HTTP-15         [DEBUG]: < Content-Type: text/html
HTTP-15         [DEBUG]: < Connection: keep-alive
HTTP-15         [DEBUG]: < Vary: Accept-Encoding
HTTP-15         [DEBUG]: < X-Powered-By: PHP/5.3.29
HTTP-15         [DEBUG]: < X-Cache: HIT from Backend
HTTP-15         [DEBUG]: < 
HTTP-15         [DEBUG]: No data transfered
HTTP            [DEBUG]: Parking connection to yoooo.tv:80 (cid=10) -- Request destroyed
CRASH           [EMERG]: Signal: 11 in thread navopen - PRG: Movian (4.9.425.g67796) EXE: /root/showtime/build.linux/showtime, CWD: /root/showtime  
CRASH           [EMERG]: Fault address ??:0 0x8 (Address not mapped)
CRASH           [EMERG]: Loaded libraries: /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libX11.so.6 /usr/lib/x86_64-linux-gnu/libXext.so.6 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 /usr/lib/x86_64-linux-gnu/libpulse.so.0 /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 /lib/x86_64-linux-gnu/libglib-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 /usr/lib/x86_64-linux-gnu/libwebkitgtk-1.0.so.0 /usr/lib/x86_64-linux-gnu/libXss.so.1 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 /usr/lib/x86_64-linux-gnu/libXv.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libvdpau.so.1 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/librt.
CRASH           [EMERG]: Register dump [23]: 0000000000000003 0000000000000000 00007f3d01ecbfe0 0000000000000000 0000000000000000 0000000000000000 000000000284af60 0000000000000003 00007f3ce47df970 0000000002877c48 00007f3ce47df970 00007f3ce47df970 0000000000000000 0000000000000000 00007f3ce48663f0 00007f3ced7e5250 00000000004d9618 0000000000010246 0000000000000033 0000000000000004 000000000000000e 0000000000000000 0000000000000008 
CRASH           [EMERG]: STACKTRACE (18 frames)
CRASH           [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:271 0x411607
CRASH           [EMERG]: /root/showtime/src/arch/linux/linux_trap.c:340 0x4aaab0
CRASH           [EMERG]: ??:0 0x7f3d0280f340
CRASH           [EMERG]: /root/showtime/src/ecmascript/es_io.c:218 0x4d9618
CRASH           [EMERG]: /root/showtime/src/ecmascript/es_io.c:412 0x4d9b5e
CRASH           [EMERG]: /root/showtime/duk_js_call.c:1329 0x4560ab
CRASH           [EMERG]: /root/showtime/duk_js_executor.c:3339 0x453656
CRASH           [EMERG]: /root/showtime/duk_js_call.c:1436 0x456350
CRASH           [EMERG]: /root/showtime/duk_bi_function.c:205 0x4749ff
CRASH           [EMERG]: /root/showtime/duk_js_call.c:1329 0x4560ab
CRASH           [EMERG]: /root/showtime/duk_js_executor.c:3339 0x453656
CRASH           [EMERG]: /root/showtime/duk_js_call.c:1436 0x456350
CRASH           [EMERG]: /root/showtime/src/ecmascript/es_route.c:221 0x4dcca2
CRASH           [EMERG]: /root/showtime/src/backend/backend.c:479 0x4af7aa
CRASH           [EMERG]: /root/showtime/src/navigator.c:654 0x52c932
CRASH           [EMERG]: /root/showtime/src/arch/posix/posix_threads.c:160 0x4ac610
CRASH           [EMERG]: ??:0 0x7f3d02807182
CRASH           [EMERG]: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)

Associated revisions

Revision 89035e27
Added by Andreas Smas over 5 years ago

ecmascript/http: Don't crash when "headRequest" is set to true

Fixes #2602

Change included in version 4.9.429

History

#1 Updated by Andreas Smas over 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF