Anonymous | Login | 03-04-2021 16:52 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||||
0007610 | [Squeak] VM | crash | always | 03-06-11 23:30 | 05-17-11 00:24 | ||||||||
Reporter | lewis | View Status | public | ||||||||||
Assigned To | lewis | ||||||||||||
Priority | normal | Resolution | fixed | ||||||||||
Status | resolved | Product Version | |||||||||||
Summary | 0007610: Serial plugin crash on unix if too if too man opens are performed | ||||||||||||
Description |
Reported by Markus Lampert with fix provided: http://lists.squeakfoundation.org/pipermail/vm-dev/2011-March/006970.html [^] The serial plugin for unix (4.4.7.2357) can take the vm down. The following code demonstrates the issue: s := SerialPort new. 40 timesRepeat: [ s openPort: '/dev/ttyS0'. s close] |
||||||||||||
Additional Information |
Fix provided by Markus Lampert (attached) "I have attached a version of sqUnixSerial.c which fixes the problem. It allows for 32 _different_ serial ports to be opened and closed (as often as necessary). It also prevents the segmentation fault. If more than 32 different serial ports are attempted to be opened the request fails. The changes are in line 202, and 220 - 352. In the current implementation (trunk) it is not possible to find out if #openPort: was successful or not and I don't know how to fix that." |
||||||||||||
Attached Files |
![]() |
||||||||||||
|
![]() |
|
(0014109 - 95 - 95 - 95 - 95 - 95 - 95) lewis 05-17-11 00:24 |
Fixed in SVN 2364 (trunk platforms/unix/plugins/SerialPlugin/sqUnixSerial.c updated March 2011) |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
37 total queries executed. 29 unique queries executed. |