Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ser2net: v3.3 - Segmentation fault (Lede on TL-WR1043v3) #4048

Closed
walx666 opened this issue Feb 21, 2017 · 3 comments
Closed

ser2net: v3.3 - Segmentation fault (Lede on TL-WR1043v3) #4048

walx666 opened this issue Feb 21, 2017 · 3 comments
Assignees

Comments

@walx666
Copy link

walx666 commented Feb 21, 2017

If you start ser2net with configline like :
ser2net -C 4001:raw:300:/dev/ttyUSB0:57600:NONE:1STOPBIT:8DATABITS:-XONXOFF:-RTSCTS:LOCAL -u

you will get “Segmentation fault”

Starting ser2net without argument seems to be ok.

On OpenWRT 15.05.1 and earlier, there was not a problem with that commandline.

root@test-biom-r1:~#ser2net -C 4001:raw:300:/dev/ttyUSB0:57600:NONE:1STOPBIT:8DATABITS:-XONXOFF:-RTSCTS:LOCAL -u
Segmentation fault
root@test-lede:~# logread | tail
Mon Feb 20 14:01:04 2017 user.err : Unknown config item: 57600:NONE:1STOPBIT:8DATABITS:-XONXOFF:-RTSCTS:LOCAL on line 0
Mon Feb 20 14:01:04 2017 kern.info kernel: [ 4587.292580]
Mon Feb 20 14:01:04 2017 kern.info kernel: [ 4587.292580] do_page_fault(): sending SIGSEGV to ser2net for invalid read access from 000051c4
Mon Feb 20 14:01:04 2017 kern.info kernel: [ 4587.301306] epc = 00408f9d in ser2net[400000+f000]
Mon Feb 20 14:01:04 2017 kern.info kernel: [ 4587.306243] ra = 0040954d in ser2net[400000+f000]
Mon Feb 20 14:01:04 2017 kern.info kernel: [ 4587.311178]
root@test-lede:~# ls /dev/ttyUSB*
/dev/ttyUSB0

@mhei mhei self-assigned this Feb 23, 2017
@mhei
Copy link
Member

mhei commented Feb 24, 2017

I'm wondering whether this command line has valid syntax, because the part after the baudrate should be whitespace separated and not by colon... So this should work: ser2net -C "4003:raw:300:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS -XONXOFF -RTSCTS LOCAL" -u
But I can reproduce the segmentation fault with ser2net v3.3 even on my local desktop system, but I cannot reproduce it with ser2net 3.4.
I recently updated the package feed to v3.4, could you test with this version again?

@walx666
Copy link
Author

walx666 commented Feb 27, 2017

Tested with ser2net v3.4 (lede-snapshot) > your configline seems to work on it.
I don't know, why i've used this configline (seperated by colon) - but it worked for me back then. Sadly the package repository for the first stable release of lede (LEDE 17.01 "Reboot"), has ser2net v3.3 included.
So i've changed my hotplug-script to use ser2net with a dynamically generated configfile.

@mhei
Copy link
Member

mhei commented Mar 16, 2017

I'm closing this issue since it works with latest version. For first stable release, I'm still thinking about bumping ser2net to v3.4, but I'm not yet sure about it...

@mhei mhei closed this as completed Mar 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants