Summary
segfault violation when using tcp-accept (as last s-exp?)
Metadata
- Id: b28c5273153496bd53dc62744f98c81f489be196
- Trac id: 1133
- Type: defect
- Reporter: kristianlm
- Owner:
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: critical
- Milestone: someday
- Version: 4.9.x
- Changetime: 2014-06-20 19:46:07 UTC
- Created: 2014-06-18 17:17:26 UTC
- Keywords:
Description
As shown in this paste,
http://paste.call-cc.org/paste?id=bfe5899d243035a1a5a67f48b97675dbc3405458
$ cat foo.scm (use tcp srfi-18) (tcp-accept (tcp-listen 1230)) $ csc foo.scm && ./foo & [1] 5449 $ nc localhost 1230 Error: segmentation violation Call history: foo.scm:2: tcp-listen foo.scm:2: tcp-accept <-- [1]+ Exit 70 ./foo
This works from csi -s foo.scm.
Changes and comments
[2014-06-19 19:59:28 UTC] sjamaan changed description
[2014-06-19 19:59:28 UTC] sjamaan wrote:
This is similar to #999, and actually caused by the fix for that ticket :)
[2014-06-19 20:14:26 UTC] sjamaan changed description
[2014-06-19 20:14:26 UTC] sjamaan wrote:
A workaround for this problem (if it ever occurs in practice) is to add (use ports) to the program (or even (require-library ports) if you're paranoid about not importing anything you're not using).
[2014-06-20 19:46:07 UTC] sjamaan changed status from new to closed
[2014-06-20 19:46:07 UTC] sjamaan set resolution to fixed
[2014-06-20 19:46:07 UTC] sjamaan wrote:
Fixed by a25d2006bdbcd794a5ce3002c04b618f35667f7c, will appear in 4.9.0.2