Skip to content

Crash on Ubuntu 16.04 #1

@ubershmekel

Description

@ubershmekel

Hi @xaxaxa,

I'm getting a crash on newer versions of Ubuntu, 14.04 seems to be working fine. Specifically this is what I'm running:

cppsp_standalone -f -l 0.0.0.0:8080 -c -fPIC -c -pthread -c -Ofast -c -march=native -c -lcpoll -c -lcppsp -b ./cppsp_cache -r . -m dir_list.cppsm

This is an excerpt of the output if it helps:

cppsp_1  | [thread 1] ...done. starting listening socket.
cppsp_1  | sizeof(CP::Socket) = 352
cppsp_1  | sizeof(cppspServer::handler) = 1368
cppsp_1  | sizeof(handler1) = 1752
cppsp_1  | enabling timer
cppsp_1  | *** Error in `cppsp_standalone': free(): invalid pointer: 0x00007ffc7a9c4320 ***
cppsp_1  | ======= Backtrace: =========
cppsp_1  | /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fd043ecb7e5]
cppsp_1  | /lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7fd043ed3e0a]
cppsp_1  | /lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7fd043ed798c]
cppsp_1  | ./cppsp_cache/dir_list.cppsm.10163616.so(_ZN20__cppsp_unnamed_page6renderERN2CP12StreamWriterE+0x5ff)[0x7fd043a4d35f]
cppsp_1  | /usr/local/lib/libcppsp.so(_ZN5cppsp4Page13startResponseEv+0x3f)[0x7fd044cf3c3f]
cppsp_1  | /usr/local/lib/libcppsp.so(_ZN5cppsp4Page6doInitEv+0xae)[0x7fd044cf5ace]
cppsp_1  | /usr/local/lib/libcppsp.so(_ZN5cppsp4Page13handleRequestE8DelegateIFvvEE+0x3e)[0x7fd044cf3d3e]
cppsp_1  | cppsp_standalone[0x405b4c]
cppsp_1  | /usr/local/lib/libcppsp.so(_ZN5cppsp6Server19handleRoutedRequestEN2CP6StringERNS_7RequestERNS_8ResponseE8DelegateIFvvEE+0x270)[0x7fd044cf7440]
cppsp_1  | /usr/local/lib/libcppsp.so(_ZN5cppsp6Server20defaultHandleRequestERNS_7RequestERNS_8ResponseE8DelegateIFvvEE+0x43)[0x7fd044cf77b3]
cppsp_1  | cppsp_standalone[0x407d7e]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP11File_doReadEPNS_4FileENS_6EventsERNS_16EventHandlerDataERKNS_9EventDataEb+0x32)[0x7fd044f1e7e2]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP4File16dispatchMultipleENS_6EventsES1_RKNS_9EventDataE+0xff)[0x7fd044f2324f]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP8NewEPoll11_doDispatchERK11epoll_event+0x97)[0x7fd044f273f7]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP8NewEPoll12_doIterationEi+0x240)[0x7fd044f2a0d0]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP8NewEPoll15waitAndDispatchEv+0xe)[0x7fd044f2a23e]
cppsp_1  | /usr/local/lib/libcpoll.so(_ZN2CP6Handle4loopEv+0x11)[0x7fd044f1e301]
cppsp_1  | cppsp_standalone[0x4074d2]
cppsp_1  | cppsp_standalone[0x404b00]
cppsp_1  | /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fd043e74830]
cppsp_1  | cppsp_standalone[0x405019]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions