Unanswered: Error connecting to Informix DB via embedded C : Getting Bus error
Im trying to compile embedded C code. But it is throwing BUS erro when I execute the exe..
Here heldord is my database name.
Below is from dbx log..
(dbx) trace envptr
Events that require automatic single-stepping will not work properly with multiple threads.
See also `help event specification'.
(2) trace envptr
(dbx) trace lod
(3) trace lod
(dbx) trace db_name
(4) trace db_name
(process id 26582)
initially (at line "cwotsmenu.ec":47): db_name = ""
initially (at line "cwotsmenu.ec":47): lod = ""
initially (at line "cwotsmenu.ec":47): envptr = (nil)
after line "cwotsmenu.ec":47: envptr = 0xffffffff7ffffe0a "/appl/cwots"
after line "getlogin.c":16: lod = "vm157f"
after line "cwotsmenu.ec":64: envptr = 0xffffffff7ffff945 "heldord"
after line "cwotsmenu.ec":68: db_name = "heldord"
signal BUS (invalid address alignment) in elf_rtbndr at 0xffffffff7f2055f8
0xffffffff7f2055f8: elf_rtbndr+0x002c: jmp %g1
Current function is main
70 $database $db_name;
0) is this the first program you try to compile on this machine, or have you run other programs of the same type successfully ?
1) have you checked successfully your connection to the db server?
2) can we see some more of your code?
the db_name variable looks to be empty and the engine won't like this...
3) which versions of CSDK and IDS are you using ?