Re: [vpp-dev] unformat_check_input crashed during multiarch function initialization

2018-09-26 Thread Lijian Zhang
Thank you Damjan for your confirmation. I'll restore to previous code. Thanks again. From: Damjan Marion (damarion) Sent: Wednesday, September 26, 2018 5:52 PM To: Lijian Zhang (Arm Technology China) Cc: d...@barachs.net; vpp-dev@lists.fd.io Subject: Re: unformat_check_input crashed during multi

Re: [vpp-dev] unformat_check_input crashed during multiarch function initialization

2018-09-26 Thread Damjan Marion via Lists.Fd.Io
Ah, i forgot that you are executing this from constructor before clib_mem_init happens. So it is expected not to work. You will need to stay on your old code, sorry for wasting your time.. :( -- Damjan On 26 Sep 2018, at 11:28, Lijian Zhang (Arm Technology China) mailto:lijian.zh...@arm.com>>

[vpp-dev] unformat_check_input crashed during multiarch function initialization

2018-09-26 Thread Lijian Zhang
Hi Damjan, I tried to rewrite the function reading CPU info from /proc/cpuinfo, using VPP style functions, for multi-arch dynamic function selection. But function unformat_check_input failed and crashed. I pasted the /proc/cpuinfo reading function and gdb process as below. Could you suggest on thi