ivakyb / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

"Illegal instruction" when reading a .ini file #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I have a C application using the "ini_browse" with the callback
2. Using an up-to-date Ubuntu 12.04, i386, 3.2.0-32 kernel
3. Compiling works fine; programm stops at reading the config file

What is the expected output? What do you see instead?
- Instead of a running app I get an "Illegal instruction"
- There's noch difference if I use "./min.ini" or "min.ini"
- strace output (at this step I use the "ini_browse" function:
...
write(1, "setup config file\n", 18setup config file
)     = 18
brk(0)                                  = 0x9872000
brk(0x9893000)                          = 0x9893000
open("min.ini", O_RDONLY)               = 3
--- SIGILL (Illegal instruction) @ 0 (0) ---
+++ killed by SIGILL +++
Illegal instruction

What version of the product are you using? On what operating system?
1.2a

Please provide any additional information below.
- Code works on every other tested hardware/software combination
(Ubuntu 12.04/12.10, i386/amd64/armhf)
- I'm compiling on an Alix board with AMD Geode processor
- No other glue is working
- Only one filesystem mounted at "/"
- "mount" output: /dev/sda1 on / type ext3 (rw,noatime,errors=remount-ro)

Original issue reported on code.google.com by christia...@gmx.net on 11 Nov 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Sorry, sorry - I forgot the most important thing:
- It works with the "gcc" compiler
- The problem exists only ...
a. with the "clang" compiler
b. on this architecture
c. with this library

Original comment by christia...@gmx.net on 11 Nov 2012 at 2:51