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

Unfriendly Crash #40

Open
jcburley opened this issue Apr 24, 2018 · 5 comments
Open

Unfriendly Crash #40

jcburley opened this issue Apr 24, 2018 · 5 comments

Comments

@jcburley
Copy link
Collaborator

I tried running a program that expected at least one argument, without providing arguments, and got this:

$ ./cljc
GC Warning: Failed to expand heap by -4096 bytes
GC Warning: Failed to expand heap by -4096 bytes
GC Warning: Out of Memory! Heap size: 0 MiB. Returning NULL!
Segmentation fault

Seems a little unfriendly. Perhaps there's a reasonable way to avoid this and do something more elegant instead?

Here's the source (it'll look familiar):

(ns cljc.user)

(defn -main
  [arg & args]
  (println "Here are your args:")
  (flush)
  (apply println (cons arg args)))
@schani
Copy link
Owner

schani commented Apr 24, 2018

I'm sorry, I haven't touched this project in years and don't have any time to sink into it right now. If you're interested in maintaining it you have my blessings.

@jcburley
Copy link
Collaborator Author

jcburley commented Apr 24, 2018 via email

@schani
Copy link
Owner

schani commented Apr 24, 2018

Not that I know. It would be nice if it built and the basics worked, at least, but to make it useful a LOT of work would have to be done. This is barely an out-of-date proof of concept.

@jcburley
Copy link
Collaborator Author

jcburley commented Apr 24, 2018 via email

@schani
Copy link
Owner

schani commented Apr 24, 2018

I'm happy to chat about it! Shoot me an email at [email protected]

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