Comments (4)
Hello Sébastien,
I recently made some improvements. Could you try with the pre-version 1.2,
available in the git branch "v1.2_devel" ? Let me know.
Thanks a lot. Cheers
2016-04-20 22:55 GMT+02:00 Sébastien PELLÉ [email protected]:
Hello,
I'm having an issue (SIGSEGV) within the WebServer::closeSocket()
(gdb) bt
#0 0x00007fffe80000a8 in ?? ()
#1 0x00007ffff7bb16df in WebServer::closeSocket (client=0x7ffff001d620) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1522
#2 0x00007ffff7bb66dd in WebServer::freeClientSockData (c=0x7ffff001d620)
at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:49
#3 0x00007ffff7bb0c7c in WebServer::poolThreadProcessing (this=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1350
#4 0x00007ffff7bb6749 in WebServer::startPoolThread (t=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:84
#5 0x00007ffff73bb6aa in start_thread (arg=0x7ffff7f52700) at pthread_create.c:333
#6 0x00007ffff70f0e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109More specifically on following line :
int n=SSL_shutdown(client->ssl);Certificate has been generated like this :
$ openssl rsa -in privkey.pem > crt.pem
$ openssl x509 -in cert.pem >> crt.pemCheers,
Hello,I'm having an issue (SIGSEGV) within the WebServer::closeSocket()
(gdb) bt
#0 0x00007fffe80000a8 in ?? ()
#1 0x00007ffff7bb16df in WebServer::closeSocket (client=0x7ffff001d620) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1522
#2 0x00007ffff7bb66dd in WebServer::freeClientSockData (c=0x7ffff001d620)
at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:49
#3 0x00007ffff7bb0c7c in WebServer::poolThreadProcessing (this=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1350
#4 0x00007ffff7bb6749 in WebServer::startPoolThread (t=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:84
#5 0x00007ffff73bb6aa in start_thread (arg=0x7ffff7f52700) at pthread_create.c:333
#6 0x00007ffff70f0e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109More specifically on following line :
int n=SSL_shutdown(client->ssl);Certificate has been generated like this :
$ openssl rsa -in privkey.pem > crt.pem
$ openssl x509 -in cert.pem >> crt.pemCheers,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#5
from libnavajo.
Hi,
I made what you said :
$ ldd beehive_portal
linux-vdso.so.1 => (0x00007ffd9a16e000)
libnavajo.so.1 => /usr/local/lib/libnavajo.so.1 (0x00007f86952ab000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8694f10000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8694cf8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8694ada000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8694710000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f86944a6000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f8694062000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f8693e54000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8693c39000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8693931000)
/lib64/ld-linux-x86-64.so.2 (0x000055dde5177000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f869372c000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f8693507000)
$ ll /usr/local/lib/libnavajo.*
-rw-r--r-- 1 root root 3,0M mars 30 21:13 /usr/local/lib/libnavajo.a
lrwxrwxrwx 1 root root 14 mars 31 15:37 /usr/local/lib/libnavajo.so -> libnavajo.so.1
lrwxrwxrwx 1 root root 18 mars 31 15:37 /usr/local/lib/libnavajo.so.1 -> libnavajo.so.1.2.0
-rw-r--r-- 1 root root 1,6M mars 30 21:13 /usr/local/lib/libnavajo.so.1.2.0
Still having a SIGSEGV :
[2016-04-21 20:37:25] > WebServer : Listen on port 8443
[2016-04-21 20:37:30] > WebServer: Connection from IP: 127.0.0.1
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7ed1700 (LWP 2770)]
0x00007fffe00000a8 in ?? ()
(gdb) bt
#0 0x00007fffe00000a8 in ?? ()
#1 0x00007ffff7bb16df in WebServer::closeSocket (client=0x7ffff001c970) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1522
#2 0x00007ffff7bb66dd in WebServer::freeClientSockData (c=0x7ffff001c970)
at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:49
#3 0x00007ffff7bb0c7c in WebServer::poolThreadProcessing (this=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1350
#4 0x00007ffff7bb6749 in WebServer::startPoolThread (t=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:84
#5 0x00007ffff73bb6aa in start_thread (arg=0x7ffff7ed1700) at pthread_create.c:333
#6 0x00007ffff70f0e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)
I try to look at it more in depth this week-end.
Cheers,
from libnavajo.
Hi,
This issue is now fixed in the v1.2_devel branch. Thanks for reporting.
SSL still doesn't work with websockets (it will work with the upcoming
released version 1.2 )
Cheers
2016-04-21 22:39 GMT+02:00 Sébastien PELLÉ [email protected]:
Hi,
I made what you said :
$ ldd beehive_portal
linux-vdso.so.1 => (0x00007ffd9a16e000)
libnavajo.so.1 => /usr/local/lib/libnavajo.so.1 (0x00007f86952ab000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8694f10000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f8694cf8000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f8694ada000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8694710000)
libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f86944a6000)
libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f8694062000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f8693e54000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f8693c39000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f8693931000)
/lib64/ld-linux-x86-64.so.2 (0x000055dde5177000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f869372c000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f8693507000)
$ ll /usr/local/lib/libnavajo.*
-rw-r--r-- 1 root root 3,0M mars 30 21:13 /usr/local/lib/libnavajo.a
lrwxrwxrwx 1 root root 14 mars 31 15:37 /usr/local/lib/libnavajo.so -> libnavajo.so.1
lrwxrwxrwx 1 root root 18 mars 31 15:37 /usr/local/lib/libnavajo.so.1 -> libnavajo.so.1.2.0
-rw-r--r-- 1 root root 1,6M mars 30 21:13 /usr/local/lib/libnavajo.so.1.2.0Still having a SIGSEGV :
[2016-04-21 20:37:25] > WebServer : Listen on port 8443
[2016-04-21 20:37:30] > WebServer: Connection from IP: 127.0.0.1Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7ed1700 (LWP 2770)]
0x00007fffe00000a8 in ?? ()
(gdb) bt
#0 0x00007fffe00000a8 in ?? ()
#1 0x00007ffff7bb16df in WebServer::closeSocket (client=0x7ffff001c970) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1522
#2 0x00007ffff7bb66dd in WebServer::freeClientSockData (c=0x7ffff001c970)
at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:49
#3 0x00007ffff7bb0c7c in WebServer::poolThreadProcessing (this=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/src/WebServer.cc:1350
#4 0x00007ffff7bb6749 in WebServer::startPoolThread (t=0x61dd60) at /home/sherpa/Workspaces/workspace-Arduino/libnavajo/include/libnavajo/WebServer.hh:84
#5 0x00007ffff73bb6aa in start_thread (arg=0x7ffff7ed1700) at pthread_create.c:333
#6 0x00007ffff70f0e9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb)I try to look at it more in depth this week-end.
Cheers,
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#5 (comment)
from libnavajo.
Ok. Thanks a lot Thierry.
I will give a try asap.
Thanks for your work. I must admit that this is the only webserver I can run : I hate Java ;-)
from libnavajo.
Related Issues (20)
- Compilation failing
- Big file on LocalRepository HOT 2
- Two warnings appeared during the compilation of the library HOT 1
- Segmentation fault with Websocket HOT 2
- Crash when access the server through https HOT 1
- Http response error can't be different of 404 HOT 4
- memory leak when using SSL HOT 1
- Valgrind report HOT 1
- Memory Leak in WebSockets HOT 2
- OPTIONS support HOT 4
- setServerPort has no effect HOT 2
- More expansive "Allow" headers for CORS HOT 2
- Dynamic Repos HOT 2
- BPi-R1
- Multiple parameter with the same name
- Can't build on Centos 7.6 HOT 1
- GCC 8.3.1 warnings HOT 1
- File corruption when using localRepository and a slow connection HOT 4
- No multithread support with SSL HOT 1
- memory leaks when http client tries to connect without SSL on a WebServer configured with SSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnavajo.