[Users] Segmentation fault on openser
Daniel-Constantin Mierla
daniel at voice-system.ro
Tue Jun 6 20:44:55 CEST 2006
Hello Edgar,
I did a fix on cvs, please download the latest version from cvs and try
again? It seems that strcmp() was not checking the null parameters. What
OS/compiler do you have? The code is pretty old and the issue was not
discovered until now, I guess some libraries do the check.
Let me know if it works.
Cheers,
Daniel
On 06/06/06 20:58, Edgar Barbosa wrote:
> Hi Daniel,
>
> I'm using openser 1.0.1...
> The core file is in attachment and the bt output was the following:
>
> #0 0x400a91b0 in strcmp () from /lib/tls/libc.so.6
> #1 0x0809f270 in cmp_db_id (id1=0x81118f0, id2=0x8111638) at db/db_id.c:249
> #2 0x080a032e in pool_get (id=0x81118f0) at db/db_pool.c:47
> #3 0x401688b6 in db_init (_url=0x8213548 "mysql://root@localhost/openser")
> at dbase.c:267
> #4 0x4024b416 in uridb_db_init (db_url=0x0) at checks.c:246
> #5 0x4024c182 in child_init (rank=-1) at uridb_mod.c:142
> #6 0x080799ba in init_mod_child (m=0x8110c78, rank=-1,
> type=0x80b3df1 "PROC_TIMER") at sr_module.c:398
> #7 0x08079a9a in init_child (rank=0) at sr_module.c:441
> #8 0x0806123f in main_loop () at main.c:871
> #9 0x0806266e in main (argc=1076248752, argv=0xbffffd64) at main.c:1570
>
>
> Thanks for your help,
> Edgar
>
>
>
> -----Original Message-----
> From: Daniel-Constantin Mierla [mailto:daniel at voice-system.ro]
> Sent: terça-feira, 6 de Junho de 2006 18:29
> To: Edgar Barbosa
> Cc: Users at openser.org
> Subject: Re: [Users] Segmentation fault on openser
>
> Hello,
>
> what version of openser do you run?
>
> Could you get a backtrace? Set "ulimit -c unlimited" in the console you
> start openser and you should get a core file. The do:
>
> gdb /usr/lib/openser/sbin/openser core
> # bt
>
> Send the output to us. If it is openser 1.1.x, please use
> devel at openser.org mailing list.
>
> I see in the log that the mysql client library is v4.x and the mysql
> server is v5.x. Should not be any problem as far as I know, just a
> remark which should be paid attention.
>
> Cheers,
> Daniel
>
>
More information about the Users
mailing list