Menu

#3 Patch for two issues

None
closed-accepted
None
5
2015-04-17
2013-11-25
No

Hello,
I'm currently using libSerial 0.6.0rc1 to communicate with an embedded system at 460800 baud.

First of all, I noticed that SerialStreams cannot be used with this baud rate, as the corresponding defines are missing within "SerialStreamBuf.cc". I added those missing defines.

Then, I experienced random segfaults that occur after about 2-45 minutes runtime of my program, which is constantly receiving data at 2.6kB/s. I noticed the unfinished code in PosixSignalDispatcherImpl::SigactionHandler, where currently all incoming signals are passed. I just added a little check at the start of the method to ensure that only IO-signals are processed. Since then I got no segfaults anymore.

BTW, I also made some changes to get rid of some warnings that occur during compilation.

I just generated a patch to apply my changes to the src folder of version 0.6.0rc1. Please have a look!

Best regards,
oschwa2m

1 Attachments

Discussion

  • Crayzee Wulf

    Crayzee Wulf - 2015-04-17

    The code in SVN has been updated as suggested.

     
  • Crayzee Wulf

    Crayzee Wulf - 2015-04-17
    • status: open --> closed-accepted
    • Group: -->
     

Log in to post a comment.

MongoDB Logo MongoDB