xebd / accel-ppp

High performance PPTP/L2TP/PPPoE/IPoE server for Linux
GNU General Public License v2.0
296 stars 109 forks source link

SEGFAULT when cross compile onto arm based platform. #14

Closed ericjbree closed 6 years ago

ericjbree commented 6 years ago

When running a cross compiled accel-pppd (1.11.2) on an arm based platform (clearfog-pro) accel-pppd SEGFAULTs. I compiled with the following cmake settings.

-DBUILD_PPTP_DRIVER=FALSE -DBUILD_IPOE_DRIVER=FALSE -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLOG_PGSQL=FALSE -DLOG_FILE=FALSE -DRADIUS=FALSE -DNETSNMP=TRUE -DLUA=FALSE -DLIB_SUFFIX=

I tracked down the SEGFAULT to line 320 of accel-ppd/libnetlink/iputils.c and for me, commenting out the line worked.

xebd commented 6 years ago

sorry, i have no arm-based platform and can't debug it

ericjbree commented 6 years ago

And if I am able to provide a arm-based platform? Like a clearfog pro. Would you then be able to debug it?

xebd commented 6 years ago

yes, i can try

ericjbree commented 6 years ago

Can you please send me the address where you would like it sent if I can arrange it?

alex-eri commented 6 years ago

@ericjbree What about reproduce in qemu-arm? segfault often is linker problem. Are you using musl or glibc?

ericjbree commented 6 years ago

I can try to reproduce it in qemu-arm. I am using musl as I run LEDE on a clearfog pro.