Segmentation fault (core dumped)

Started by moonmoonbird, October 26, 2020, 07:11:34 AM

Previous topic - Next topic
the process i did are:
1, change dns, make sure domain can be resolved correctly.
2, kldload linux64, make sure can run linux program on unix
3, pkg install linux_base-c7,
4, copy linux_server64 file into opnsense server, say in /usr directory, give it execute privilege, chmod +x linux_server 64
5, when run  ./linux_server64, it occured Segmentation fault (core dumped) error.

what i want to do is  to debug process using IDA (https://www.hex-rays.com/), the file  linux_server64 comes from IDA, and should be running in target server so that IDA client can communicate with target server, but failed, it seemed the security of hbsd prevent this or opnsense prevent this, please guide me how to enable it or something else. thanks very much.

HBSD prevents linux compat, there's no need to diagnose this.

But, i need this HBSD feature shut off, something like this:

Dec 30 11:08:05 kernel: pid 53076 (haproxy), uid 80: exited on signal 11
Dec 30 11:08:05 kernel: [HBSD SEGVGUARD] [haproxy (53076)] Suspension expired.
Dec 30 11:08:05 kernel: -> pid: 53076 ppid: 1 p_pax: 0x850<SEGVGUARD,ASLR,NODISALLOWMAP32BIT>


maby segvguard prevent this, i see tools/config/20.7/SMP, in the last :
# HardenedBSD goodies
options      PAX
options      PAX_ASLR
options      PAX_HARDENING
options      PAX_SEGVGUARD
options      PAX_INSECURE_MODE
options      PAX_CONTROL_ACL
options      PAX_CONTROL_ACL_OVERRIDE_SUPPORT
options      PAX_CONTROL_EXTATTR
options      PAX_JAIL_SUPPORT

if i comment out all of it ,and rebuild it ,is segvguard switch off?

October 26, 2020, 01:34:55 PM #3 Last Edit: October 26, 2020, 01:38:46 PM by littlepepper
You would likely to have better luck trying with pfsense (which is FreeBSD based) and parent fork of Opensense vs Opnsense.

Or just do debugging on a linux firewall instead of a FreeBSD one.

HardenedBSD does not support 32 bit or Linux emulation.


Cheers,
Franco

Thanks for your reply, Pfsense is closed open source,  opensense is an email signature management, have you have used other firewalls based on linux, can you recommend some top 3. Thanks.

Quote from: franco on October 26, 2020, 02:06:32 PM
HardenedBSD does not support 32 bit or Linux emulation.


Cheers,
Franco

doesnt support linux emulation, is this emphrased in the HBSD official website? why GDB is supported not linux emulation, is there any alternative to enable gdb debug rather than compile it from source?