[Gambas-devel] System error... (42)

Ron ron at ...572...
Wed Oct 5 12:56:29 CEST 2011


Keep getting it, have uncommented these lines, and run again in gdb.

void THROW(int code, ...)
{
         va_list args;
         int i;
         char *arg[4];

         if (code == E_SYSTEM)
                 fprintf(stderr, "THROW system error from %s\n", 
DEBUG_get_current_position());

Regards,
Ron_2nd.
> got this..
>
> ERROR: #42: System error. Success
>
> Program exited with code 01.
> (gdb) bt
> No stack.
>
> What to do?
> As far as I remember I did a break THROW before run
>
> Regards,
> Ron_2nd.
>
>
> 2011/10/3 Ron <ron at ...572... <mailto:ron at ...572...>>
>
>     On 5-12-2010 12:05, Benoît Minisini wrote:
>
>             Ok. Sometime things get weird...
>
>             I found that my command line project wasn't running anymore...
>
>             2010/12/04 15:42:16 You have 2 new e-mails on Gmail.
>             2010/12/04 15:47:16 Uploaded sensor data to Bwired.
>             2010/12/04 15:47:21 Uploaded sensor data to Pachube.
>             2010/12/04 16:00:00 The Time of Day is afternoon.
>             2010/12/04 16:00:00 It's dark outside.
>             2010/12/04 16:00:00 DomotiGa is running for 0 days, 4 hrs,
>             12 mins, and 43
>             secs. 2010/12/04 16:02:21 Uploaded sensor data to Pachube.
>             ERROR: #42: System error. Success
>
>             System error... (42)
>             This error is raised when a system call returns an error
>             that does not
>             match another specific Gambas error.
>
>             Hmm ok, no clue... yes it's a Linux system, although the
>             error message
>             has a Windows logic in it.
>
>             Regards,
>             Ron_2nd.
>
>         Can you run your command line tool that way to know where the
>         error comes
>         from?
>
>         $ gdb gbx2
>         ...
>         (gdb) break THROW
>         ...
>         (gdb) run
>         ...
>         ... Let your program run until it stops
>         ...
>         (gdb) bt
>         ...
>
>         Then send me the result of the 'bt' gdb command.
>
>         Be sure that you have a Gambas 2 compiled with debugging
>         symbols enabled.
>
>         And if you use Gambas 3 instead of Gambas 2, replace "gbx2" by
>         "gbx3".
>
>         Regards,
>
>
>     Benoit,
>
>     Got bugged by this one again 'ERROR: #42: System error. Success'
>
>     Wil try to see if I can get information from gdb when it happens
>     again.
>
>     Is on Gambas2 cli project.
>
>     Regards,
>     Ron_2nd.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20111005/09f33f7d/attachment.html>


More information about the Devel mailing list