kernsuite / packaging

Use this repository to report issues with packages or request new packages
13 stars 4 forks source link

dspsr_1.0+git20181115-2 gives buffer overflow #172

Closed gijzelaerr closed 4 years ago

gijzelaerr commented 5 years ago
λ  /usr/bin/dspsr tutorial.fil                               
*** buffer overflow detected ***: /usr/bin/dspsr terminated  
[1]    8085 abort (core dumped)  /usr/bin/dspsr tutorial.fil 
telegraphic commented 5 years ago

Well, it looks like that tutorial.fil wasn't the best choice for testing sorry, as DSPSR need to know the source name (to look up ephemeris) and the telescope name (to look up location).

It should run if two extra flags are set

dspsr -A -L 1 -N J0835-4510 -k PKS tutorial.fil

Where J0835-4510 is the Vela pulsar, and PKS is the key for Parkes.

My install did not however give a buffer overflow when I ran the example above, but a psrcat error message:

Singularity dspsr.simg:~/tiddalik/celery/apps/dspsr> dspsr -A -L 1 tutorial.fil
dspsr: Single archive with multiple sub-integrations

Error::stack
    Pulsar::Parameters::Lookup::operator()
    Pulsar::Parameters::Lookup::operator()system (psrcat -e P: 250.000000000000 ms, DM: 30.000 > P: 250.000000000000 ms, DM: 30.000.eph)
Error::FailedSys
gijzelaerr commented 5 years ago

Supplying the flags still gives a segfault.

Reported the issue upstream (they opened up their bugtracker finally). https://sourceforge.net/p/dspsr/bugs/72/

rudrathegreat commented 4 years ago

Hi I am experiencing this problem below -

dspsr: Source name set to J0835-4510
*** buffer overflow detected ***: dspsr terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x67377)[0xb6ef8377]
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x68)[0xb6f88708]
/lib/i386-linux-gnu/libc.so.6(+0xf58f8)[0xb6f868f8]
/lib/i386-linux-gnu/libc.so.6(+0xf50d8)[0xb6f860d8]
/lib/i386-linux-gnu/libc.so.6(_IO_default_xsputn+0x74)[0xb6efc2d4]
/lib/i386-linux-gnu/libc.so.6(_IO_padn+0x75)[0xb6ef05f5]
/lib/i386-linux-gnu/libc.so.6(+0x4094f)[0xb6ed194f]
/lib/i386-linux-gnu/libc.so.6(_IO_vfprintf+0x341)[0xb6ed3401]
/lib/i386-linux-gnu/libc.so.6(__vsprintf_chk+0x8d)[0xb6f8616d]
/lib/i386-linux-gnu/libc.so.6(__sprintf_chk+0x20)[0xb6f860c0]
dspsr[0x8160d53]
dspsr[0x81610c9]
dspsr[0x8156d12]
dspsr[0x810ea0c]
dspsr[0x80dc8ce]
dspsr[0x8056228]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0xb6ea9637]
dspsr[0x806d039]
======= Memory map: ========
08048000-08695000 r-xp 00000000 08:01 30154854   /home/rudra/Pulsar/bin/dspsr
08696000-08697000 r--p 0064d000 08:01 30154854   /home/rudra/Pulsar/bin/dspsr
08697000-0869a000 rw-p 0064e000 08:01 30154854   /home/rudra/Pulsar/bin/dspsr
0869a000-08785000 rw-p 00000000 00:00 0 
08a27000-08a69000 rw-p 00000000 00:00 0          [heap]
b6dd9000-b6ddd000 rw-p 00000000 00:00 0 
b6ddd000-b6de0000 r-xp 00000000 08:01 394246     /lib/i386-linux-gnu/libdl-2.23.so
b6de0000-b6de1000 r--p 00002000 08:01 394246     /lib/i386-linux-gnu/libdl-2.23.so
b6de1000-b6de2000 rw-p 00003000 08:01 394246     /lib/i386-linux-gnu/libdl-2.23.so
b6de2000-b6e74000 r-xp 00000000 08:01 14418122   /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
b6e74000-b6e75000 r--p 00091000 08:01 14418122   /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
b6e75000-b6e76000 rw-p 00092000 08:01 14418122   /usr/lib/i386-linux-gnu/libquadmath.so.0.0.0
b6e76000-b6e8f000 r-xp 00000000 08:01 394541     /lib/i386-linux-gnu/libz.so.1.2.8
b6e8f000-b6e90000 r--p 00018000 08:01 394541     /lib/i386-linux-gnu/libz.so.1.2.8
b6e90000-b6e91000 rw-p 00019000 08:01 394541     /lib/i386-linux-gnu/libz.so.1.2.8
b6e91000-b7041000 r-xp 00000000 08:01 394244     /lib/i386-linux-gnu/libc-2.23.so
b7041000-b7043000 r--p 001af000 08:01 394244     /lib/i386-linux-gnu/libc-2.23.so
b7043000-b7044000 rw-p 001b1000 08:01 394244     /lib/i386-linux-gnu/libc-2.23.so
b7044000-b7047000 rw-p 00000000 00:00 0 
b7047000-b7063000 r-xp 00000000 08:01 394584     /lib/i386-linux-gnu/libgcc_s.so.1
b7063000-b7064000 rw-p 0001b000 08:01 394584     /lib/i386-linux-gnu/libgcc_s.so.1
b7064000-b7065000 rw-p 00000000 00:00 0 
b7065000-b7087000 r-xp 00000000 08:01 14418460   /usr/lib/i386-linux-gnu/libgomp.so.1.0.0
b7087000-b7088000 r--p 00021000 08:01 14418460   /usr/lib/i386-linux-gnu/libgomp.so.1.0.0
b7088000-b7089000 rw-p 00022000 08:01 14418460   /usr/lib/i386-linux-gnu/libgomp.so.1.0.0
b7089000-b70dc000 r-xp 00000000 08:01 393253     /lib/i386-linux-gnu/libm-2.23.so
b70dc000-b70dd000 r--p 00052000 08:01 393253     /lib/i386-linux-gnu/libm-2.23.so
b70dd000-b70de000 rw-p 00053000 08:01 393253     /lib/i386-linux-gnu/libm-2.23.so
b70de000-b724b000 r-xp 00000000 08:01 14418179   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21
b724b000-b724c000 ---p 0016d000 08:01 14418179   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21
b724c000-b7251000 r--p 0016d000 08:01 14418179   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21
b7251000-b7252000 rw-p 00172000 08:01 14418179   /usr/lib/i386-linux-gnu/libstdc++.so.6.0.21
b7252000-b7255000 rw-p 00000000 00:00 0 
b7255000-b7362000 r-xp 00000000 08:01 14418171   /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
b7362000-b7363000 ---p 0010d000 08:01 14418171   /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
b7363000-b7364000 r--p 0010d000 08:01 14418171   /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
b7364000-b7365000 rw-p 0010e000 08:01 14418171   /usr/lib/i386-linux-gnu/libgfortran.so.3.0.0
b7365000-b736e000 r-xp 00000000 08:01 14562724   /usr/share/tempo2/lib/libtempo2pred.so.1.0.1
b736e000-b736f000 r--p 00008000 08:01 14562724   /usr/share/tempo2/lib/libtempo2pred.so.1.0.1
b736f000-b7370000 rw-p 00009000 08:01 14562724   /usr/share/tempo2/lib/libtempo2pred.so.1.0.1
b7370000-b7371000 rw-p 00000000 00:00 0 
b7371000-b738a000 r-xp 00000000 08:01 394243     /lib/i386-linux-gnu/libpthread-2.23.so
b738a000-b738b000 r--p 00018000 08:01 394243     /lib/i386-linux-gnu/libpthread-2.23.so
b738b000-b738c000 rw-p 00019000 08:01 394243     /lib/i386-linux-gnu/libpthread-2.23.so
b738c000-b738e000 rw-p 00000000 00:00 0 
b738e000-b751f000 r-xp 00000000 08:01 14428743   /usr/lib/i386-linux-gnu/libcfitsio.so.2.3.37
b751f000-b7520000 r--p 00190000 08:01 14428743   /usr/lib/i386-linux-gnu/libcfitsio.so.2.3.37
b7520000-b7521000 rw-p 00191000 08:01 14428743   /usr/lib/i386-linux-gnu/libcfitsio.so.2.3.37
b7521000-b758c000 rw-p 00000000 00:00 0 
b758c000-b7770000 r-xp 00000000 08:01 14422841   /usr/lib/i386-linux-gnu/libfftw3f.so.3.4.4
b7770000-b777c000 r--p 001e3000 08:01 14422841   /usr/lib/i386-linux-gnu/libfftw3f.so.3.4.4
b777c000-b777d000 rw-p 001ef000 08:01 14422841   /usr/lib/i386-linux-gnu/libfftw3f.so.3.4.4
b7799000-b779a000 rw-p 00000000 00:00 0 
b779a000-b77a3000 r-xp 00000000 08:01 30153852   /home/rudra/Pulsar/lib/libepsic.so.0.0.0
b77a3000-b77a4000 ---p 00009000 08:01 30153852   /home/rudra/Pulsar/lib/libepsic.so.0.0.0
b77a4000-b77a5000 r--p 00009000 08:01 30153852   /home/rudra/Pulsar/lib/libepsic.so.0.0.0
b77a5000-b77a6000 rw-p 0000a000 08:01 30153852   /home/rudra/Pulsar/lib/libepsic.so.0.0.0
b77a6000-b77a7000 rw-p 00000000 00:00 0 
b77a7000-b77a9000 r--p 00000000 00:00 0          [vvar]
b77a9000-b77aa000 r-xp 00000000 00:00 0          [vdso]
b77aa000-b77cd000 r-xp 00000000 08:01 394242     /lib/i386-linux-gnu/ld-2.23.so
b77cd000-b77ce000 r--p 00022000 08:01 394242     /lib/i386-linux-gnu/ld-2.23.so
b77ce000-b77cf000 rw-p 00023000 08:01 394242     /lib/i386-linux-gnu/ld-2.23.so
bfb4e000-bfb6f000 rw-p 00000000 00:00 0          [stack]
Aborted (core dumped)

I am using dspsr 2020 version and an xubuntu system with the latest builds for psrchive and tempo2 as well

gijzelaerr commented 4 years ago

Unfortunately, due to time and budget constraints we are dropping pulsar packages from KERN-6.