Comments (13)
I have not heard about anyone compiling it or having problems on Solaris (I guess very few uses it now days).
Try grepping after IPPROTO_GRE
under /usr/include
(or whole of /usr
) to see if Solaris defines it in some other include file (I do not have any Solaris to test on).
If you find it we could try and make a patch.
from dsc.
You could also ask on the mailing list: https://lists.dns-oarc.net/mailman/listinfo/dsc .
from dsc.
/usr/include/netinet/ip_compat.h:#ifndef IPPROTO_GRE
/usr/include/netinet/ip_compat.h:# define IPPROTO_GRE 47 /* GRE encaps RFC 1701 */
from dsc.
Try:
git clone http://github.com/jelu/dsc.git
cd dsc
git submodule update --init
git checkout sol11-compat
./autogen.sh && ./configure && make
from dsc.
after adding
+#include <netinet/ip_compat.h>
to pcay_layers.c i was able to compile dsc.
But running it seems still be problematic:
./dsc -df dsc.conf
adding local address x.x.x.x
adding local address ::1
setting current directory to /export/home/dsc/data
minfree_bytes 5000000
PID file is: /export/home/dsc/dsc.pid
Opening interface vnic1
Pcap_init: FD_SET 4
creating dataset qtype
creating dataset rcode
creating dataset opcode
creating dataset rcode_vs_replylen
creating dataset client_subnet
creating dataset qtype_vs_qnamelen
creating dataset qtype_vs_tld
creating dataset certain_qnames_vs_qtype
creating dataset client_subnet2
creating dataset client_addr_vs_rcode
creating dataset chaos_types_and_names
creating dataset idn_qname
creating dataset edns_version
creating dataset edns_bufsiz
creating dataset do_bit
creating dataset rd_bit
creating dataset idn_vs_tld
creating dataset ipv6_rsn_abusers
creating dataset transport_vs_qtype
creating dataset client_port_range
creating dataset direction_vs_ipproto
writing PID to /export/home/dsc/dsc.pid
Running
Bus Error (core dumped)
Sadly i cant find any core dump from running dir.
from dsc.
Did you try the branch from GitHub?
What did you add? Can only see +#include
.
Have you tried with ulimit -c unlimited
?
from dsc.
Yes i used the sol11 branch from github.
It seems i needed to escape < char so github would show it correctly.
I added to pcap_layers.c
#include <netinet/ip_compat.h>
After some configuration i managed to dump the core file, im not sure if you can investigate it on non sparc hw.
from dsc.
Check https://guides.github.com/features/mastering-markdown/ for how to paste code/output.
A core dump is not worth anything to me since I would need Solaris 11 and the binary you built, try getting a stack/back trace out of the core dump with any available tools.
from dsc.
pstack /var/cores/core.dsc.18724
core '/var/cores/core.dsc.18724' of 18724: ./dsc -df dsc.conf
00034130 inXaddr_assign_v4 (ffbff070, 157d72, 0, 0, 0, 0) + 1c
00025a40 pcap_ipv4_handler (157d66, 46, ffbff068, 0, 0, 0) + 8
000245c4 handle_ipv4 (157d66, 46, ffbff068, 0, 0, 0) + 48
00024674 handle_pcap (ffbff068, ffbff0f8, 157d54, 0, 0, 0) + 1c
00024a58 pcap_handle_packet (0, ffbff0f8, 157d54, 58, 1da0d, fedf2a40) + 4c
ff318098 pcap_read_bpf (157b48, 57889fb6, 24a0c, 0, 6c, 1) + 188
000263c0 Pcap_run (0, 5d69c, 5d698, 1579b0, 0, 0) + 38c
00028958 main (ffbff204, ffbff20c, 5d800, 20560, 20540, fedf0180) + 588
00023830 _start (0, 0, 0, 0, 0, 0) + 5c
pflags /var/cores/core.dsc.18724
core '/var/cores/core.dsc.18724' of 18724: ./dsc -df dsc.conf
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
sigmask = 0xffffbefc,0xffffffff,0x000000ff
cursig = SIGBUS
from dsc.
Hmm, might be an issue with inX_addr.c
...
Can you verify that the binary has debug symbols ( file dsc
not stripped ) ?
If not then try and recompile with debug symbols.
Then run again with ./dsc -dddddddf dsc.conf
, that will output the packets it's processing. Give me the output along with another pstack
.
from dsc.
dsc: ELF 32-bit MSB executable SPARC32PLUS Version 1, V8+ Required, dynamically linked, not stripped
Running with ./dsc -dddddddf dsc.conf doesnot output the packet it's proccessing
from dsc.
from dsc.
It now builds on Solaris 11 but since that is not a supported platform I can not replicate the core dump issue.
from dsc.
Related Issues (20)
- doh
- doh
- doh
- GeoIP discontinued, use libmaxminddb HOT 1
- Debian install instructions incomplete HOT 2
- unable to pcap thread run: nothing to capture on HOT 2
- DNSTAP support HOT 1
- Missing configure script in release tarballs HOT 1
- Response time indexer not working HOT 2
- Prometheus exporter interface for dsc? HOT 3
- Debian package for the 2.8.1 release not available HOT 2
- Stretch builds unavailable HOT 1
- List of Delegated TLDs in query_classification_index.c is v old HOT 1
- DNSTAP - uv_pipe_bind() failed: address already in use HOT 2
- DSC with DNSTAP configured logging debug on syslog HOT 2
- Compatibility issues with musl on Alpine HOT 1
- client_subnet indexer IPv6 performance issues HOT 6
- DNSTAP protocols HOT 3
- Remove hardcoded chmod from the code and use normal umask for permissions HOT 1
- Wrong TLDs when Public Suffix List is enabled: HOT 4
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 dsc.