[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

openarc -n causes a core dump


Hi,

installed openarc 0.1.0 on Ubuntu 16.04 LTS. This went fine, no errors. Now that I want to use openarc -n to verify the configuration, I get:

# /usr/local/openarc-0.1.0/sbin/openarc -n
*** Error in `/usr/local/openarc-0.1.0/sbin/openarc': free(): invalid pointer: 0x000000000040e186 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f83a4a847e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f83a4a8d37a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f83a4a9153c]
/usr/local/openarc-0.1.0/sbin/openarc[0x408c58]
/usr/local/openarc-0.1.0/sbin/openarc[0x408cd3]
/usr/local/openarc-0.1.0/sbin/openarc[0x4050d3]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f83a4a2d830]
/usr/local/openarc-0.1.0/sbin/openarc[0x4051c9]
======= Memory map: ========
00400000-00412000 r-xp 00000000 ca:01 18483320 /usr/local/openarc-0.1.0/sbin/openarc 00611000-00612000 r--p 00011000 ca:01 18483320 /usr/local/openarc-0.1.0/sbin/openarc 00612000-00613000 rw-p 00012000 ca:01 18483320 /usr/local/openarc-0.1.0/sbin/openarc
00613000-00623000 rw-p 00000000 00:00 0
00f24000-00f45000 rw-p 00000000 00:00 0                                  [heap]
7f83a0000000-7f83a0021000 rw-p 00000000 00:00 0
7f83a0021000-7f83a4000000 ---p 00000000 00:00 0
7f83a45f3000-7f83a4609000 r-xp 00000000 ca:01 11010264                   /lib/x86_64-linux-gnu/libgcc_s.so.1 7f83a4609000-7f83a4808000 ---p 00016000 ca:01 11010264                   /lib/x86_64-linux-gnu/libgcc_s.so.1 7f83a4808000-7f83a4809000 rw-p 00015000 ca:01 11010264                   /lib/x86_64-linux-gnu/libgcc_s.so.1 7f83a4809000-7f83a480c000 r-xp 00000000 ca:01 11015722                   /lib/x86_64-linux-gnu/libdl-2.23.so 7f83a480c000-7f83a4a0b000 ---p 00003000 ca:01 11015722                   /lib/x86_64-linux-gnu/libdl-2.23.so 7f83a4a0b000-7f83a4a0c000 r--p 00002000 ca:01 11015722                   /lib/x86_64-linux-gnu/libdl-2.23.so 7f83a4a0c000-7f83a4a0d000 rw-p 00003000 ca:01 11015722                   /lib/x86_64-linux-gnu/libdl-2.23.so 7f83a4a0d000-7f83a4bcd000 r-xp 00000000 ca:01 11015718                   /lib/x86_64-linux-gnu/libc-2.23.so 7f83a4bcd000-7f83a4dcd000 ---p 001c0000 ca:01 11015718                   /lib/x86_64-linux-gnu/libc-2.23.so 7f83a4dcd000-7f83a4dd1000 r--p 001c0000 ca:01 11015718                   /lib/x86_64-linux-gnu/libc-2.23.so 7f83a4dd1000-7f83a4dd3000 rw-p 001c4000 ca:01 11015718                   /lib/x86_64-linux-gnu/libc-2.23.so
7f83a4dd3000-7f83a4dd7000 rw-p 00000000 00:00 0
7f83a4dd7000-7f83a4def000 r-xp 00000000 ca:01 11015717 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f83a4def000-7f83a4fee000 ---p 00018000 ca:01 11015717 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f83a4fee000-7f83a4fef000 r--p 00017000 ca:01 11015717 /lib/x86_64-linux-gnu/libpthread-2.23.so 7f83a4fef000-7f83a4ff0000 rw-p 00018000 ca:01 11015717 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f83a4ff0000-7f83a4ff4000 rw-p 00000000 00:00 0
7f83a4ff4000-7f83a5007000 r-xp 00000000 ca:01 11010077                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2 7f83a5007000-7f83a5206000 ---p 00013000 ca:01 11010077                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2 7f83a5206000-7f83a5207000 r--p 00012000 ca:01 11010077                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2 7f83a5207000-7f83a5208000 rw-p 00013000 ca:01 11010077                   /lib/x86_64-linux-gnu/libbsd.so.0.8.2
7f83a5208000-7f83a5209000 rw-p 00000000 00:00 0
7f83a5209000-7f83a5220000 r-xp 00000000 ca:01 11015724                   /lib/x86_64-linux-gnu/libresolv-2.23.so 7f83a5220000-7f83a5420000 ---p 00017000 ca:01 11015724                   /lib/x86_64-linux-gnu/libresolv-2.23.so 7f83a5420000-7f83a5421000 r--p 00017000 ca:01 11015724                   /lib/x86_64-linux-gnu/libresolv-2.23.so 7f83a5421000-7f83a5422000 rw-p 00018000 ca:01 11015724                   /lib/x86_64-linux-gnu/libresolv-2.23.so
7f83a5422000-7f83a5424000 rw-p 00000000 00:00 0
7f83a5424000-7f83a563e000 r-xp 00000000 ca:01 11010257 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f83a563e000-7f83a583d000 ---p 0021a000 ca:01 11010257 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f83a583d000-7f83a5859000 r--p 00219000 ca:01 11010257 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 7f83a5859000-7f83a5865000 rw-p 00235000 ca:01 11010257 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
7f83a5865000-7f83a5868000 rw-p 00000000 00:00 0
7f83a5868000-7f83a58c6000 r-xp 00000000 ca:01 11010267                   /lib/x86_64-linux-gnu/libssl.so.1.0.0 7f83a58c6000-7f83a5ac6000 ---p 0005e000 ca:01 11010267                   /lib/x86_64-linux-gnu/libssl.so.1.0.0 7f83a5ac6000-7f83a5aca000 r--p 0005e000 ca:01 11010267                   /lib/x86_64-linux-gnu/libssl.so.1.0.0 7f83a5aca000-7f83a5ad1000 rw-p 00062000 ca:01 11010267                   /lib/x86_64-linux-gnu/libssl.so.1.0.0 7f83a5ad1000-7f83a5adf000 r-xp 00000000 ca:01 16781384 /usr/lib/x86_64-linux-gnu/libmilter.so.1.0.1 7f83a5adf000-7f83a5cde000 ---p 0000e000 ca:01 16781384 /usr/lib/x86_64-linux-gnu/libmilter.so.1.0.1 7f83a5cde000-7f83a5cdf000 r--p 0000d000 ca:01 16781384 /usr/lib/x86_64-linux-gnu/libmilter.so.1.0.1 7f83a5cdf000-7f83a5ce0000 rw-p 0000e000 ca:01 16781384 /usr/lib/x86_64-linux-gnu/libmilter.so.1.0.1
7f83a5ce0000-7f83a5ce2000 rw-p 00000000 00:00 0
7f83a5ce2000-7f83a5cf1000 r-xp 00000000 ca:01 17565631 /usr/local/openarc-0.1.0/lib/libopenarc.so.0.0.0 7f83a5cf1000-7f83a5ef0000 ---p 0000f000 ca:01 17565631 /usr/local/openarc-0.1.0/lib/libopenarc.so.0.0.0 7f83a5ef0000-7f83a5ef1000 r--p 0000e000 ca:01 17565631 /usr/local/openarc-0.1.0/lib/libopenarc.so.0.0.0 7f83a5ef1000-7f83a5ef2000 rw-p 0000f000 ca:01 17565631 /usr/local/openarc-0.1.0/lib/libopenarc.so.0.0.0 7f83a5ef2000-7f83a5f18000 r-xp 00000000 ca:01 11015716                   /lib/x86_64-linux-gnu/ld-2.23.so
7f83a6109000-7f83a610f000 rw-p 00000000 00:00 0
7f83a6115000-7f83a6117000 rw-p 00000000 00:00 0
7f83a6117000-7f83a6118000 r--p 00025000 ca:01 11015716                   /lib/x86_64-linux-gnu/ld-2.23.so 7f83a6118000-7f83a6119000 rw-p 00026000 ca:01 11015716                   /lib/x86_64-linux-gnu/ld-2.23.so
7f83a6119000-7f83a611a000 rw-p 00000000 00:00 0
7ffc0350c000-7ffc0352d000 rw-p 00000000 00:00 0                          [stack] 7ffc035e2000-7ffc035e5000 r--p 00000000 00:00 0                          [vvar] 7ffc035e5000-7ffc035e7000 r-xp 00000000 00:00 0                          [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

apport.log shows:

# cat /var/log/apport.log
ERROR: apport (pid 6527) Fri Aug 10 22:15:34 2018: called for pid 6526, signal 6, core limit 18446744073709551615, dump mode 1 ERROR: apport (pid 6527) Fri Aug 10 22:15:34 2018: ignoring implausibly big core limit, treating as unlimited ERROR: apport (pid 6527) Fri Aug 10 22:15:34 2018: executable: /usr/local/openarc-0.1.0/sbin/openarc (command line "/usr/local/openarc-0.1.0/sbin/openarc -n") ERROR: apport (pid 6527) Fri Aug 10 22:15:34 2018: executable does not belong to a package, ignoring ERROR: apport (pid 6527) Fri Aug 10 22:15:34 2018: writing core dump to /root/core (limit: -1)

To be honest, I have no idea to properly analyse the coredump c.q. how to properly use gdb to do the analysis.

openarc -h just runs OK:

# /usr/local/openarc-0.1.0/sbin/openarc -h
openarc: usage: openarc -p socketfile [options]
    -A              auto-restart
    -c conffile     read configuration from conffile
    -f              don't fork-and-exit
    -h              print this help message and exit
    -l              log activity to system log
    -n              check configuration and exit
    -P pidfile      file into which to write process ID
    -r              require basic RFC5322 header compliance
    -t testfile     evaluate RFC5322 message in "testfile"
    -u userid       change to specified userid
    -v              increase verbosity during testing
    -V              print version number and terminate

The contents of my openarc.conf:

AuthservID        mx3.mailtransaction.com
Domain            mx3.mailtransaction.com
KeyFile            /etc/openarc/201808.private
Mode            v
Socket            inet:3336@localhost
SoftwareHeader    yes
Syslog            Yes
UserID        openarc:openarc

Any hints what to do next? Should I file a report? What is the right way to do this?

/rolf