* simple-format causes segfault?
@ 2006-05-06 3:38 James Bergstra
2006-05-06 22:39 ` Marius Vollmer
2006-05-06 23:20 ` Neil Jerram
0 siblings, 2 replies; 7+ messages in thread
From: James Bergstra @ 2006-05-06 3:38 UTC (permalink / raw)
Hi,
I'd like to file a bug report on guile-1.8, but I don't know how.
I have a program that causes the guile interpreter to segfault when I output
with (simple-format), but runs properly when I replace the simple-format with
what I believe are equivalent calls to (display).
I'd like to file a bug-report. Should I
a) attach cores
b) attach cores + program text
c) attach cores + program text + data files
d) do nothing, because this another known issue
(is there a list of known issues?)
--
James Bergstra
http://www-etud.iro.umontreal.ca/~bergstrj
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-06 3:38 simple-format causes segfault? James Bergstra
@ 2006-05-06 22:39 ` Marius Vollmer
2006-05-06 23:20 ` Neil Jerram
1 sibling, 0 replies; 7+ messages in thread
From: Marius Vollmer @ 2006-05-06 22:39 UTC (permalink / raw)
Cc: bug-guile
James Bergstra <james.bergstra@umontreal.ca> writes:
> I have a program that causes the guile interpreter to segfault when
> I output with (simple-format), but runs properly when I replace the
> simple-format with what I believe are equivalent calls to (display).
If you can, please show us that program. We would need to reproduce
the bug and maybe distill your code into a test case. Don't bother
too much to make your code simple, just make it simple to run.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-06 3:38 simple-format causes segfault? James Bergstra
2006-05-06 22:39 ` Marius Vollmer
@ 2006-05-06 23:20 ` Neil Jerram
2006-05-07 18:15 ` James Bergstra
1 sibling, 1 reply; 7+ messages in thread
From: Neil Jerram @ 2006-05-06 23:20 UTC (permalink / raw)
Cc: bug-guile
James Bergstra <james.bergstra@umontreal.ca> writes:
> Hi,
>
> I'd like to file a bug report on guile-1.8, but I don't know how.
You're already doing the right thing: writing to bug-guile@gnu.org.
> I have a program that causes the guile interpreter to segfault when I output
> with (simple-format), but runs properly when I replace the simple-format with
> what I believe are equivalent calls to (display).
>
> I'd like to file a bug-report. Should I
> a) attach cores
> b) attach cores + program text
> c) attach cores + program text + data files
> d) do nothing, because this another known issue
> (is there a list of known issues?)
To begin with, please just post the code and any input that it needs
to repro the problem. That should be enough if the problem is not
specific to your environment. If it isn't enough, we can move onto
cores later.
Thanks,
Neil
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-06 23:20 ` Neil Jerram
@ 2006-05-07 18:15 ` James Bergstra
2006-05-07 23:12 ` Kevin Ryde
2006-05-09 0:58 ` Rob Browning
0 siblings, 2 replies; 7+ messages in thread
From: James Bergstra @ 2006-05-07 18:15 UTC (permalink / raw)
Cc: bug-guile, James Bergstra
> To begin with, please just post the code and any input that it needs
> to repro the problem. That should be enough if the problem is not
> specific to your environment. If it isn't enough, we can move onto
> cores later.
Thank you for your reply. Unfortunately, my program is not easy to send. I've
spent an hour just now trying to distill a simple test case with no luck. Almost
any change I make to the program seems to cause it not to segfault. For
example:
- replacing an open file with current-input-port
- moving the script to a different folder (perhaps to a sufficiently short path?)
- moving code from a (load)'ed file into the script itself
One bit of evidence to maybe keep in mind as you continue to improve guile is
that sometimes it ran perfectly, sometimes it segfaulted, and sometimes it
aborted with this message:
ERROR: In procedure simple-format:
ERROR: Wrong type argument in position 1: #<freed cell 0x2aaaaae44cb0; GC missed
a reference>
I was very surprised that some of these actions had an effect on the behaviour
of my script. Since this problem has such a simple workaround (use display
instead of simple-format), I don't want to explore these mysteries any longer.
I'm baffled and I'm giving up :(
I've posted the cores on my website:
http://www-etud.iro.umontreal.ca/~bergstrj/guile-cores/
--
James Bergstra
http://www-etud.iro.umontreal.ca/~bergstrj
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-07 18:15 ` James Bergstra
@ 2006-05-07 23:12 ` Kevin Ryde
2006-05-09 0:58 ` Rob Browning
1 sibling, 0 replies; 7+ messages in thread
From: Kevin Ryde @ 2006-05-07 23:12 UTC (permalink / raw)
Cc: bug-guile
James Bergstra <james.bergstra@umontreal.ca> writes:
>
> ERROR: In procedure simple-format:
> ERROR: Wrong type argument in position 1: #<freed cell 0x2aaaaae44cb0; GC missed
> a reference>
That'll be something gone bad before the format call.
The only major gremlin in 1.8.0 is I think with shared arrays. If
you're using them and you're brave then you might want to give the cvs
1.8 branch a go.
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-07 18:15 ` James Bergstra
2006-05-07 23:12 ` Kevin Ryde
@ 2006-05-09 0:58 ` Rob Browning
2006-05-09 2:35 ` Rob Browning
1 sibling, 1 reply; 7+ messages in thread
From: Rob Browning @ 2006-05-09 0:58 UTC (permalink / raw)
Cc: bug-guile, Neil Jerram
James Bergstra <james.bergstra@umontreal.ca> writes:
> Thank you for your reply. Unfortunately, my program is not easy to
> send. I've spent an hour just now trying to distill a simple test
> case with no luck. Almost any change I make to the program seems to
> cause it not to segfault.
Are you running on an 64-bit machine?
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: simple-format causes segfault?
2006-05-09 0:58 ` Rob Browning
@ 2006-05-09 2:35 ` Rob Browning
0 siblings, 0 replies; 7+ messages in thread
From: Rob Browning @ 2006-05-09 2:35 UTC (permalink / raw)
Cc: bug-guile, Neil Jerram
Rob Browning <rlb@defaultvalue.org> writes:
> Are you running on an 64-bit machine?
...or rather, "a 64-bit machine".
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-05-09 2:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-06 3:38 simple-format causes segfault? James Bergstra
2006-05-06 22:39 ` Marius Vollmer
2006-05-06 23:20 ` Neil Jerram
2006-05-07 18:15 ` James Bergstra
2006-05-07 23:12 ` Kevin Ryde
2006-05-09 0:58 ` Rob Browning
2006-05-09 2:35 ` Rob Browning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).