Bus Error (core dumped)

haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

Hi Jon,

I am trying to run this query and I am getting this error when I run the query from command window:

select ticket from ticket where ((title\tick_txt\tic_text\attch_text likep 'banana') or (tic_comm likep 'banana' and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028'))) and (Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028','25517','35029'))

I get some results but after that I get this error:

Bus Error (core dumped) can you please help me in resolvin gthe issue.
Regards
Haamid
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Bus Error (core dumped)

Post by mark »

Are there any other messages before the Bus Error?
Are you running this in tsql, vortex, or your own C program? Sounds like maybe your own C program since tsql and vortex will trap the Bus Error and say ABEND. What if you do the same query in tsql?
haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

Hey Mark,

I am running the above query in tsql prompt itself.

Regards
Haamid
haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

This is the full result set:

Texis Version 05.01.1171516286(20070214) Copyright (c) 1988-2007 Thunderstone EPI

ticket
------------+
4383201
6987501
6958922
6958922
Bus Error (core dumped)
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Bus Error (core dumped)

Post by mark »

What is your full tsql command line?
Did you perform any SQL "set" statements before running the select?
Does it work if you remove the redundant
and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028')
part of the where clause?
Does the newer version you were sent in December behave the same way?
haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

Hey mark those are not redundant actually lets break the full query into parts:
((title\tick_txt\tic_text\attch_text likep 'banana') or (tic_comm likep 'banana' and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028'))) and (Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028','25517','35029'))

part1

((title\tick_txt\tic_text\attch_text likep 'banana') or (tic_comm likep 'banana' and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028')))

This part gives the result which match in the index mentioned. (tic_comm likep 'banana' and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028'))).
thispart I am trying to get all the results which match tic_comm but are in the prods mentioned so this restirction applies only for tic_comm and not the whole result set.

Part2: and (Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028','25517','35029'))

This is a restriction on all results that all the results should be within this group only.

Regards
Haamid
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Bus Error (core dumped)

Post by mark »

What about the other 3 questions?

What is your full tsql command line?
Did you perform any SQL "set" statements before running the select?
Does the newer version you were sent in December behave the same way?
haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

tsql "select ticket from ticket where ((title\tick_txt\tic_text\attch_text likep 'banana') or (tic_comm likep 'banana' and Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028'))) and (Prod in ('21983','21984','23492','23622','23624','25511','25512','25516','35028','25517','35029')) ;"

2. I didnt use any sql set statement
3. we dont have the dember version so cant tell wether it would help or not
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Bus Error (core dumped)

Post by mark »

Open a ticket to get it again, or an update if you have maintenance.
haamid.gazi
Posts: 13
Joined: Wed Jun 25, 2008 11:30 am

Bus Error (core dumped)

Post by haamid.gazi »

Hi Mark,

Are you sure changing the version would resolve the issue or do we have to make change in the query or index to make it running. because making a change for version would involve effort just wanted to confirm if that could resolve the issue.