Tiny Core Extensions > TCE Q&A Forum

Get a Segmentation fault trying to start StrongSwan on TCL-15.0 x86 (32-bit)

(1/3) > >>

rhermsen:
Wonder if there are known issues with TCL-15.0 x86 that can cause a segmentation fault?

I compiled StrongSwan-5.9.14 on TCL-15.0 x86 but get a:

--- Code: ---$ sudo ipsec start
Segmentation fault
--- End code ---

On CorePlus64 StrongSwan-5.9.14 works fine.

I get the also a segmentation fault with StrongSwan-5.9.5 that I compiled on TCL-13.x (which works ok on TCL-13.x and TCL-14.0).

Just want to ask here before opening a bug report with StrongSwan.

Juanito:
Do you get any messages in dmesg when you get the segfault?

rhermsen:
Hi Juanito,

Yes it indeed gives some crash details:


--- Code: ---starter[4816]: segfault at e2a451b4 ip b7f12446 sp bfbc5808 error 5 in libstrongswan.so.0.0.0[b7eea000+32000] likely on CPU 0 (core 0, socket 0)
Code: 04 01 06 11 56 04 8b 03 8b 53 04 89 c6 0f a4 d0 11 89 03 0f a4 f2 11 8b 75 ec 89 53 04 33 06 33 56 04 89 03 89 53 04 8b 46 04 <8b> 10 89 06 89 56 04 8b 01 8b 51 04 01 07 11 57 04 8b 01 8b 51 04

--- End code ---


Btw, I compiled it with the following flags (if I should look in that direction...):

--- Code: ---export CFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export CXXFLAGS="-march=i486 -mtune=i686 -Os -pipe"
export LDFLAGS="-Wl,-O1"
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

--- End code ---




curaga:
Looks like a strongswan bug, just a more rare one exposed by a newer glibc or kernel.

Rich:
Hi rhermsen

--- Quote from: rhermsen on August 24, 2024, 06:58:47 AM --- ...
--- Code: ---starter[4816]: segfault at e2a451b4 ip b7f12446 sp bfbc5808 error 5 in libstrongswan.so.0.0.0
--- End code ---
...
--- End quote ---
Error 5 according to include/uapi/asm-generic/errno-base.h in the kernel source files:

--- Code: ---#define EIO              5      /* I/O error */
--- End code ---
I found references online mentioning segfaults due to .conf file issues:
1. Using spaces instead of tabs.
2. Missing newline character at end of file.
3. Denied access to file (usually apparmor).

Navigation

[0] Message Index

[#] Next page

Go to full version