GithubHelp home page GithubHelp logo

building dsc on solaris 11 about dsc HOT 13 CLOSED

dns-oarc avatar dns-oarc commented on July 18, 2024
building dsc on solaris 11

from dsc.

Comments (13)

jelu avatar jelu commented on July 18, 2024

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.

jelu avatar jelu commented on July 18, 2024

You could also ask on the mailing list: https://lists.dns-oarc.net/mailman/listinfo/dsc .

from dsc.

teadur avatar teadur commented on July 18, 2024

/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.

jelu avatar jelu commented on July 18, 2024

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.

teadur avatar teadur commented on July 18, 2024

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.

jelu avatar jelu commented on July 18, 2024

Did you try the branch from GitHub?

What did you add? Can only see +#include.

Have you tried with ulimit -c unlimited ?

from dsc.

teadur avatar teadur commented on July 18, 2024

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.

jelu avatar jelu commented on July 18, 2024

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.

teadur avatar teadur commented on July 18, 2024
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.

jelu avatar jelu commented on July 18, 2024

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.

teadur avatar teadur commented on July 18, 2024

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.

jelu avatar jelu commented on July 18, 2024

from dsc.

jelu avatar jelu commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.