Menu ▾ ▴

#131 Question regarfing header of filterbank, possible incompatible

version_2.0
open
nobody
None
5
2026-02-12
2026-02-11
No

Hello, I am triying to use dspsr to fold a filterbank file and getting the singlepulse file for each rotation but I am getting this message:

*** buffer overflow detected ***: dspsr terminated

I have been reading and I suspect it could be some incompatibility in the header of the file. The observation was recorded using two ETTUS boards and summing 2 polarization, obtaining the total intensity as the recorded data.

If I read the header with "readfile" from PRESTO, this is what I get:

1: From the SIGPROC filterbank file 'ds8192_J0835-4510_A2_20260206_223701.fil':
Telescope = IAR2
Source Name = J0835-4510_A2
Backend = Ettus-B205
Obs Date String = 2026-02-07T01:37:04
MJD start time = 61078.06740740740497
RA J2000 = 08:35:20.6115
RA J2000 (deg) = 128.835881208333
Dec J2000 = -45:10:34.8751
Dec J2000 (deg) = -45.1763541944444
Tracking? = True
Azimuth (deg) = 0
Zenith Ang (deg) = 0
Number of polns = 2 (summed)
Sample time (us) = 146.285714285714
Central freq (MHz) = 1428.4375
Low channel (MHz) = 1400.875
High channel (MHz) = 1456
Channel width (MHz) = 0.875
Number of channels = 64
Total Bandwidth (MHz) = 56
Beam = 1 of 1
Beam FWHM (deg) = 1.000
Spectra per subint = 480
Spectra per file = 13631488
Time per subint (sec) = 0.0702171428571
Time per file (sec) = 1994.09195886
bits per sample = 32
bytes per spectra = 256
samples per spectra = 64
bytes per subint = 122880
samples per subint = 30720
zero offset = 0
Invert the band? = False
bytes in file header = 387

I suspect that there could be an incompatibility between the parameters of the headers and the one that dspsr would expect. I read somewhere that it could be that dspsr would check the next equation:

nchans X npol X nbits, and that it would expect this to be the bytes per spectra.

In this case the incompatibilty would arise from the expected number of spectra (64x2x4=512) against the number of spectra specified (256). I am not sure if that is actually the source of the abortion in dspsr.

I was hoping you could tell me if that is probably the source of the incompatibility, and which would be the recomended way to:

  1. change the filterbank file to be compatible (should I just rewrite the header as a 256 byte file?)
  2. which would be the way to write the header when we are recording the data so the configuration would be correctly interpreted by dspsr.

Thanks in advance.

Discussion

  • Willem van Straten

    Hi Susana,

    Thanks for the bug report. To help with debugging, could you please try the following?

    1. Run digihdr ds8192_J0835-4510_A2_20260206_223701.fil (cut and paste the output to this thread)
    2. Run dspsr -V <all other command line options> ds8192_J0835-4510_A2_20260206_223701.fil (and attach the very verbose output to this ticket)
    3. If the data are not sensitive, it would be very helpful if you could make the file available somewhere for download and provide the dspsr command line that you run on it.

    Cheers,
    Willem

     
  • Araujo Furlan Susana

    Hello Willem,

    thanks for the fast reply. Here are the outputs of 1. and 2. I also uploaded the file I'm using for this test to Google Drive. Please request access so I can grant you permission to download it: https://drive.google.com/drive/folders/1dZC9w4r6sCoba9RCQ9DkUstHQW3-xV4t?usp=sharing

    One thing that could came handy is the following: we can fold the files using PRESTO, and we pretty much can use any rutine of it (I haven't encoutered an incompatibility). I was now trying to fold using dspsr, because I wanted to extract the phase information of each single pulse in a pulsar rotation. I was not able to do that. Altough, we are able to use PSRCHIVE in the products of folding with PRESTO, such as the folded profile stored in the .pfd files, which we can aling using pam -e. We also can get the TOAS from each file, and we do have the telescope added to TEMPO2. So the issue seams to be with loading the filterbank file itself with dspsr.

    1. I tried: digihdr ds8192_J0835-4510_A2_20260206_223701.fil
      This is what I get:
    digihdr ds8192_J0835-4510_A2_20260206_223701.fil 
    *** buffer overflow detected ***: digihdr terminated
    ======= Backtrace: =========
    /lib/x86_64-linux-gnu/libc.so.6(+0x777f5)[0x7fc5384de7f5]
    /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7fc53858025c]
    /lib/x86_64-linux-gnu/libc.so.6(+0x117260)[0x7fc53857e260]
    /lib/x86_64-linux-gnu/libc.so.6(+0x1167c9)[0x7fc53857d7c9]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7fc5384e26c0]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_padn+0x6e)[0x7fc5384d5fce]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1ac4)[0x7fc5384b5c44]
    /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7fc53857d854]
    /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7fc53857d7ad]
    digihdr[0x44234d]
    digihdr[0x4426e0]
    digihdr[0x43c682]
    digihdr[0x40ba39]
    digihdr[0x408aed]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fc538487840]
    digihdr[0x409f99]
    ======= Memory map: ========
    00400000-0049a000 r-xp 00000000 08:01 7342737                            /opt/pulsar/bin/digihdr
    00699000-0069a000 r--p 00099000 08:01 7342737                            /opt/pulsar/bin/digihdr
    0069a000-0069b000 rw-p 0009a000 08:01 7342737                            /opt/pulsar/bin/digihdr
    0069b000-006a6000 rw-p 00000000 00:00 0 
    01851000-01893000 rw-p 00000000 00:00 0                                  [heap]
    7fc52cc91000-7fc530c91000 rw-p 00000000 00:00 0 
    7fc530c91000-7fc530c92000 ---p 00000000 00:00 0 
    7fc530c92000-7fc533492000 rw-p 00000000 00:00 0 
    7fc533492000-7fc533493000 ---p 00000000 00:00 0 
    7fc533493000-7fc533c93000 rw-p 00000000 00:00 0 
    7fc533c93000-7fc533c94000 ---p 00000000 00:00 0 
    7fc533c94000-7fc534494000 rw-p 00000000 00:00 0 
    7fc534494000-7fc5344b0000 r-xp 00000000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7fc5344b0000-7fc5346b0000 ---p 0001c000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7fc5346b0000-7fc5346b1000 rw-p 0001c000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7fc5346b1000-7fc5346e5000 r-xp 00000000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7fc5346e5000-7fc5348e4000 ---p 00034000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7fc5348e4000-7fc5348e9000 rw-p 00033000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7fc5348e9000-7fc53490d000 r-xp 00000000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7fc53490d000-7fc534b0d000 ---p 00024000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7fc534b0d000-7fc534b0e000 rw-p 00024000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7fc534b0e000-7fc534b17000 r-xp 00000000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7fc534b17000-7fc534d16000 ---p 00009000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7fc534d16000-7fc534d17000 r--p 00008000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7fc534d17000-7fc534d18000 rw-p 00009000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7fc534d18000-7fc534e68000 r-xp 00000000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7fc534e68000-7fc535068000 ---p 00150000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7fc535068000-7fc535069000 r--p 00150000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7fc535069000-7fc53506b000 rw-p 00151000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7fc53506b000-7fc5350e2000 rw-p 00000000 00:00 0 
    7fc5350e2000-7fc5351e1000 r-xp 00000000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7fc5351e1000-7fc5353e1000 ---p 000ff000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7fc5353e1000-7fc5353e3000 rw-p 000ff000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7fc5353e3000-7fc5353eb000 rw-p 00102000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7fc5353eb000-7fc537784000 r-xp 00000000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7fc537784000-7fc537984000 ---p 02399000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7fc537984000-7fc5379a3000 rw-p 02399000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7fc5379a3000-7fc5379b9000 rw-p 00000000 00:00 0 
    7fc5379b9000-7fc537c07000 r-xp 00000000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7fc537c07000-7fc537e06000 ---p 0024e000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7fc537e06000-7fc537e1a000 rw-p 0024d000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7fc537e1a000-7fc537e53000 r-xp 00000000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7fc537e53000-7fc538053000 ---p 00039000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7fc538053000-7fc53805b000 rw-p 00039000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7fc53805b000-7fc53805c000 rw-p 00000000 00:00 0 
    7fc53805c000-7fc538253000 r-xp 00000000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7fc538253000-7fc538452000 ---p 001f7000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7fc538452000-7fc538466000 r--p 001f6000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7fc538466000-7fc538467000 rw-p 0020a000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7fc538467000-7fc538627000 r-xp 00000000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7fc538627000-7fc538827000 ---p 001c0000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7fc538827000-7fc53882b000 r--p 001c0000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7fc53882b000-7fc53882d000 rw-p 001c4000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7fc53882d000-7fc538831000 rw-p 00000000 00:00 0 
    7fc538831000-7fc538847000 r-xp 00000000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7fc538847000-7fc538a46000 ---p 00016000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7fc538a46000-7fc538a47000 rw-p 00015000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7fc538a47000-7fc538a48000 rw-p 00074000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7fc538a48000-7fc538b50000 r-xp 00000000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7fc538b50000-7fc538d4f000 ---p 00108000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7fc538d4f000-7fc538d50000 r--p 00107000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7fc538d50000-7fc538d51000 rw-p 00108000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7fc538d51000-7fc538ebc000 r-xp 00000000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7fc538ebc000-7fc5390bc000 ---p 0016b000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7fc5390bc000-7fc5390c6000 r--p 0016b000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7fc5390c6000-7fc5390c8000 rw-p 00175000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7fc5390c8000-7fc5390cc000 rw-p 00000000 00:00 0 
    7fc5390cc000-7fc53910d000 rw-p 00178000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7fc53910d000-7fc539125000 r-xp 00000000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7fc539125000-7fc539324000 ---p 00018000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7fc539324000-7fc539325000 r--p 00017000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7fc539325000-7fc539326000 rw-p 00018000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7fc539326000-7fc53932a000 rw-p 00000000 00:00 0 
    7fc53932a000-7fc5394f6000 r-xp 00000000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7fc5394f6000-7fc5396f6000 ---p 001cc000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7fc5396f6000-7fc5396f9000 r--p 001cc000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7fc5396f9000-7fc53970c000 rw-p 001cf000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7fc53970c000-7fc53970f000 rw-p 00000000 00:00 0 
    7fc53970f000-7fc539735000 r-xp 00000000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7fc539919000-7fc539922000 rw-p 00000000 00:00 0 
    7fc539932000-7fc539934000 rw-p 00000000 00:00 0 
    7fc539934000-7fc539935000 r--p 00025000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7fc539935000-7fc539936000 rw-p 00026000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7fc539936000-7fc539937000 rw-p 00000000 00:00 0 
    7ffe9c22a000-7ffe9c24b000 rw-p 00000000 00:00 0                          [stack]
    7ffe9c3f3000-7ffe9c3f5000 r--p 00000000 00:00 0                          [vvar]
    7ffe9c3f5000-7ffe9c3f7000 r-xp 00000000 00:00 0                          [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
    Aborted (core dumped)
    

    1. All the command line options with verbose:
    dspsr -V -s -b 128 -e ar -O test_vela -nsub 64 -k IAR2 -E /opt/pulsar/puma/pardir/J0835-4510.par ds8192_J0835-4510_A2_20260206_223701.fil 
    dspsr: Loading ephemeris from /opt/pulsar/puma/pardir/J0835-4510.par
    using dsp::LoadToFold
    opening data file ds8192_J0835-4510_A2_20260206_223701.fil
    dsp::File::create filename='ds8192_J0835-4510_A2_20260206_223701.fil
    dsp::File::create with 22 registered sub-classes
    dsp::File::create testing Dummy
    dsp::DummyFile::is_valid first line != DUMMY
    dsp::File::create testing DADA
    dsp::DADAFile::is_valid file has no header and no matching header file found
    dsp::File::create testing ASP
    dsp::ASPFile invalid band_dir=1717662817
    dsp::File::create testing BCPM
    dsp::BCPMFile::is_valid first 10 characters '
                                                 ' != 'NBPPSEARCH'
    dsp::File::create testing CPSR
    PSPMverify: invalid file_size:-37967416
    dsp::File::create testing CPSR2
    dsp::File::create testing GMRT
    dsp::GMRTFile invalid band_dir=1717662817
    dsp::File::create testing GMRT
    dsp::GMRTBinaryFile::get_header could not open 'ds8192_J0835-4510_A2_20260206_223701.fil.hdr'
    dsp::GMRTBinaryFile::is_valid empty header
    dsp::File::create testing GMRTFilterbank
    dsp::GMRTFilterbankFile::is_valid ds8192_J0835-4510_A2_20260206_223701.fil does not end int 'dat'
    dsp::File::create testing SMRO
    dsp::File::create testing LBADR64
    dsp::File::create testing Mark4
    dsp::File::create testing Mark5
    Mark5File: no hdr file (ds8192_J0835-4510_A2_20260206_223701.fil.hdr)
    dsp::File::create testing Maxim
    dsp::File::create testing MWA
    Entered dsp::MWAFile::is_valid(ds8192_J0835-4510_A2_20260206_223701.fil)
    dsp::File::create testing Pdev
    dsp::PdevFile::is_valid no magic number, trying ASCII header
    dsp::PdevFile::is_valid no INSTRUMENT line
    dsp::File::create testing PMDAQ
    dsp::Input ctor this=0x8686f0
    dsp::PMDAQFile::get_header looks for header called ds8192_J0835-4510_A2_20260206_223701.hdr
    PMDAQFile::get_header - failed open(ds8192_J0835-4510_A2_20260206_223701.hdr): No such file or directorydsp::File::create testing PuMa2
    dsp::PuMa2File::is_valid HDR_VERSION not defined
    dsp::File::create testing S2
    *** buffer overflow detected ***: dspsr terminated
    ======= Backtrace: =========
    /lib/x86_64-linux-gnu/libc.so.6(+0x777f5)[0x7f381dcee7f5]
    /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f381dd9025c]
    /lib/x86_64-linux-gnu/libc.so.6(+0x117260)[0x7f381dd8e260]
    /lib/x86_64-linux-gnu/libc.so.6(+0x1167c9)[0x7f381dd8d7c9]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f381dcf26c0]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_padn+0x6e)[0x7f381dce5fce]
    /lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1ac4)[0x7f381dcc5c44]
    /lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f381dd8d854]
    /lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f381dd8d7ad]
    dspsr[0x4f3ffd]
    dspsr[0x4f4390]
    dspsr[0x4e9ff2]
    dspsr[0x4a72b9]
    dspsr[0x483212]
    dspsr[0x414239]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f381dc97840]
    dspsr[0x418899]
    ======= Memory map: ========
    00400000-00588000 r-xp 00000000 08:01 7342743                            /opt/pulsar/bin/dspsr
    00788000-00789000 r--p 00188000 08:01 7342743                            /opt/pulsar/bin/dspsr
    00789000-0078a000 rw-p 00189000 08:01 7342743                            /opt/pulsar/bin/dspsr
    0078a000-00796000 rw-p 00000000 00:00 0 
    00815000-00878000 rw-p 00000000 00:00 0                                  [heap]
    7f38124a1000-7f38184a1000 rw-p 00000000 00:00 0 
    7f38184a1000-7f38184a2000 ---p 00000000 00:00 0 
    7f38184a2000-7f3818ca2000 rw-p 00000000 00:00 0 
    7f3818ca2000-7f3818ca3000 ---p 00000000 00:00 0 
    7f3818ca3000-7f38194a3000 rw-p 00000000 00:00 0 
    7f38194a3000-7f38194a4000 ---p 00000000 00:00 0 
    7f38194a4000-7f3819ca4000 rw-p 00000000 00:00 0 
    7f3819ca4000-7f3819cd8000 r-xp 00000000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7f3819cd8000-7f3819ed7000 ---p 00034000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7f3819ed7000-7f3819edc000 rw-p 00033000 08:01 3278124                    /opt/conda/lib/libtinfo.so.5.9
    7f3819edc000-7f3819f00000 r-xp 00000000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7f3819f00000-7f381a100000 ---p 00024000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7f381a100000-7f381a101000 rw-p 00024000 08:01 3278091                    /opt/conda/lib/libncurses.so.5.9
    7f381a101000-7f381a11d000 r-xp 00000000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7f381a11d000-7f381a31d000 ---p 0001c000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7f381a31d000-7f381a31e000 rw-p 0001c000 08:01 3278139                    /opt/conda/lib/libz.so.1.2.11
    7f381a31e000-7f381a327000 r-xp 00000000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7f381a327000-7f381a526000 ---p 00009000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7f381a526000-7f381a527000 r--p 00008000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7f381a527000-7f381a528000 rw-p 00009000 08:01 5903261                    /opt/conda/lib/libtempo2pred.so.1.0.1
    7f381a528000-7f381a561000 r-xp 00000000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7f381a561000-7f381a761000 ---p 00039000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7f381a761000-7f381a769000 rw-p 00039000 08:01 3278110                    /opt/conda/lib/libreadline.so.6.2
    7f381a769000-7f381a76a000 rw-p 00000000 00:00 0 
    7f381a76a000-7f381a961000 r-xp 00000000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7f381a961000-7f381ab60000 ---p 001f7000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7f381ab60000-7f381ab74000 r--p 001f6000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7f381ab74000-7f381ab75000 rw-p 0020a000 08:01 4881948                    /usr/lib/x86_64-linux-gnu/libfftw3f.so.3.4.4
    7f381ab75000-7f381acc5000 r-xp 00000000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7f381acc5000-7f381aec5000 ---p 00150000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7f381aec5000-7f381aec6000 r--p 00150000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7f381aec6000-7f381aec8000 rw-p 00151000 08:01 6168923                    /usr/lib/x86_64-linux-gnu/libcfitsio.so.2.3.37
    7f381aec8000-7f381af3f000 rw-p 00000000 00:00 0 
    7f381af3f000-7f381d2d8000 r-xp 00000000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7f381d2d8000-7f381d4d8000 ---p 02399000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7f381d4d8000-7f381d4f7000 rw-p 02399000 08:01 5246021                    /opt/conda/lib/libopenblasp-r0.2.19.so
    7f381d4f7000-7f381d50d000 rw-p 00000000 00:00 0 
    7f381d50d000-7f381d75b000 r-xp 00000000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7f381d75b000-7f381d95a000 ---p 0024e000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7f381d95a000-7f381d96e000 rw-p 0024d000 08:01 5119234                    /opt/conda/lib/libgsl.so.19.2.0
    7f381d96e000-7f381da6d000 r-xp 00000000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7f381da6d000-7f381dc6d000 ---p 000ff000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7f381dc6d000-7f381dc6f000 rw-p 000ff000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7f381dc6f000-7f381dc77000 rw-p 00102000 08:01 5245865                    /opt/conda/lib/libgfortran.so.3.0.0
    7f381dc77000-7f381de37000 r-xp 00000000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7f381de37000-7f381e037000 ---p 001c0000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7f381e037000-7f381e03b000 r--p 001c0000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7f381e03b000-7f381e03d000 rw-p 001c4000 08:01 8007606                    /lib/x86_64-linux-gnu/libc-2.23.so
    7f381e03d000-7f381e041000 rw-p 00000000 00:00 0 
    7f381e041000-7f381e057000 r-xp 00000000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7f381e057000-7f381e256000 ---p 00016000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7f381e256000-7f381e257000 rw-p 00015000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7f381e257000-7f381e258000 rw-p 00074000 08:01 3415883                    /opt/conda/lib/libgcc_s.so.1
    7f381e258000-7f381e360000 r-xp 00000000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7f381e360000-7f381e55f000 ---p 00108000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7f381e55f000-7f381e560000 r--p 00107000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7f381e560000-7f381e561000 rw-p 00108000 08:01 8007601                    /lib/x86_64-linux-gnu/libm-2.23.so
    7f381e561000-7f381e6cc000 r-xp 00000000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7f381e6cc000-7f381e8cc000 ---p 0016b000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7f381e8cc000-7f381e8d6000 r--p 0016b000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7f381e8d6000-7f381e8d8000 rw-p 00175000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7f381e8d8000-7f381e8dc000 rw-p 00000000 00:00 0 
    7f381e8dc000-7f381e91d000 rw-p 00178000 08:01 3415910                    /opt/conda/lib/libstdc++.so.6.0.21
    7f381e91d000-7f381e935000 r-xp 00000000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f381e935000-7f381eb34000 ---p 00018000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f381eb34000-7f381eb35000 r--p 00017000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f381eb35000-7f381eb36000 rw-p 00018000 08:01 8007588                    /lib/x86_64-linux-gnu/libpthread-2.23.so
    7f381eb36000-7f381eb3a000 rw-p 00000000 00:00 0 
    7f381eb3a000-7f381ed06000 r-xp 00000000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7f381ed06000-7f381ef06000 ---p 001cc000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7f381ef06000-7f381ef09000 r--p 001cc000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7f381ef09000-7f381ef1c000 rw-p 001cf000 08:01 7345697                    /opt/pulsar/lib/libpsrutil.so.0.0.0
    7f381ef1c000-7f381ef1f000 rw-p 00000000 00:00 0 
    7f381ef1f000-7f381f319000 r-xp 00000000 08:01 7345826                    /opt/pulsar/lib/libpsrbase.so.0.0.0
    7f381f319000-7f381f519000 ---p 003fa000 08:01 7345826                    /opt/pulsar/lib/libpsrbase.so.0.0.0
    7f381f519000-7f381f52b000 r--p 003fa000 08:01 7345826                    /opt/pulsar/lib/libpsrbase.so.0.0.0
    7f381f52b000-7f381f53b000 rw-p 0040c000 08:01 7345826                    /opt/pulsar/lib/libpsrbase.so.0.0.0
    7f381f53b000-7f381f618000 rw-p 00000000 00:00 0 
    7f381f618000-7f381fdc1000 r-xp 00000000 08:01 7346282                    /opt/pulsar/lib/libpsrmore.so.0.0.0
    7f381fdc1000-7f381ffc1000 ---p 007a9000 08:01 7346282                    /opt/pulsar/lib/libpsrmore.so.0.0.0
    7f381ffc1000-7f381ffdd000 r--p 007a9000 08:01 7346282                    /opt/pulsar/lib/libpsrmore.so.0.0.0
    7f381ffdd000-7f3820008000 rw-p 007c5000 08:01 7346282                    /opt/pulsar/lib/libpsrmore.so.0.0.0
    7f3820008000-7f3820014000 rw-p 00000000 00:00 0 
    7f3820014000-7f382003a000 r-xp 00000000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7f382021c000-7f3820227000 rw-p 00000000 00:00 0 
    7f3820237000-7f3820239000 rw-p 00000000 00:00 0 
    7f3820239000-7f382023a000 r--p 00025000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7f382023a000-7f382023b000 rw-p 00026000 08:01 8007598                    /lib/x86_64-linux-gnu/ld-2.23.so
    7f382023b000-7f382023c000 rw-p 00000000 00:00 0 
    7fff05ae8000-7fff05b09000 rw-p 00000000 00:00 0                          [stack]
    7fff05bf7000-7fff05bf9000 r--p 00000000 00:00 0                          [vvar]
    7fff05bf9000-7fff05bfb000 r-xp 00000000 00:00 0                          [vdso]
    ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
    Aborted (core dumped)
    
     
  • Willem van Straten

    Thank you for this extra information, which provides a good clue. The last line of output from dspsr before the buffer overflow is detected ("dsp::File::create testing S2") indicates that the S2 file format test code has a bug leading to the buffer overflow.

    I'll try to fix this, but in the meantime you can work around the problem by removing "s2" from the bandends.list text files in your top-level DSPSR build directory.

    In fact, I suggest that you remove most of the file formats listed in this file unless you need them. For example, a "minimal" backends.list might look like:

    fits sigproc vdif

    This would enable DSPSR to read PSRFITS, SigProc "filterbank", and files containing VDIF packets (by default, DSPSR can also read "DADA" files: https://dspsr.sourceforge.net/manuals/dspsr/dada.shtml).

    Please let me know if removing "s2" fixes the problem - ¡Suerte!

     
  • Willem van Straten

    And thanks for the file! I think that I've fixed the S2 bug in

    commit b8de2313aefd9252ae15fec66c19ec0ea384399b (HEAD -> master, origin/master, origin/HEAD)
    Author: Willem van Straten <vanstraten.willem@gmail.com>
    Date:   Fri Feb 13 09:53:47 2026 +1300
    
        bugs-131 (fix) tci_file_hdr_init uses [safe] memset instead of [questionable] sprintf to initialize memory
    
     
  • Araujo Furlan Susana

    Thanks Willem!

    I had an issue trying to make the formats listed minimal, as the folder of dspsr appeared as executable for some reason in my installation, instead of just a folder. So I'll try the solution and let you know if it is working for me.

    Thanks again!

     

Log in to post a comment.