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

segfault in camomile with frame pointers enabled #6031

Closed
vicuna opened this issue Jun 4, 2013 · 1 comment
Closed

segfault in camomile with frame pointers enabled #6031

vicuna opened this issue Jun 4, 2013 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Jun 4, 2013

Original bug ID: 6031
Reporter: @avsm
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:19:35Z)
Resolution: fixed
Priority: normal
Severity: crash
Platform: debian wheezy x86_64
Fixed in version: 4.01.0+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

With r13744 from SVN trunk and ./configure -with-frame-pointers on x86_64, I get a segfault when compiling camomile from OPAM:

ocamlopt.opt -noassert -I internal -I public -I toolslib -I . -o tools/camomilelocaledef.opt bigarray.cmxa str.cmxa toolslib.cmxa tools/camomilelocaledef.cmx
tools/camomilelocaledef.opt --file locales/af.txt locales
make: *** [locales/af.mar] Segmentation fault
rm toolslib/colLexer.ml internal/uReStrLexer.ml toolslib/colParser.mli toolslib/colParser.ml
avsm@gabriel:~/scratch/camomile-0.8.3$ gdb tools/camomilelocaledef.opt
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/avsm/scratch/camomile-0.8.3/tools/camomilelocaledef.opt...done.
(gdb) run --file locales/af.txt locales
Starting program: /home/avsm/scratch/camomile-0.8.3/tools/camomilelocaledef.opt --file locales/af.txt locales

Program received signal SIGSEGV, Segmentation fault.
0x000000000047db5d in camlColParser__entry () at list.ml:23
23 list.ml: No such file or directory.
(gdb) bt
#0 0x000000000047db5d in camlColParser__entry () at list.ml:23
#1 0x000000000044038d in caml_program ()
#2 0x00000000004bc6de in caml_start_program ()
#3 0x00000000004bc830 in caml_system__code_end ()
#4 0x0000000000000000 in ?? ()
(gdb)

Steps to reproduce

$ opam switch 4.01.0dev+fp
$ opam install camomile

@vicuna
Copy link
Author

vicuna commented Jun 11, 2013

Comment author: @lefessan

Should be fixed in SVN trunk (commit r13763).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants