Git Product home page Git Product logo

Comments (11)

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Does your code work with some other request? Try using simple request like vpe.ShowVersion to ensure that you are properly connecting to VPP binary API.

from vpp-agent.

zurrehma avatar zurrehma commented on September 23, 2024

@ondrej-fabry, yes, code is working properly, moreover i am also calling this struct and it is working fine.
code:

 req:=&ipsec.Ikev2ProfileAddDel{
                Name : []byte(ikev.Name),
                IsAdd : 1,
        }
 reply := &ipsec.Ikev2ProfileAddDelReply{}

        if err := ch.SendRequest(req).ReceiveReply(reply); err != nil {
                fmt.Println("ERROR:", err)
                return
        }
        if reply.Retval != 0 {
                fmt.Println("Retval:", reply.Retval)
                return
        }
        fmt.Printf("ikev2 add replace reply: %+v\n", reply)

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Does VPP process print amything during request?

from vpp-agent.

zurrehma avatar zurrehma commented on September 23, 2024

@ondrej-fabry vpp process prints this:
vpp# Aborted (core dumped)

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Your VPP process crashed. You have most likely put some invalid values or unsupported combination in the request and this caused some undefined behavior and the process crash.

How do you run VPP? As a service? Try running it in foreground so you can see all of it's output. It might print some information before the crash. You can also configure output log file for the VPP using unix { log xxx ... }.

from vpp-agent.

zurrehma avatar zurrehma commented on September 23, 2024

@ondrej-fabry Log file is not showing anything, whenever i pass some configurations via govpp.its only show those commands which i set from vpp cli.
the output of log file is like:
2019/ 1/ 8 18:12:03:203: ***** Start: PID 926 *****

2019/ 1/ 8 18:14:55:494: ***** Start: PID 946 *****
2019/ 1/ 8 18:15:01:650[0]: show interface
2019/ 1/ 8 18:15:34:920: ***** Start: PID 952 *****
2019/ 1/ 8 18:16:54:711: ***** Start: PID 967 *****
2019/ 1/ 8 18:17:09:767[0]: sho int2019/ 1/ 8 18:17:12:060[0]: sho in2019/ 1/ 8
can you tell me according to your understanding what is problem with this req:
req:=&ipsec.Ikev2ProfileSetAuth{
Name : []byte("Profile1"),
AuthMethod : uint8(2),
Data : []byte("vpp123"),
}
and how you will fill this struct?

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Please send your vpp.conf file you use for VPP process along with arguments you use please.

from vpp-agent.

zurrehma avatar zurrehma commented on September 23, 2024

@ondrej-fabry vpp.conf file contain:
unix {
nodaemon
cli-listen 0.0.0.0:5002
cli-no-pager
log /tmp/vpp.log
full-coredump
}
plugins {
plugin dpdk_plugin.so {
disable
}
}
api-trace {
on
}
command line arguments are:
vpp unix {log /conf.txt interactive }

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Does the IKEv2 work for you using CLI commands? As far as I know IKEv2 is not completely functional in VPP so I can't tell you if you can make it work at all. Try using CLI commands to set it up first.

Also why are you not running VPP using vpp -c /etc/vpp/vpp.conf and then run another shell with vppctl -s localhost:5002. That way when it crashes you might see some output in the first shell.

from vpp-agent.

zurrehma avatar zurrehma commented on September 23, 2024

@ondrej-fabry IKEv2 commands which i am using is working fine with cli.
in first shell i am getting this:
vpp[128]: received signal SIGSEGV, PC 0x7f95df712fa9, faulting address 0x34003000
vpp[128]: received signal SIGSEGV, PC 0x7f95df712fa9, faulting address 0x34003000
vpp[128]: #0 0x00007f95dfeba39a 0x7f95dfeba39a
vpp[128]: #0 0x00007f95dfeba39a 0x7f95dfeba39a
vpp[128]: #1 0x00007f95ded48890 0x7f95ded48890
vpp[128]: #1 0x00007f95ded48890 0x7f95ded48890
vpp[128]: #2 0x00007f95df712fa9 0x7f95df712fa9
vpp[128]: #2 0x00007f95df712fa9 0x7f95df712fa9
vpp[128]: #3 0x00007f95e00e0366 vl_msg_api_handler_with_vm_node + 0x66
vpp[128]: #3 0x00007f95e00e0366 vl_msg_api_handler_with_vm_node + 0x66
vpp[128]: #4 0x00007f95e00e76f5 vl_mem_api_handle_msg_main + 0x45
vpp[128]: #4 0x00007f95e00e76f5 vl_mem_api_handle_msg_main + 0x45
vpp[128]: #5 0x00007f95e00f9ba8 0x7f95e00f9ba8
vpp[128]: #5 0x00007f95e00f9ba8 0x7f95e00f9ba8
vpp[128]: #6 0x00007f95dfe7dca6 0x7f95dfe7dca6
vpp[128]: #6 0x00007f95dfe7dca6 0x7f95dfe7dca6
vpp[128]: #7 0x00007f95def85770 0x7f95def85770
vpp[128]: #7 0x00007f95def85770 0x7f95def85770

from vpp-agent.

ondrej-fabry avatar ondrej-fabry commented on September 23, 2024

Please report this to VPP.

from vpp-agent.

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.