On 08/16/10 22:40, Albert Chu:
This should already be handled.
You are true, problem is elsewhere.
I croped the sources to just:
-----------------------------------
int main (int argc, char **argv) {
char x[684*1024];
}
-----------------------------------
Compiled and linked:
gcc -shared -o .libs/ipmi-sensors ipmi-sensors.c
.libs/ipmi-sensors
And still:
Segmentation fault: 11 (core dumped)
Problem disappear when I remove '-shared' (but then it can't be linked
against libargp) or when I change [684*1024] to [683*1024] or less.
Conclusion: not FreeIPMI's problem, it's problem of GCC 4.2.1
So you can forged it ...
Dan
_______________________________________________
Freeipmi-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/freeipmi-devel