Menu

#19 srcpd crashes when I click "Alles senden"

Version2
closed
nobody
None
5
2020-05-15
2016-09-05
Mebus
No

Hallo,

srcpd Version "srcpd V2.1.2; SRCP 0.8.4; SRCPOTHER 0.8.3" crashes on Debian 64 bit, when I click on "Gleisbild" -> "alles senden" and when "Magnetartikelstatus automatisch senden" is activated, when spdrs60 starts.

This is my srcpd.conf:

https://gist.github.com/Mebus/e30d6747500b43261376c0dd60608f6d

This is the crash in the logfiles:

https://gist.github.com/Mebus/78ce8a29b9b641c03ba2b18bb43b2f35

Also I wonder about "usleep() failed: Interrupted system call (errno = 4)".

I am using spdrs 0.6.3 and my srcpd is connected to a Uhlenbrock Intellibox.

I hope someone can fix this.

Thank you!

Mebus

Discussion

  • André Schenk

    André Schenk - 2016-09-09

    Hi Mebus,

    would you please try again with the latest release (2.1.3)? Maybe this is already fixed.

    Thanks!

    Best regards,

    André

     
  • Mebus

    Mebus - 2016-09-09

    Hallo André,

    I installed the srcpd_2.1.3-1trusty1_amd64.deb package, but srcpd still crashes, when I click "Alles senden" in spdrs60.

    This is the last log entry in /var/log/messages

    "Sep 9 16:54:24 modellbahn2 kernel: [ 1880.187338] srcpd[10899]: segfault at d0ad30 ip 000000000040a8c2 sp 00007fd39a6d4858 error 4 in srcpd[400000+3b000]"

    What IDE should be used to debug srcpd? Can you give me some hints on howto import srcpd into an IDE, that can be used to debug srcpd.

    Thank you!

    Greetings,

    Mebus

     
  • Mebus

    Mebus - 2016-09-09

    Hallo Andre,

    I think I found the bug. I used gdb:

    Core was generated by `srcpd -n'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0x000000000040a8c2 in cacheInitGL (busnumber=1, addr=419, 
        protocol=-112 '\220', protoversion=-1543519536, n_fs=0, 
        n_func=-1543523726) at srcp-gl.c:277
    277 }
    

    I changed "number_ga" and "number_gl" for the intellibox from 200 to 500 in my srcpd.conf. Now it doesn't crash anymore, when I click "Alles senden" in spdrs60.

    I think this should be fixed, so that srcpd prints a warning in the logs, instead of crashing. Can somebody do this?

    Mebus

     
  • André Schenk

    André Schenk - 2016-09-11

    Hi Mebus,

    as far as I can see this is already fixed in trunk. Just to be sure: Would you please test if the issue is fixed in http://bonus.dyn.bawue.de/download/srcpd_2.1.4-1_amd64.deb ?

    Thanks!

    Best regards,

    André

     
  • Guido Scholz

    Guido Scholz - 2020-05-15
    • status: open --> closed
     

Log in to post a comment.